[patch] ifb double-counts packets

2006-12-23 Thread dean gaudet
it seems that ifb counts packets twice... both at xmit time and also in the tasklet. i'm not sure which one of the two to drop, but here's a patch for dropping the counting at xmit time. patch against 2.6.20-rc1. -dean Signed-off-by: dean gaudet [EMAIL PROTECTED] Index:

Re: [patch] ifb double-counts packets

2006-12-23 Thread jamal
On Sat, 2006-23-12 at 02:35 -0800, dean gaudet wrote: it seems that ifb counts packets twice... both at xmit time and also in the tasklet. i'm not sure which one of the two to drop, but here's a patch for dropping the counting at xmit time. Good catch but not quite right. The correct way to

Re: bcm43xx from 2.6.20-rc1-mm1 on HPC nx6325 (x86_64)

2006-12-23 Thread Rafael J. Wysocki
Hi, On Friday, 22 December 2006 18:30, Larry Finger wrote: I'm trying to make the bcm43xx driver out of the 2.6.20-rc1-mm1 kernel work on an HPC nx6325, with no luck, so far, although I'm using a firmware that has been reported to work with these boxes

Pull request for 'r8169-upstream-20061223-00' tag

2006-12-23 Thread Francois Romieu
Please pull from tag 'r8169-upstream-20061223-00' in repository git://electric-eye.fr.zoreil.com/home/romieu/linux-2.6.git tag r8169-upstream-20061223-00 to get the changes below. PS: the same changes are available in branch 'r8169' which forked from the main trunk

[take29 6/8] kevent: Pipe notifications.

2006-12-23 Thread Evgeniy Polyakov
Pipe notifications. diff --git a/fs/pipe.c b/fs/pipe.c index f3b6f71..aeaee9c 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -16,6 +16,7 @@ #include linux/uio.h #include linux/highmem.h #include linux/pagemap.h +#include linux/kevent.h #include asm/uaccess.h #include asm/ioctls.h @@ -312,6

[take29 5/8] kevent: Timer notifications.

2006-12-23 Thread Evgeniy Polyakov
Timer notifications. Timer notifications can be used for fine grained per-process time management, since interval timers are very inconvenient to use, and they are limited. This subsystem uses high-resolution timers. id.raw[0] is used as number of seconds id.raw[1] is used as number of

[take29 7/8] kevent: Signal notifications.

2006-12-23 Thread Evgeniy Polyakov
Signal notifications. This type of notifications allows to deliver signals through kevent queue. One can find example application signal.c on project homepage. If KEVENT_SIGNAL_NOMASK bit is set in raw_u64 id then signal will be delivered only through queue, otherwise both delivery types are

[take29 4/8] kevent: Socket notifications.

2006-12-23 Thread Evgeniy Polyakov
Socket notifications. This patch includes socket send/recv/accept notifications. Using trivial web server based on kevent and this features instead of epoll it's performance increased more than noticebly. More details about various benchmarks and server itself (evserver_kevent.c) can be found

[take29 3/8] kevent: poll/select() notifications.

2006-12-23 Thread Evgeniy Polyakov
poll/select() notifications. This patch includes generic poll/select notifications. kevent_poll works simialr to epoll and has the same issues (callback is invoked not from internal state machine of the caller, but through process awake, a lot of allocations and so on). Signed-off-by: Evgeniy

[take29 1/8] kevent: Description.

2006-12-23 Thread Evgeniy Polyakov
Description. diff --git a/Documentation/kevent.txt b/Documentation/kevent.txt new file mode 100644 index 000..2e03a3f --- /dev/null +++ b/Documentation/kevent.txt @@ -0,0 +1,240 @@ +Description. + +int kevent_init(struct kevent_ring *ring, unsigned int ring_size, + unsigned int

[take29 8/8] kevent: Kevent posix timer notifications.

2006-12-23 Thread Evgeniy Polyakov
Kevent posix timer notifications. Simple extensions to POSIX timers which allows to deliver notification of the timer expiration through kevent queue. Example application posix_timer.c can be found in archive on project homepage. Signed-off-by: Evgeniy Polyakov [EMAIL PROTECTED] diff --git

[take29 0/8] kevent: Generic event handling mechanism.

2006-12-23 Thread Evgeniy Polyakov
Generic event handling mechanism. Kevent is a generic subsytem which allows to handle event notifications. It supports both level and edge triggered events. It is similar to poll/epoll in some cases, but it is more scalable, it is faster and allows to work with essentially eny kind of events.

Re: [take29 0/8] kevent: Generic event handling mechanism.

2006-12-23 Thread Evgeniy Polyakov
On Sat, Dec 23, 2006 at 07:51:40PM +0300, Evgeniy Polyakov ([EMAIL PROTECTED]) wrote: Generic event handling mechanism. Kevent is a generic subsytem which allows to handle event notifications. It supports both level and edge triggered events. It is similar to poll/epoll in some cases, but

[dropped? patch] netdev: fix smc911 compile error

2006-12-23 Thread Chuck Ebbert
From: Vitaly Wool [EMAIL PROTECTED] Fix compilation failure for smc911x.c when NET_POLL_CONTROLLER is set. Signed-off-by: Vitaly Wool [EMAIL PROTECTED] --- Is not upstream and doesn't seem to be in upstream-fixes either. --- a/drivers/net/smc911x.c +++ b/drivers/net/smc911x.c @@ -1331,7 +1331,7

Re: [dropped? patch] netdev: fix smc911 compile error

2006-12-23 Thread Jeff Garzik
Chuck Ebbert wrote: From: Vitaly Wool [EMAIL PROTECTED] Fix compilation failure for smc911x.c when NET_POLL_CONTROLLER is set. Signed-off-by: Vitaly Wool [EMAIL PROTECTED] --- Is not upstream and doesn't seem to be in upstream-fixes either. It's in Linus's upstream. netdev-2.6.git#upstream

Re: [patch] ifb double-counts packets

2006-12-23 Thread dean gaudet
On Sat, 23 Dec 2006, jamal wrote: On Sat, 2006-23-12 at 02:35 -0800, dean gaudet wrote: it seems that ifb counts packets twice... both at xmit time and also in the tasklet. i'm not sure which one of the two to drop, but here's a patch for dropping the counting at xmit time. Good

Re: [RFC][PATCH -mm 3/5] add interface for netconsole using sysfs

2006-12-23 Thread Randy Dunlap
On Fri, 22 Dec 2006 21:14:36 +0900 Keiichi KII wrote: From: Keiichi KII [EMAIL PROTECTED] --- [changes] 1. expand macro code as far as possible. 2. follow kernel coding style. 3. print proper output messeage. 4. attach proper label for printk. 5. integrate netpoll_lock and