From: Phil Oester <hidden> Date: 2011-03-14 16:22:24
A few collected fixes to bonding. Patches are against net-next,
but should apply fine to 38-rc.
Phil
bond_main.c | 15 +++++++++++----
bond_sysfs.c | 5 ++++-
2 files changed, 15 insertions(+), 5 deletions(-)
From: Phil Oester <hidden> Date: 2011-03-14 16:22:36
Bringing up a bond interface with all network cables disconnected
does not properly set the interface as DOWN because the call to
netif_carrier_off occurs too early in bond_init. The call needs
to occur after register_netdevice has set dev->reg_state to
NETREG_REGISTERED, so that netif_carrier_off will trigger the
call to linkwatch_fire_event.
Signed-off-by: Phil Oester <redacted>
---
drivers/net/bonding/bond_main.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
From: Phil Oester <hidden> Date: 2011-03-14 16:22:41
When the bonding module is loaded, it creates bond0 by default.
Then, when attempting to create bond0, the following messages
are printed to syslog:
kernel: bonding: bond0 is being created...
kernel: bonding: Bond creation failed.
Which seems to indicate a problem, when in reality there is no
problem. Since the actual error code is passed down from bond_create,
make use of it to print a bit less ominous message:
kernel: bonding: bond0 is being created...
kernel: bond0 already exists.
Signed-off-by: Phil Oester <redacted>
---
drivers/net/bonding/bond_sysfs.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
From: Phil Oester <hidden> Date: 2011-03-14 16:22:45
When packets come in from a device with >= 16 receive queues
headed out a bonding interface, syslog gets filled with this:
kernel: bond0 selects TX queue 16, but real number of TX queues is 16
because queue_mapping is offset by 1. Adjust return value
to account for the offset.
This is a revision of my earlier patch (which did not use the
skb_rx_queue_* helpers - thanks to Ben for the suggestion).
Andy submitted a similar patch which emits a pr_warning on
invalid queue selection, but I believe the log spew is
not useful. We can revisit that question in the future,
but in the interim I believe fixing the core problem is
worthwhile.
Signed-off-by: Phil Oester <redacted>
---
drivers/net/bonding/bond_main.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
From: Andy Gospodarek <andy@greyhouse.net> Date: 2011-03-14 21:04:40
On Mon, Mar 14, 2011 at 09:22:03AM -0700, Phil Oester wrote:
A few collected fixes to bonding. Patches are against net-next,
but should apply fine to 38-rc.
Phil
bond_main.c | 15 +++++++++++----
bond_sysfs.c | 5 ++++-
2 files changed, 15 insertions(+), 5 deletions(-)
All in the series look good. Thanks for posting the queue cleanup,
Phil.
Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
From: David Miller <davem@davemloft.net> Date: 2011-03-16 02:29:20
From: Andy Gospodarek <andy@greyhouse.net>
Date: Mon, 14 Mar 2011 17:04:35 -0400
On Mon, Mar 14, 2011 at 09:22:03AM -0700, Phil Oester wrote:
quoted
A few collected fixes to bonding. Patches are against net-next,
but should apply fine to 38-rc.
Phil
bond_main.c | 15 +++++++++++----
bond_sysfs.c | 5 ++++-
2 files changed, 15 insertions(+), 5 deletions(-)
All in the series look good. Thanks for posting the queue cleanup,
Phil.
Signed-off-by: Andy Gospodarek <andy@greyhouse.net>