netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* commit a52ad514fdf3b8a57ca4322c92d2d8d5c6182485 net: deprecate eth_change_mtu, remove usage breaks bonding on my machine
@ 2017-03-01 16:11 Brad Campbell
  2017-03-02 19:17 ` Cong Wang
  0 siblings, 1 reply; 2+ messages in thread
From: Brad Campbell @ 2017-03-01 16:11 UTC (permalink / raw)
  To: jarod; +Cc: netdev, davem

G'day Jarod,

I have a pair of machines that are linked by a pair of quad port e1000 
cards with all 4 ports bonded. The network is configured with an mtu of 
9000.

Kernel 4.10 fails to bring these interfaces up as it fails when trying 
to set the mtu on the bond interface higher than 1500. A bisect between 
4.9 & 4.10 winds up identifying this commit as where it all goes wrong. 
If I modify the network config to not touch the mtu (ie leave it at 
1500) then it comes up ok.

I can individually configure each port with an mtu of 9000, so the e1000 
driver is ok, but there appears to be breakage in the bonding driver 
related to your mtu api changes.

I've just reverted to an older kernel, so it's no biggie. And as it's 
still a problem in the latest git head I assume nobody else has 
encountered it. I thought it worth reporting in case it triggers a quick 
lightbulb.

Regards,
Brad.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: commit a52ad514fdf3b8a57ca4322c92d2d8d5c6182485 net: deprecate eth_change_mtu, remove usage breaks bonding on my machine
  2017-03-01 16:11 commit a52ad514fdf3b8a57ca4322c92d2d8d5c6182485 net: deprecate eth_change_mtu, remove usage breaks bonding on my machine Brad Campbell
@ 2017-03-02 19:17 ` Cong Wang
  0 siblings, 0 replies; 2+ messages in thread
From: Cong Wang @ 2017-03-02 19:17 UTC (permalink / raw)
  To: Brad Campbell; +Cc: jarod, Linux Kernel Network Developers, David Miller

On Wed, Mar 1, 2017 at 8:11 AM, Brad Campbell <lists2009@fnarfbargle.com> wrote:
> G'day Jarod,
>
> I have a pair of machines that are linked by a pair of quad port e1000 cards
> with all 4 ports bonded. The network is configured with an mtu of 9000.
>
> Kernel 4.10 fails to bring these interfaces up as it fails when trying to
> set the mtu on the bond interface higher than 1500. A bisect between 4.9 &
> 4.10 winds up identifying this commit as where it all goes wrong. If I
> modify the network config to not touch the mtu (ie leave it at 1500) then it
> comes up ok.
>
> I can individually configure each port with an mtu of 9000, so the e1000
> driver is ok, but there appears to be breakage in the bonding driver related
> to your mtu api changes.
>
> I've just reverted to an older kernel, so it's no biggie. And as it's still
> a problem in the latest git head I assume nobody else has encountered it. I
> thought it worth reporting in case it triggers a quick lightbulb.

I think we need the following patch:

diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 6321f12..de47006 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -4179,6 +4179,7 @@ void bond_setup(struct net_device *bond_dev)

        /* Initialize the device entry points */
        ether_setup(bond_dev);
+       dev->max_mtu = ETH_MAX_MTU;
        bond_dev->netdev_ops = &bond_netdev_ops;
        bond_dev->ethtool_ops = &bond_ethtool_ops;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-02 19:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-01 16:11 commit a52ad514fdf3b8a57ca4322c92d2d8d5c6182485 net: deprecate eth_change_mtu, remove usage breaks bonding on my machine Brad Campbell
2017-03-02 19:17 ` Cong Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).