login
Header Space

 
 

linux-netdev mailing list

FromSubjectsort iconDate
Jeff Garzik
[PATCH 14/15] Canonicalize several irq handlers.
* prefer passing data to irq handler using 'void *dev_id' argument * remove references to 'irq' function arg that either duplicate a member of our private struct, or are always [true|false]. * add linux/interrupt.h include where needed This change's main purpose is to prepare for the patchset in jgarzik/misc-2.6.git#irq-remove, that explores removal of the never-used 'irq' argument in each interrupt handler. Signed-off-by: Jeff Garzik <jgarzik@redhat.com> --- drivers/atm/ambassador...
Apr 18, 7:23 pm 2008
Jeff Garzik
[PATCH 08/15] [ISDN] minor irq handler cleanups
- remove pointless casts from void* - remove braces around singleton C statements - remove unused 'intno' argument from rs_interrupt_elsa() - cs->irq_func() should be defined using standard irq_handler_t This change's main purpose is to prepare for the patchset in jgarzik/misc-2.6.git#irq-remove, that explores removal of the never-used 'irq' argument in each interrupt handler. Signed-off-by: Jeff Garzik <jgarzik@redhat.com> --- drivers/isdn/hisax/elsa.c | 4 ++-- drivers...
Apr 18, 7:22 pm 2008
Jeff Garzik
[for 2.6.26] ISDN cleanups, ok for upstream?
OK to send this upstream to Linus? It's been in various -mm's, though I don't know the current state of akpm's pull of jgarzik/misc-2.6.git#ALL. The changes should produce equivalent results, and are strictly internal cleanups in preparation for the PCI hotplug API conversion patchset, which exists in branch #isdn-pci. The 'isdn-cleanups' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/misc-2.6.git isdn-cleanups contains the following updates: drivers/isdn/hisax/asuscom.c...
Apr 18, 6:53 pm 2008
Andrew Morton
Re: [for 2.6.26] ISDN cleanups, ok for upstream?
On Fri, 18 Apr 2008 18:53:55 -0400 oops. It seems that I disabled it quite a long time ago. I'll resurrect That merges cleanly against the small number of isdn patches which are pending in -mm, so we're OK from that POV. --
Apr 18, 7:41 pm 2008
Andy Fleming
[PATCH v2.6.26] Add support for board-level PHY fixups
Sometimes the specific interaction between the platform and the PHY requires special handling. For instance, to change where the PHY's clock input is, or to add a delay to account for latency issues in the data path. We add a mechanism for registering a callback with the PHY Lib to be called on matching PHYs when they are brought up, or reset. Signed-off-by: Andy Fleming <afleming@freescale.com> --- Documentation/networking/phy.txt | 38 +++++++++++- drivers/net/phy/mdio_bus.c | ...
Apr 18, 6:29 pm 2008
akpm
[patch 7/9] net drivers: fix platform driver hotplug/coldplug
From: Kay Sievers <kay.sievers@vrfy.org> Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable network platform drivers, to re-enable auto loading. NOTE: didn't change drivers/net/fs_enet/fs_enet-main.c "old binding" support. That looks problematic in the first place (it even uses the ancient "struct device_driver" binding scheme for platform_bus!) and I suspect it will vanish soonish when arch/powerpc ru...
Apr 18, 4:50 pm 2008
akpm
[patch 9/9] 8390: Split 8390 support into a pausing and a no...
From: Alan Cox <alan@lxorguk.ukuu.org.uk> Only a few ISA controllers need the pausing version of the 8390 core while PCMCIA, later ISA and PCI do not. More importantly the ISA delays can break non ISA boxes so we must use a different build of 8390.c for the two sets of controllers. No changes since last time as all the points of concerns raised proved to be invalid [randy.dunlap@oracle.com: ne2 (MCA) needs both 8390.o and 8390p.o functions] Signed-off-by: Alan Cox <alan@redhat.com>...
Apr 18, 4:50 pm 2008
akpm
[patch 2/9] forcedeth: fix MAC address detection on network ...
From: Michael Pyne <michael.pyne@kdemail.net> Partially revert a change to mac address detection introduced to the forcedeth driver. The change was intended to correct mac address detection for newer nVidia chipsets where the mac address was stored in reverse order. One of those chipsets appears to still have the mac address in reverse order (or at least, it does on my system). The change that broke mac address detection for my card was commit ef756b3e56c68a4d76d9d7b9a73fa8f4f739180f "for...
Apr 18, 4:50 pm 2008
akpm
[patch 8/9] smc911x: test after postfix decrement fails in s...
From: Roel Kluin <12o3l@tiscali.nl> When timeout reaches 0 the postfix decrement still subtracts, so the test fails. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Acked-by: Peter Korsgaard <jacmet@sunsite.dk> Cc: Jeff Garzik <jeff@garzik.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> --- drivers/net/smc911x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -puN drivers/net/smc9...
Apr 18, 4:50 pm 2008
akpm
[patch 6/9] forcedeth: new backoff implementation
From: Ayaz Abdulla <aabdulla@nvidia.com> This patch adds support for a new backoff algorithm for half duplex supported in newer hardware. The old method is will be designated as legacy mode. Re-seeding random values for the backoff algorithms are performed when a transmit has failed due to a maximum retry count (1 to 15, where max is considered the wraparound case of 0). Signed-off-by: Ayaz Abdulla <aabdulla@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>...
Apr 18, 4:50 pm 2008
akpm
[patch 3/9] sc92031: use net_device stats
From: Stephen Hemminger <shemminger@vyatta.com> Statistics structure is available for use in net_device structure. Compile tested only. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> --- drivers/net/sc92031.c | 70 +++++++++++++++++++--------------------- 1 file changed, 34 insertions(+), 36 deletions(-) diff -puN drivers/net/sc92031.c~sc92031-use-net_device-stats drivers/net/sc92031.c --- a/drivers/net...
Apr 18, 4:50 pm 2008
akpm
[patch 4/9] ehea: make things static
From: Andrew Morton <akpm@linux-foundation.org> ehea_flush_sq() and ehea_purge_sq() should be static. Cc: Jeff Garzik <jeff@garzik.org> Cc: Thomas Klein <osstklei@de.ibm.com> Cc: Thomas Klein <tklein@de.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> --- drivers/net/ehea/ehea_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/net/ehea/ehea_main.c~ehea-fix-dlpar-memory-add-support-fix drivers/net/ehea/ehea_ma...
Apr 18, 4:50 pm 2008
akpm
[patch 5/9] sundance: set carrier status on link change events
From: Dan Nicholson <dbn.lists@gmail.com> Check if the link is available when a changed interrupt has been received and set the carrier status appropriately. The code is copied nearly verbatim from the dl2k module. The link status could be used in more places in the driver, but this is enough to get the carrier status reported to userspace. Fixes kernel bug #7487: http://bugzilla.kernel.org/show_bug.cgi?id=7487 [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Dan Nic...
Apr 18, 4:50 pm 2008
akpm
[patch 1/9] forcedeth: power down phy when interface is down
From: "Ed Swierk" <eswierk@arastra.com> Bring the physical link down when the interface is down by placing the PHY in power-down state, unless WOL is enabled. This mirrors the behavior of other drivers including e1000 and tg3. Without the patch, ifconfig down leaves the physical link up, which confuses datacenter users who expect the link lights both on the NIC and the switch to go out when they bring an interface down. Furthermore, even though the phy is powered on, autonegotiation stop...
Apr 18, 4:50 pm 2008
akpm
[patch 1/2] smsc-ircc2: wrap PNP probe code in #ifdef CONFIG...
From: Bjorn Helgaas <bjorn.helgaas@hp.com> Wrap PNP probe code in #ifdef CONFIG_PNP. Without this change, we'll have unresolved references to pnp_get_resource() function when CONFIG_PNP=n. (This is a new interface that's not in mainline yet.) Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> Cc: Samuel Ortiz <samuel@sortiz.org> Signed-off-by: Andrew Morton <akpm@l...
Apr 18, 4:47 pm 2008
akpm
[patch 2/2] nsc-ircc: wrap PNP probe code in #ifdef CONFIG_PNP
From: Bjorn Helgaas <bjorn.helgaas@hp.com> Wrap PNP probe code in #ifdef CONFIG_PNP. Without this change, we'll have unresolved references to pnp_get_resource() function when CONFIG_PNP=n. (This is a new interface that's not in mainline yet.) Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> Cc: Samuel Ortiz <samuel@sortiz.org> Signed-off-by: Andrew Morton <akpm@l...
Apr 18, 4:47 pm 2008
akpm
[patch 1/3] hci_usb: do not initialize static variables to 0
From: Pavel Machek <pavel@ucw.cz> hci_usb: do not initialize static variables to 0. Signed-off-by: Pavel Machek <pavel@suse.cz> Cc: Marcel Holtmann <marcel@holtmann.org> Cc: Dave Young <hidave.darkstar@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> --- drivers/bluetooth/hci_usb.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff -puN drivers/bluetooth/hci_usb.c~hci_usb-do-not-initialize-static-variables-to-0 drive...
Apr 18, 4:46 pm 2008
Marcel Holtmann
Re: [patch 1/3] hci_usb: do not initialize static variables ...
I know that some people don't like to do it and I agree, but in case of module parameters, I prefer to have them clearly indicate what the default value is. It is a lot easier to read for other people looking at the code. So that one is a NAK from my side. Regards Marcel --
Apr 18, 5:04 pm 2008
akpm
[patch 3/3] hci_usb.h: fix hard-to-trigger race
From: Pavel Machek <pavel@ucw.cz> If someone tries to _urb_unlink while _urb_queue_head is running, he'll see _urb->queue == NULL and fail to do any locking. Prevent that from happening by strategically placed barriers. Signed-off-by: Pavel Machek <pavel@suse.cz> Cc: Marcel Holtmann <marcel@holtmann.org> Cc: Dave Young <hidave.darkstar@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> --- drivers/bluetooth/hci_usb.h | 21 +++++++++++++----...
Apr 18, 4:46 pm 2008
Marcel Holtmann
Re: [patch 3/3] hci_usb.h: fix hard-to-trigger race
let me repeat this, the hci_usb driver is not worth fixing. Doing our own URB handling is a bad idea. The btusb driver should fix all of this. Only exception is that it is missing all the quirks, but that was me being lazy. Regards Marcel --
Apr 18, 5:10 pm 2008
Andrew Morton
Re: [patch 3/3] hci_usb.h: fix hard-to-trigger race
On Fri, 18 Apr 2008 23:10:12 +0200 ok... But as long as the old code is buildable and installable, we should fix bugs in it? --
Apr 18, 5:21 pm 2008
David Miller
Re: [patch 3/3] hci_usb.h: fix hard-to-trigger race
From: Andrew Morton <akpm@linux-foundation.org> Yep. --
Apr 18, 6:41 pm 2008
akpm
[patch 2/3] hci_usb: remove code obfuscation
From: Pavel Machek <pavel@ucw.cz> _urb_free is an alias for kfree... making code longer & harder to read. Remove it. Signed-off-by: Pavel Machek <pavel@suse.cz> Cc: Marcel Holtmann <marcel@holtmann.org> Cc: Dave Young <hidave.darkstar@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> --- drivers/bluetooth/hci_usb.c | 10 +++++----- drivers/bluetooth/hci_usb.h | 5 ----- 2 files changed, 5 insertions(+), 10 deletions(-) diff -puN dr...
Apr 18, 4:46 pm 2008
Marcel Holtmann
Re: [patch 2/3] hci_usb: remove code obfuscation
our own URB handling here is broken anyway. It was a bad idea when we did it, but at that time the USB susbsystem was not in that good shape that it is today. So I would say leave this code as it is and concentrate on the new btusb driver, but if it helps anybody I am happy to ACK this one. Regards Marcel --
Apr 18, 5:07 pm 2008
Pavel Machek
Re: [patch 2/3] hci_usb: remove code obfuscation
It currently corrupts memory (use after free) during suspend, and I'm trying to get that fixed. It is 90% reproducible. And yes, fixing clean code is easier. It could be easily fixed by just not freeing the urbs during disconnect (introducing very very slow memory leak). Would that be acceptable? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html --
Apr 18, 6:34 pm 2008
akpm
[patch 1/3] WAN: new PPP code for generic HDLC
From: Krzysztof Halasa <khc@pm.waw.pl> New synchronous PPP implementation for generic HDLC. Signed-off-by: Krzysztof Halasa <khc@pm.waw.pl> Cc: Jeff Garzik <jeff@garzik.org> Cc: Paul Fulghum <paulkf@microgate.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> --- drivers/net/wan/Makefile | 2 drivers/net/wan/hdlc_ppp.c | 651 ++++++++++++++++++++++++++++++++--- 2 files changed, 603 insertions(+), 50 deletions(-) diff -puN drivers/net/wan/Mak...
Apr 18, 4:46 pm 2008
David Miller
Re: [patch 1/3] WAN: new PPP code for generic HDLC
From: akpm@linux-foundation.org This patch went through Jeff's tree and I rejected it because it's not the right way to solve this problem and it gives us a 3rd implementation of PPP protocol handling in the tree which makes even less sense. Please drop, thanks Andrew. --
Apr 18, 6:03 pm 2008
akpm
[patch 2/3] drivers/atm: use time_before, time_before_eq, etc
From: Julia Lawall <julia@diku.dk> The functions time_before, time_before_eq, time_after, and time_after_eq are more robust for comparing jiffies against other values. A simplified version of the semantic patch making this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @ change_compare_np @ expression E; @@ ( - jiffies <= E + time_before_eq(jiffies,E) | - jiffies >= E + time_after_eq(jiffies,E) | - jiffies < E + time_before(jiffies,E) | ...
Apr 18, 4:46 pm 2008
akpm
[patch 3/3] drivers/net/appletalk: use time_before, time_bef...
From: Julia Lawall <julia@diku.dk> The functions time_before, time_before_eq, time_after, and time_after_eq are more robust for comparing jiffies against other values. A simplified version of the semantic patch making this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @ change_compare_np @ expression E; @@ ( - jiffies <= E + time_before_eq(jiffies,E) | - jiffies >= E + time_after_eq(jiffies,E) | - jiffies < E + time_before(jiffies,E) | ...
Apr 18, 4:46 pm 2008
Alexey Dobriyan
[PATCH] Fix and allocate less memory for ->priv'less netd...
This patch effectively reverts commit d0498d9ae1a5cebac363e38907266d5cd2eedf89 aka "[NET]: Do not allocate unneeded memory for dev->priv alignment." It was found to be buggy because of final unconditional += NETDEV_ALIGN_CONST removal. For example, for sizeof(struct net_device) being 2048 bytes, "alloc_size" was also 2048 bytes, but allocator with debugging options turned on started giving out !32-byte aligned memory resulting in redzones overwrites. Patch does small optimization in ->priv'...
Apr 18, 11:10 am 2008
David Miller
Re: [PATCH] Fix and allocate less memory for ->priv'less ...
From: Alexey Dobriyan <adobriyan@parallels.com> Thanks for finding and fixing this regression. Patch applied. --
Apr 18, 6:43 pm 2008
Mark Asselstine
[PATCH] Removal of debug code containing deprecated calls to...
Code within NS_DEBUG_SPINLOCKS contained deprecated cli()/sti() function calls. NS_DEBUG_SPINLOCKS and the associated code seems to be of little use these days so the strategy of removing this code rather then updating it to use spinlocks has been taken. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> --- drivers/atm/nicstar.c | 72 ------------------------------------------------- drivers/atm/nicstar.h | 12 -------- 2 files changed, 0 insertions(+), 84 deletions(-) d...
Apr 18, 10:51 am 2008
Chas Williams (CONTR...
Re: [PATCH] Removal of debug code containing deprecated call...
In message <1208530262-8555-1-git-send-email-mark.asselstine@windriver.com>,Mar this patch should probably go one step farther and just remove these spin_lock wrappers as well. most people consider this bad form. --
Apr 18, 10:55 am 2008
Mark Asselstine
[PATCH] Removal of debug code containing deprecated calls to...
Code within NS_DEBUG_SPINLOCKS contained deprecated cli()/sti() function calls. NS_DEBUG_SPINLOCKS and the associated code seems to be of little use these days so the strategy of removing this code rather then updating it to use spinlocks has been taken. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> --- drivers/atm/nicstar.c | 117 ++++++++----------------------------------------- drivers/atm/nicstar.h | 12 ----- 2 files changed, 19 insertions(+), 110 deletions(-) di...
Apr 18, 2:36 pm 2008
Matthew Wilcox
Re: [PATCH] Removal of debug code containing deprecated call...
We generally prefer the form: spin_lock_irqsave(&card->res_lock, flags); The brackets aren't needed and since they aren't used elsewhere in the kernel, breaking the pattern makes it look like these are somehow different (which they aren't). -- Intel are signing my paycheques ... these opinions are still mine "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." --
Apr 18, 3:07 pm 2008
David Miller
net-2.6.26 tree is frozen...
No new features, bug fixes only please. Thank you. I'll push everything to Linus whenever he starts taking stuff in from other people, which ought to be soon. I did a quick merge of Linus's tree into net-2.6.26 a few hours ago. It all looks good. If you find yourself twiddling your thumbs, give net-2.6.26 a good exercise and try to fix and problems you find. If you can't fix a problem you find, report it here at the very least. Thanks again. --
Apr 18, 7:33 am 2008
Wang Chen
[PATCH] RAW6: Do not allow set IPV6_CHECKSUM for ICMPv6 socket
As RFC3542 mentions: An attempt to set IPV6_CHECKSUM for an ICMPv6 socket will fail. Add a check for that in do_rawv6_setsockopt(). Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com> --- net/ipv6/raw.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index 0a6fbc1..c4cc1f9 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c @@ -994,6 +994,11 @@ static int do_rawv6_setsockopt(struct sock *sk, int level, int optname, switch (o...
Apr 18, 6:32 am 2008
David Miller
Re: [PATCH] RAW6: Do not allow set IPV6_CHECKSUM for ICMPv6 ...
From: Wang Chen <wangchen@cn.fujitsu.com> Enforcing these kinds of things we've allowed for so many years is rather pointless, especially if it breaks real applications. Which I believe it does in this case. The standards simply do not matter. I seem to recall that traceroute6 in iputils does exactly this. --
Apr 18, 7:09 am 2008
Enrico Scholz
[PATCH] DM9000: improved/fixed dev_dbg() messages
There was a missing newline in a dev_dbg() message. Values read from/written into PHY registers might be for interest too, so I added new dbg messages there. Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> --- drivers/net/dm9000.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c index 7bc16d2..e4af7a9 100644 --- a/drivers/net/dm9000.c +++ b/drivers/net/dm9000.c @@ -525,7 +525,7 @@ dm9000_probe(struct...
Apr 18, 6:02 am 2008
Ben Dooks
Re: [PATCH] DM9000: improved/fixed dev_dbg() messages
The phy reads are going to be a problem as a previous patch i've submitted adds a phy polling timer to keep track of the phy state and keep the network layer aprised of the link status. This is going to end up spamming the log. I'd have prefered to see a seperate fix and then addition of features as this often makes it easier to see what is going on (although this -- Ben (ben@fluff.org, http://www.fluff.org/) 'a smiley only costs 4 bytes' --
Apr 18, 7:19 am 2008
Enrico Scholz
[PATCH] DM9000: platform dependent fill_ether_addr method
This patch adds a fill_ether_addr() method to the DM9000 platform data which can be used to fill in the MAC address in a platform specific manner (e.g. calculate it out of the serial number). This method will be called only, when MAC was not set previously (e.g. by bootloader) or can be read out of the EEPROM. Having a valid MAC address in early bootstage is necessary e.g. for booting from network. Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> --- drivers/net/dm9000.c ...
Apr 18, 6:02 am 2008
Ben Dooks
Re: [PATCH] DM9000: platform dependent fill_ether_addr method
I belive this has come up on the list a number of times before, and the general answer is that either the bootloader is at fault for not initialising the chip, the manufacturer should have shoved an EEPROM on for configuration. The general answer is that the driver should not be making up for the fault of the system. I'm not sure if you can pass the mac via a commandline argument, that No, you can load an initramfs to set the mac via ethtool and then continue with the boot. -- Ben (ben@fl...
Apr 18, 11:21 am 2008
Enrico Scholz
[PATCH] DM9000: __devinit/exit annotations
There were missing __dev* annotations for the dm9000_probe() and dm9000_drv_remove() functions. Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> --- drivers/net/dm9000.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c index e668b37..7bc16d2 100644 --- a/drivers/net/dm9000.c +++ b/drivers/net/dm9000.c @@ -503,7 +503,7 @@ dm9000_release_board(struct platform_device *pdev, struct board_info *db) /* ...
Apr 18, 6:02 am 2008
Ben Dooks Apr 18, 6:43 am 2008
Rusty Russell
[PATCH 0/5] High-speed tun receive and xmit
kvm (and lguest!) want to get more speed out of the tun device. We already have an ABI for guest<->host comms, called virtio_ring; extending tun to understand this (with its async nature and batching) make for an efficient network. But moreover: the same things that make virtio a good guest<->host transport make it appealing as a userspace<->kernel transport. So rather than do something just for tun, we create a /dev/vring. We could do a system call, but /dev/vring is suf...
Apr 18, 12:33 am 2008
Rusty Russell
[PATCH 1/5] virtio: put last_used and last_avail index into ...
Generally, the other end of the virtio ring doesn't need to see where you're up to in consuming the ring. However, in order for an external entity to understand it, it must be exposed. For example, if you want to save and restore a virtio_ring, but you're not the consumer because the kernel is using it directly. Fortunately, we have room to expand: the ring is always a whole number of pages and there's hundreds of bytes of padding after the avail ring and the used ring, whatever the number of des...
Apr 18, 12:35 am 2008
Rusty Russell
[PATCH 2/5] /dev/vring: simple userspace-kernel ringbuffer i...
virtio introduced a ring structure ABI for guest-host communications (currently used by lguest and kvm). Using this same ABI, we can create a nice fd version. This is useful for efficiently passing packets to and from the tun, for example. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> --- drivers/char/Kconfig | 9 + drivers/char/Makefile | 2 drivers/char/vring.c | 400 ++++++++++++++++++++++++++++++++++++++++++++++++++ include/linux/vring.h | 58 +++++++ 4 files ch...
Apr 18, 12:39 am 2008
Andrew Morton
Re: [PATCH 2/5] /dev/vring: simple userspace-kernel ringbuff...
hm, I don't understand the big picture here yet. Isn't this kinda-sorta like what a relayfs file does? The oprofile --
Apr 18, 7:18 am 2008
Rusty Russell
Re: [PATCH 2/5] /dev/vring: simple userspace-kernel ringbuff...
An excellent question, but I thought the modern kernel etiquette was to only comment on whitespace and formatting, and call it "review"? :) Yes, kinda-sorta in that it's a ring buffer. No, in that it's bidir and consumption can be out-of-order (kind of important for I/O buffers). But the reason I'm not proposing it as a syscall is that I'm not convinced it's the One True Solution which everyone should be using. Time will tell: it's clearly not tied to tun and it's been generically useful...
Apr 18, 10:32 am 2008
Andrew Morton
Re: [PATCH 2/5] /dev/vring: simple userspace-kernel ringbuff...
This is may be our third high-bandwidth user/kernel interface to transport bulk data ("hbukittbd") which was implemented because its predecessors weren't quite right. In a year or two's time someone else will need a hbukittbd and will find that the existing three aren't quite right and will give us another one. One day we need to stop doing this ;) It could be that this person will look at Rusty's hbukittbd and find that it _could_ be tweaked to do what he wants, but it's already shipping and i...
Apr 18, 2:59 pm 2008
previous daytodaynext day
April 17, 2008April 18, 2008April 19, 2008
speck-geostationary