All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch net] bonding: use ETH_MAX_MTU as max mtu
@ 2017-03-02 20:24 Cong Wang
  2017-03-02 21:22 ` Jay Vosburgh
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Cong Wang @ 2017-03-02 20:24 UTC (permalink / raw)
  To: netdev; +Cc: daznis, lists2009, Cong Wang, Jarod Wilson

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;
 
-- 
2.5.5

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

* Re: [Patch net] bonding: use ETH_MAX_MTU as max mtu
  2017-03-02 20:24 [Patch net] bonding: use ETH_MAX_MTU as max mtu Cong Wang
@ 2017-03-02 21:22 ` Jay Vosburgh
  2017-03-02 22:43 ` David Miller
  2017-03-06 13:36 ` Jarod Wilson
  2 siblings, 0 replies; 7+ messages in thread
From: Jay Vosburgh @ 2017-03-02 21:22 UTC (permalink / raw)
  To: Cong Wang; +Cc: netdev, daznis, lists2009, Jarod Wilson

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

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

* Re: [Patch net] bonding: use ETH_MAX_MTU as max mtu
  2017-03-02 20:24 [Patch net] bonding: use ETH_MAX_MTU as max mtu Cong Wang
  2017-03-02 21:22 ` Jay Vosburgh
@ 2017-03-02 22:43 ` David Miller
  2017-03-03  1:17   ` Brad Campbell
  2017-03-06 13:36 ` Jarod Wilson
  2 siblings, 1 reply; 7+ messages in thread
From: David Miller @ 2017-03-02 22:43 UTC (permalink / raw)
  To: xiyou.wangcong; +Cc: netdev, daznis, lists2009, jarod

From: Cong Wang <xiyou.wangcong@gmail.com>
Date: Thu,  2 Mar 2017 12:24:36 -0800

> 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>

Applied and queued up for -stable, thanks.

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

* Re: [Patch net] bonding: use ETH_MAX_MTU as max mtu
  2017-03-02 22:43 ` David Miller
@ 2017-03-03  1:17   ` Brad Campbell
  0 siblings, 0 replies; 7+ messages in thread
From: Brad Campbell @ 2017-03-03  1:17 UTC (permalink / raw)
  To: David Miller, xiyou.wangcong; +Cc: netdev, daznis, jarod

On 03/03/17 06:43, David Miller wrote:
> From: Cong Wang <xiyou.wangcong@gmail.com>
> Date: Thu,  2 Mar 2017 12:24:36 -0800
>
>> 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>
>
> Applied and queued up for -stable, thanks.
>

Thanks very much for this. I've tested it against 4.10.1 and it does the 
job nicely.

Regards,
Brad

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

* Re: [Patch net] bonding: use ETH_MAX_MTU as max mtu
  2017-03-02 20:24 [Patch net] bonding: use ETH_MAX_MTU as max mtu Cong Wang
  2017-03-02 21:22 ` Jay Vosburgh
  2017-03-02 22:43 ` David Miller
@ 2017-03-06 13:36 ` Jarod Wilson
  2017-03-06 13:40   ` Jiri Pirko
  2 siblings, 1 reply; 7+ messages in thread
From: Jarod Wilson @ 2017-03-06 13:36 UTC (permalink / raw)
  To: Cong Wang, netdev; +Cc: daznis, lists2009, Jiri Pirko

On 2017-03-02 3:24 PM, Cong Wang 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>

Apologies, I'm a bit late to the party, direct CC didn't land in inbox 
because of duplicate suppression or perhaps a greedy mail filtering rule 
(*grumble*)... Too late to ack, but yeah, that's necessary. I *think* 
the team driver may also require the same treatment. It calls 
ether_setup() without anything setting max_mtu as well.

-- 
Jarod Wilson
jarod@redhat.com

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

* Re: [Patch net] bonding: use ETH_MAX_MTU as max mtu
  2017-03-06 13:36 ` Jarod Wilson
@ 2017-03-06 13:40   ` Jiri Pirko
  2017-03-06 13:49     ` Jarod Wilson
  0 siblings, 1 reply; 7+ messages in thread
From: Jiri Pirko @ 2017-03-06 13:40 UTC (permalink / raw)
  To: Jarod Wilson; +Cc: Cong Wang, netdev, daznis, lists2009

Mon, Mar 06, 2017 at 02:36:47PM CET, jarod@redhat.com wrote:
>On 2017-03-02 3:24 PM, Cong Wang 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>
>
>Apologies, I'm a bit late to the party, direct CC didn't land in inbox
>because of duplicate suppression or perhaps a greedy mail filtering rule
>(*grumble*)... Too late to ack, but yeah, that's necessary. I *think* the
>team driver may also require the same treatment. It calls ether_setup()
>without anything setting max_mtu as well.

Jarod, could you please send the fix? Thanks.

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

* Re: [Patch net] bonding: use ETH_MAX_MTU as max mtu
  2017-03-06 13:40   ` Jiri Pirko
@ 2017-03-06 13:49     ` Jarod Wilson
  0 siblings, 0 replies; 7+ messages in thread
From: Jarod Wilson @ 2017-03-06 13:49 UTC (permalink / raw)
  To: Jiri Pirko; +Cc: Cong Wang, netdev, daznis, lists2009

On 2017-03-06 8:40 AM, Jiri Pirko wrote:
> Mon, Mar 06, 2017 at 02:36:47PM CET, jarod@redhat.com wrote:
>> On 2017-03-02 3:24 PM, Cong Wang 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>
>>
>> Apologies, I'm a bit late to the party, direct CC didn't land in inbox
>> because of duplicate suppression or perhaps a greedy mail filtering rule
>> (*grumble*)... Too late to ack, but yeah, that's necessary. I *think* the
>> team driver may also require the same treatment. It calls ether_setup()
>> without anything setting max_mtu as well.
>
> Jarod, could you please send the fix? Thanks.

Done.

-- 
Jarod Wilson
jarod@redhat.com

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

end of thread, other threads:[~2017-03-06 14:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-02 20:24 [Patch net] bonding: use ETH_MAX_MTU as max mtu Cong Wang
2017-03-02 21:22 ` Jay Vosburgh
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.