[PATCH 0/7] SFQ: backport some features from ESFQ

2007-07-29 Thread Corey Hickey
Hello, This set of patches adds some of ESFQ's modifications to the original SFQ. Thus far, I have received support for this approach rather than for trying to get ESFQ included as a separate qdisc. http://mailman.ds9a.nl/pipermail/lartc/2007q2/021056.html My patches here implement "tc qdisc c

[PATCH 1/7] Preparatory refactoring part 1.

2007-07-29 Thread Corey Hickey
Make a new function sfq_q_enqueue() that operates directly on the queue data. This will be useful for implementing sfq_change() in a later patch. A pleasant side-effect is reducing most of the duplicate code in sfq_enqueue() and sfq_requeue(). Similarly, make a new function sfq_q_dequeue(). Signe

[PATCH 2/7] Preparatory refactoring part 2.

2007-07-29 Thread Corey Hickey
Factor code out of sfq_init() and sfq_destroy(), again so that the new functions can be used by sfq_change() later. Actually, as the diff itself shows, most of the sfq_q_init() code comes from the original sfq_change(), but sfq_change() is only called by sfq_init() right now. Thus, it is safe to r

Re: TCP SACK issue, hung connection, tcpdump included

2007-07-29 Thread Willy Tarreau
Hi, [CCing netdev as it's where people competent on the subject are] On Sun, Jul 29, 2007 at 06:59:26AM +0100, Darryl L. Miles wrote: > CLIENT = Linux 2.6.20.1-smp [Customer build] > SERVER = Linux 2.6.9-55.ELsmp [Red Hat Enterprise Linux AS release 4 > (Nahant Update 5)] > > The problems start

[PATCH 3/7] Move two functions.

2007-07-29 Thread Corey Hickey
Move sfq_q_destroy() to above sfq_q_init() so that it can be used by an error case in a later patch. Move sfq_destroy() as well, for clarity. Signed-off-by: Corey Hickey <[EMAIL PROTECTED]> --- net/sched/sch_sfq.c | 24 1 files changed, 12 insertions(+), 12 deletions(-

[PATCH 4/7] Add "depth".

2007-07-29 Thread Corey Hickey
Make "depth" (number of queues) user-configurable: * replace #define with a parameter * use old hardcoded value as a default * kmalloc() arrays in sfq_q_init() * free() arrays in sfq_q_destroy() Signed-off-by: Corey Hickey <[EMAIL PROTECTED]> --- net/sched/sch_sfq.c | 85 ++

[PATCH 5/7] Add divisor.

2007-07-29 Thread Corey Hickey
Make hash divisor user-configurable. Signed-off-by: Corey Hickey <[EMAIL PROTECTED]> --- net/sched/sch_sfq.c | 18 +- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/net/sched/sch_sfq.c b/net/sched/sch_sfq.c index 2ff6a27..3e67a68 100644 --- a/net/sched/sch_sfq.c

[PATCH 6/7] Make qdisc changeable.

2007-07-29 Thread Corey Hickey
Re-implement sfq_change() and enable Qdisc_opts.change so "tc qdisc change" will work. Signed-off-by: Corey Hickey <[EMAIL PROTECTED]> --- net/sched/sch_sfq.c | 51 ++- 1 files changed, 50 insertions(+), 1 deletions(-) diff --git a/net/sched/sch_

[PATCH] [iproute2] SFQ: Support changing depth and divisor.

2007-07-29 Thread Corey Hickey
This can safely be applied either before or after the kernel patches because the tc_sfq_qopt struct is unchanged: - old kernels will ignore the parameters from new iproute2 - new kernels will use the same default parameters --- include/linux/pkt_sched.h |9 - tc/q_sfq.c

[PATCH 7/7] Remove comments about hardcoded values.

2007-07-29 Thread Corey Hickey
None of these are true anymore (hooray!). Signed-off-by: Corey Hickey <[EMAIL PROTECTED]> --- include/linux/pkt_sched.h |8 net/sched/sch_sfq.c | 17 +++-- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/include/linux/pkt_sched.h b/include/linux/pk

Re: [PATCH 1/4] fix endianness bug in l2cap_sock_listen()

2007-07-29 Thread David Miller
From: Marcel Holtmann <[EMAIL PROTECTED]> Date: Fri, 27 Jul 2007 16:41:18 +0200 > > We loop through psm values, calling __l2cap_get_sock_by_addr(psm, ...) > > until we get NULL; then we set ->psm of our socket to htobs(psm). > > IOW, we find unused psm value and put it into our socket. So far, so

Re: [PATCH 2/4] l2cap: endianness annotations

2007-07-29 Thread David Miller
From: Marcel Holtmann <[EMAIL PROTECTED]> Date: Fri, 27 Jul 2007 16:41:21 +0200 > > no code changes, just documenting existing types > > > > Signed-off-by: Al Viro <[EMAIL PROTECTED]> > > Signed-off-by: Marcel Holtmann <[EMAIL PROTECTED]> Applied. - To unsubscribe from this list: send the line

Re: [PATCH 0/7] SFQ: backport some features from ESFQ

2007-07-29 Thread Corey Hickey
Corey Hickey wrote: Hello, This set of patches adds some of ESFQ's modifications to the original SFQ. Thus far, I have received support for this approach rather than for trying to get ESFQ included as a separate qdisc. Crud; I wasn't expecting git-send-email to thread the messages that way.

Re: [PATCH 3/4] pass (host-endian) cmd length as explicit argument to l2cap_conf_req()

2007-07-29 Thread David Miller
From: Marcel Holtmann <[EMAIL PROTECTED]> Date: Fri, 27 Jul 2007 16:41:22 +0200 > > Signed-off-by: Al Viro <[EMAIL PROTECTED]> > > Signed-off-by: Marcel Holtmann <[EMAIL PROTECTED]> Applied. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PR

Re: [PATCH 4/4] l2cap: don't mangle cmd.len

2007-07-29 Thread David Miller
From: Marcel Holtmann <[EMAIL PROTECTED]> Date: Fri, 27 Jul 2007 16:41:26 +0200 > > Since nobody uses it after we convert it to host-endian, > > no need to do that at all. At that point l2cap is endian-clean. > > > > Signed-off-by: Al Viro <[EMAIL PROTECTED]> > > Signed-off-by: Marcel Holtmann

Re: [PATCH 0/7] SFQ: backport some features from ESFQ

2007-07-29 Thread David Miller
From: Corey Hickey <[EMAIL PROTECTED]> Date: Sun, 29 Jul 2007 00:17:15 -0700 > Corey Hickey wrote: > > Hello, > > > > This set of patches adds some of ESFQ's modifications to the original > > SFQ. Thus far, I have received support for this approach rather than for > > trying to get ESFQ include

Re: TCP SACK issue, hung connection, tcpdump included

2007-07-29 Thread Ilpo Järvinen
On Sun, 29 Jul 2007, Willy Tarreau wrote: > On Sun, Jul 29, 2007 at 06:59:26AM +0100, Darryl L. Miles wrote: > > CLIENT = Linux 2.6.20.1-smp [Customer build] > > SERVER = Linux 2.6.9-55.ELsmp [Red Hat Enterprise Linux AS release 4 > > (Nahant Update 5)] > > > > The problems start around time ind

Re: TCP SACK issue, hung connection, tcpdump included

2007-07-29 Thread Willy Tarreau
On Sun, Jul 29, 2007 at 11:26:00AM +0300, Ilpo Järvinen wrote: > On Sun, 29 Jul 2007, Willy Tarreau wrote: > > > On Sun, Jul 29, 2007 at 06:59:26AM +0100, Darryl L. Miles wrote: > > > CLIENT = Linux 2.6.20.1-smp [Customer build] > > > SERVER = Linux 2.6.9-55.ELsmp [Red Hat Enterprise Linux AS rele

Re: TCP SACK issue, hung connection, tcpdump included

2007-07-29 Thread David Miller
From: "Ilpo_Järvinen" <[EMAIL PROTECTED]> Date: Sun, 29 Jul 2007 11:26:00 +0300 (EEST) > Is this reproducable? Can you somehow verify that the packets CLIENT is > sending are indeed received by the SERVER...? One possibility is drops due to checksum errors on the receiver, this tends to pop up f

Re: TCP SACK issue, hung connection, tcpdump included

2007-07-29 Thread Jan Engelhardt
On Jul 29 2007 08:45, Willy Tarreau wrote: >On Sun, Jul 29, 2007 at 06:59:26AM +0100, Darryl L. Miles wrote: >> CLIENT = Linux 2.6.20.1-smp [Customer build] >> SERVER = Linux 2.6.9-55.ELsmp [Red Hat Enterprise Linux AS release 4 >> (Nahant Update 5)] >> >> The problems start around time index 09

Re: [linux-usb-devel] [PATCH] USB Pegasus driver - avoid a potential NULL pointer dereference.

2007-07-29 Thread Oliver Neukum
Am Sonntag 29 Juli 2007 schrieb Jesper Juhl: > On 29/07/07, Satyam Sharma <[EMAIL PROTECTED]> wrote: > > Hi, > > > > On 7/29/07, Jesper Juhl <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > > > This patch makes sure we don't dereference a NULL pointer in > > > drivers/net/usb/pegasus.c::write_bulk_c

Re: TCP SACK issue, hung connection, tcpdump included

2007-07-29 Thread Ilpo Järvinen
On Sun, 29 Jul 2007, Willy Tarreau wrote: > On Sun, Jul 29, 2007 at 11:26:00AM +0300, Ilpo Järvinen wrote: > > On Sun, 29 Jul 2007, Willy Tarreau wrote: > > > > > On Sun, Jul 29, 2007 at 06:59:26AM +0100, Darryl L. Miles wrote: > > > > CLIENT = Linux 2.6.20.1-smp [Customer build] > > > > SERVER =

Re: source interface ping bug ?

2007-07-29 Thread nano bug
Any news about this ? On 7/27/07, nano bug <[EMAIL PROTECTED]> wrote: > Hello there, > > I'm facing the following issue : when I try to ping using source > interface instead of a source ip address the ping utility starts to > send arp requests instead of icmp requests though the ip address I'm > p

[2.6 patch] drivers/net/cxgb3/xgmac.c: remove dead code

2007-07-29 Thread Adrian Bunk
This patch removes dead code ("tx_xcnt" can never be != 0 at this place) spotted by the Coverity checker. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> --- drivers/net/cxgb3/xgmac.c |5 + 1 file changed, 1 insertion(+), 4 deletions(-) --- linux-2.6.22-rc6-mm1/drivers/net/cxgb3/xgmac.

[-mm patch] e1000: #if 0 two functions

2007-07-29 Thread Adrian Bunk
e1000_{read,write}_pci_cfg() are no longer used. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> --- This patch has been sent on: - 1 Jul 2007 - 5 Jun 2007 drivers/net/e1000/e1000_hw.h |2 -- drivers/net/e1000/e1000_main.c |4 2 files changed, 4 insertions(+), 2 deletions(-) ---

[2.6 patch] make pktgen.c:get_ipsec_sa() static and non-inline

2007-07-29 Thread Adrian Bunk
Non-static inline code usually doesn't makes sense. In this case making is static and non-inline is the correct solution. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> --- --- linux-2.6.23-rc1-mm1/net/core/pktgen.c.old 2007-07-26 20:12:01.0 +0200 +++ linux-2.6.23-rc1-mm1/net/core/pktg

[2.6 patch] make nf_ct_ipv6_skip_exthdr() static

2007-07-29 Thread Adrian Bunk
nf_ct_ipv6_skip_exthdr() can now become static. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> --- include/net/netfilter/ipv6/nf_conntrack_ipv6.h |3 --- net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c |4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) --- linux-2.6.23-rc1-mm1/in

[2.6 patch] net/unix/af_unix.c: make code static

2007-07-29 Thread Adrian Bunk
The following code can now become static: - struct unix_socket_table - unix_table_lock Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> --- include/net/af_unix.h | 29 - net/unix/af_unix.c| 30 -- 2 files changed, 28 insertions(+), 3

Re: TCP SACK issue, hung connection, tcpdump included

2007-07-29 Thread Willy Tarreau
On Sun, Jul 29, 2007 at 12:28:04PM +0300, Ilpo Järvinen wrote: (...) > > > Limitation for 48 byte segments? You have to be kidding... :-) But yes, > > > it seems that one of the directions is dropping packets for some reason > > > though I would not assume MTU limitation... Or did you mean some ot

Re: TCP SACK issue, hung connection, tcpdump included

2007-07-29 Thread Ilpo Järvinen
On Sun, 29 Jul 2007, Willy Tarreau wrote: > On Sun, Jul 29, 2007 at 12:28:04PM +0300, Ilpo Järvinen wrote: > > > [...snip...] > > > > > BTW, some information are missing. It would have been better if the trace > > > had been read with tcpdump -Svv. We would have got seq numbers and ttl. > > > Al

Re: [linux-usb-devel] [PATCH] USB Pegasus driver - avoid a potential NULL pointer dereference.

2007-07-29 Thread Satyam Sharma
On Sun, 29 Jul 2007, Oliver Neukum wrote: > Am Sonntag 29 Juli 2007 schrieb Jesper Juhl: > > On 29/07/07, Satyam Sharma <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > On 7/29/07, Jesper Juhl <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > > > > > This patch makes sure we don't dereference a

Re: [PATCH] sb1000: prevent a potential NULL pointer dereference in sb1000_dev_ioctl()

2007-07-29 Thread Satyam Sharma
> On Sun, 29 Jul 2007, Domen Puncer wrote: > > > On 29/07/07 00:02 +0200, Jesper Juhl wrote: > > > Hi, > > > > > > Here's a small patch, prompted by a find by the Coverity checker, > > > that removes a potential NULL pointer dereference from > > > drivers/net/sb1000.c::sb1000_dev_ioctl(). > >

Re: [PATCH 4/7] Add "depth".

2007-07-29 Thread Michael Buesch
On Sunday 29 July 2007 09:08:51 Corey Hickey wrote: > p = d; > n = q->dep[d].next; > @@ -215,7 +216,7 @@ static unsigned int sfq_drop(struct Qdisc *sch) > drop a packet from it */ > > if (d > 1) { > - sfq_index x = q->dep[d+SFQ_DEPTH].next; > + s

Re: [PATCH] sb1000: prevent a potential NULL pointer dereference in sb1000_dev_ioctl()

2007-07-29 Thread Michael Buesch
On Sunday 29 July 2007 20:34:46 Satyam Sharma wrote: > (2) !(dev->flags & IFF_UP) is bogus because the functions of this ioctl > can (and should) be allowed even when the interface is not up and running. Are you _sure_? This function does poke with the device hardware. It might return crap or even

Re: [PATCH] sb1000: prevent a potential NULL pointer dereference in sb1000_dev_ioctl()

2007-07-29 Thread Satyam Sharma
Hi Michael, On Sun, 29 Jul 2007, Michael Buesch wrote: > On Sunday 29 July 2007 20:34:46 Satyam Sharma wrote: > > (2) !(dev->flags & IFF_UP) is bogus because the functions of this ioctl > > can (and should) be allowed even when the interface is not up and running. > > Are you _sure_? This funct

[PATCH] ethtool_perm_addr only has one implementation

2007-07-29 Thread Matthew Wilcox
All drivers implement ethtool get_perm_addr the same way -- by calling the generic function. So we can inline the generic function into the caller and avoid going through the drivers. Signed-off-by: Matthew Wilcox <[EMAIL PROTECTED]> diff -u b/net/core/ethtool.c b/net/core/ethtool.c --- b/net/c

[PATCH 2.6.23 1/2] Make the iw_cxgb3 module parameters writable.

2007-07-29 Thread Steve Wise
Make the iw_cxgb3 module parameters writable. Signed-off-by: Steve Wise <[EMAIL PROTECTED]> --- drivers/infiniband/hw/cxgb3/iwch_cm.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cxgb3/iwch

[PATCH 2.6.23 2/2] iw_cxgb3: Always call low level send function via cxgb3_ofld_send().

2007-07-29 Thread Steve Wise
iw_cxgb3: Always call low level send function via cxgb3_ofld_send(). Avoids deadlocks. Signed-off-by: Steve Wise <[EMAIL PROTECTED]> --- drivers/infiniband/hw/cxgb3/iwch_cm.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/infiniband/hw/cxgb3/iwc

Re: [PATCH 4/7] Add "depth".

2007-07-29 Thread Corey Hickey
Michael Buesch wrote: On Sunday 29 July 2007 09:08:51 Corey Hickey wrote: p = d; n = q->dep[d].next; @@ -215,7 +216,7 @@ static unsigned int sfq_drop(struct Qdisc *sch) drop a packet from it */ if (d > 1) { - sfq_index x = q->dep[d+SFQ_DEPTH].next; +

Re: [PATCH] ethtool_perm_addr only has one implementation

2007-07-29 Thread Kok, Auke
Matthew Wilcox wrote: All drivers implement ethtool get_perm_addr the same way -- by calling the generic function. So we can inline the generic function into the caller and avoid going through the drivers. Signed-off-by: Matthew Wilcox <[EMAIL PROTECTED]> For the e100, e1000, ixgb parts: Ack

Re: [PATCH] sb1000: prevent a potential NULL pointer dereference in sb1000_dev_ioctl()

2007-07-29 Thread Michael Buesch
On Sunday 29 July 2007 21:09, Satyam Sharma wrote: > Hi Michael, > > > On Sun, 29 Jul 2007, Michael Buesch wrote: > > > On Sunday 29 July 2007 20:34:46 Satyam Sharma wrote: > > > (2) !(dev->flags & IFF_UP) is bogus because the functions of this ioctl > > > can (and should) be allowed even when t

Re: [PATCH] SMSC LAN911x and LAN921x vendor driver

2007-07-29 Thread Peter Korsgaard
> "Steve" == Steve Glendinning <[EMAIL PROTECTED]> writes: Hi, Steve> Attached is a driver for SMSC's LAN911x and LAN921x families Steve> of embedded ethernet controllers. Steve> There is an existing smc911x driver in the tree; this is intended to Steve> replace it. Dustin McIntire (the

Re: [PATCH 4/7] Add "depth".

2007-07-29 Thread Michael Buesch
On Sunday 29 July 2007 22:21, Corey Hickey wrote: > > Compare depth against (~0U/2)-1? What's that doing? Should probably add a > > comment. > > ~0U/2 - 1 is the maximum value depth can be, based on how it is used in > indexing q->dep. I agree, though, that deserves a comment. Actually, > I'll

Re: netdevice queueing / sendmsg issue?

2007-07-29 Thread Krzysztof Halasa
David Miller <[EMAIL PROTECTED]> writes: > Software interrupts might be getting lost, dev_kfree_skb_irq() has to > queue the kfree_skb() to soft IRQ. > > Therefore, dev_kfree_skb_irq() will only work properly from hardware > interrupt context, where we will return and thus run the scheduled > soft

IPUtils and uClibc

2007-07-29 Thread Rafał Bilski
Hi, Today I was trying to update my router based on Gentoo and uClibc. Unfortunatly build fails because of b* functions. Linker can't find them later. At first gcc is complaining that b* functions are impilicity declared. Acording to man pages these functions are deprecated anyway. Patch is

[PATCH 3/7] Move two functions.

2007-07-29 Thread Corey Hickey
Move sfq_q_destroy() to above sfq_q_init() so that it can be used by an error case in a later patch. Move sfq_destroy() as well, for clarity. Signed-off-by: Corey Hickey <[EMAIL PROTECTED]> --- net/sched/sch_sfq.c | 24 1 files changed, 12 insertions(+), 12 deletions(-

[PATCH 2/7] Preparatory refactoring part 2.

2007-07-29 Thread Corey Hickey
Factor code out of sfq_init() and sfq_destroy(), again so that the new functions can be used by sfq_change() later. Actually, as the diff itself shows, most of the sfq_q_init() code comes from the original sfq_change(), but sfq_change() is only called by sfq_init() right now. Thus, it is safe to r

SFQ: backport some features from ESFQ (try 2)

2007-07-29 Thread Corey Hickey
Hello, Patchset try 2 addresses the review by Michael Buesch. This set of patches adds some of ESFQ's modifications to the original SFQ. Thus far, I have received support for this approach rather than for trying to get ESFQ included as a separate qdisc. http://mailman.ds9a.nl/pipermail/lartc/2

[PATCH 5/7] Add divisor.

2007-07-29 Thread Corey Hickey
Make hash divisor user-configurable. Signed-off-by: Corey Hickey <[EMAIL PROTECTED]> --- net/sched/sch_sfq.c | 17 - 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/net/sched/sch_sfq.c b/net/sched/sch_sfq.c index 70124ac..e6a6a21 100644 --- a/net/sched/sch_sfq.c

[PATCH 1/7] Preparatory refactoring part 1.

2007-07-29 Thread Corey Hickey
Make a new function sfq_q_enqueue() that operates directly on the queue data. This will be useful for implementing sfq_change() in a later patch. A pleasant side-effect is reducing most of the duplicate code in sfq_enqueue() and sfq_requeue(). Similarly, make a new function sfq_q_dequeue(). Signe

[PATCH 4/7] Add "depth".

2007-07-29 Thread Corey Hickey
Make "depth" (number of queues) user-configurable: * replace #define with a parameter * use old hardcoded value as a default * kcalloc() arrays in sfq_q_init() * free() arrays in sfq_q_destroy() Signed-off-by: Corey Hickey <[EMAIL PROTECTED]> --- net/sched/sch_sfq.c | 81 ++

[PATCH 6/7] Make qdisc changeable.

2007-07-29 Thread Corey Hickey
Re-implement sfq_change() and enable Qdisc_opts.change so "tc qdisc change" will work. Signed-off-by: Corey Hickey <[EMAIL PROTECTED]> --- net/sched/sch_sfq.c | 51 ++- 1 files changed, 50 insertions(+), 1 deletions(-) diff --git a/net/sched/sch_

[PATCH] [iproute2] SFQ: Support changing depth and divisor.

2007-07-29 Thread Corey Hickey
This can safely be applied either before or after the kernel patches because the tc_sfq_qopt struct is unchanged: - old kernels will ignore the parameters from new iproute2 - new kernels will use the same default parameters --- include/linux/pkt_sched.h |9 - tc/q_sfq.c

[PATCH 7/7] Remove comments about hardcoded values.

2007-07-29 Thread Corey Hickey
None of these are true anymore (hooray!). Signed-off-by: Corey Hickey <[EMAIL PROTECTED]> --- include/linux/pkt_sched.h |8 net/sched/sch_sfq.c | 17 +++-- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/include/linux/pkt_sched.h b/include/linux/pk

[PATCH v3 -mm 0/9] netconsole: Multiple targets and dynamic reconfigurability

2007-07-29 Thread Satyam Sharma
[0/9] netconsole: Multiple targets and dynamic reconfigurability This is v3 of the patchset, the previous versions are available at: http://lkml.org/lkml/2007/7/4/107 http://lkml.org/lkml/2007/7/10/78 Diffed against 2.6.23-rc1-git6 (6c8dca5d as of writing), but applies successfully to 2.6.23-rc1-

[PATCH v3 -mm 1/9] netconsole: Cleanups, codingstyle, prettyfication

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [1/9] netconsole: Cleanups, codingstyle, prettyfication (1) Remove unwanted headers. (2) Mark __init and __exit as appropriate. (3) Various trivial codingstyle and prettification stuff. Signed-off-by: Satyam Sharma <[EMAIL PROTECTED]> Signed-off-by: Keiich

[PATCH v3 -mm 2/9] netconsole: Remove bogus check

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [2/9] netconsole: Remove bogus check The (!np.dev) check in write_msg() is bogus (always false), because: np.dev is set by netpoll_setup(), which is called by init_netconsole() before register_console(), so write_msg() cannot be triggered unless netpoll_set

[PATCH v3 -mm 3/9] netconsole: Simplify boot/module option setup logic

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [3/9] netconsole: Simplify boot/module option setup logic Presently, boot/module parameters are set up quite differently for the case of built-in netconsole (__setup() -> obsolete_checksetup() -> netpoll_parse_options() -> strlen(config) == 0 in init_netcon

[PATCH v3 -mm 4/9] netconsole: Use netif_running() in write_msg()

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [4/9] netconsole: Use netif_running() in write_msg() Avoid unnecessarily disabling interrupts and calling netpoll_send_udp() if the corresponding local interface is not up. Signed-off-by: Satyam Sharma <[EMAIL PROTECTED]> Acked-by: Keiichi Kii <[EMAIL PROT

[PATCH v3 -mm 5/9] netconsole: Add some useful tips to documentation

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [5/9] netconsole: Add some useful tips to documentation Add some useful general-purpose tips. Also suggest solution for the frequent problem of console loglevel set too low numerically (i.e. for high priority messages only) on the sender. Signed-off-by: Sa

[PATCH v3 -mm 6/9] netconsole: Introduce netconsole_target

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [6/9] netconsole: Introduce netconsole_target Introduce a wrapper structure over netpoll to represent logging targets configured in netconsole. This will get extended with other members in further patches. This is done independent of the (to-be-introduced)

[PATCH v3 -mm 7/9] netconsole: Introduce netconsole_netdev_notifier

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [7/9] netconsole: Introduce netconsole_netdev_notifier To update fields of underlying netpoll structure at runtime on corresponding NETDEV_CHANGEADDR or NETDEV_CHANGENAME notifications. ioctl(SIOCSIFHWADDR or SIOCSIFNAME) could be used to change the hardwa

[PATCH v3 -mm 8/9] netconsole: Support multiple logging targets

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [8/9] netconsole: Support multiple logging targets This patch introduces support for multiple targets, independent of CONFIG_NETCONSOLE_DYNAMIC -- this is useful even in the default case and (including the infrastructure introduced in previous patches) does

[PATCH v3 -mm 9/9] netconsole: Support dynamic reconfiguration using configfs

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [9/9] netconsole: Support dynamic reconfiguration using configfs This patch introduces support for dynamic reconfiguration (adding, removing and/or modifying parameters of netconsole targets at runtime) using a userspace interface exported via configfs. Doc