From: Jay Vosburgh <jay.vosburgh@canonical.com>
To: Cong Wang <xiyou.wangcong@gmail.com>
Cc: netdev@vger.kernel.org, daznis@gmail.com,
lists2009@fnarfbargle.com, Jarod Wilson <jarod@redhat.com>
Subject: Re: [Patch net] bonding: use ETH_MAX_MTU as max mtu
Date: Thu, 02 Mar 2017 13:22:57 -0800 [thread overview]
Message-ID: <14859.1488489777@famine> (raw)
In-Reply-To: <1488486276-24552-1-git-send-email-xiyou.wangcong@gmail.com>
Cong Wang <xiyou.wangcong@gmail.com> wrote:
>This restores the ability of setting bond device's mtu to 9000.
>
>Fixes: 91572088e3fd ("net: use core MTU range checking in core net infra")
>Reported-by: daznis@gmail.com
>Reported-by: Brad Campbell <lists2009@fnarfbargle.com>
>Cc: Jarod Wilson <jarod@redhat.com>
>Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
>---
> drivers/net/bonding/bond_main.c | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
>index 6321f12..8a4ba8b 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);
>+ bond_dev->max_mtu = ETH_MAX_MTU;
> bond_dev->netdev_ops = &bond_netdev_ops;
> bond_dev->ethtool_ops = &bond_ethtool_ops;
Signed-off-by: Jay Vosburgh <jay.vosburgh@canonical.com>
-J
---
-Jay Vosburgh, jay.vosburgh@canonical.com
next prev parent reply other threads:[~2017-03-02 22:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-02 20:24 [Patch net] bonding: use ETH_MAX_MTU as max mtu Cong Wang
2017-03-02 21:22 ` Jay Vosburgh [this message]
2017-03-02 22:43 ` David Miller
2017-03-03 1:17 ` Brad Campbell
2017-03-06 13:36 ` Jarod Wilson
2017-03-06 13:40 ` Jiri Pirko
2017-03-06 13:49 ` Jarod Wilson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=14859.1488489777@famine \
--to=jay.vosburgh@canonical.com \
--cc=daznis@gmail.com \
--cc=jarod@redhat.com \
--cc=lists2009@fnarfbargle.com \
--cc=netdev@vger.kernel.org \
--cc=xiyou.wangcong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).