lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <14859.1488489777@famine>
Date:   Thu, 02 Mar 2017 13:22:57 -0800
From:   Jay Vosburgh <jay.vosburgh@...onical.com>
To:     Cong Wang <xiyou.wangcong@...il.com>
cc:     netdev@...r.kernel.org, daznis@...il.com,
        lists2009@...rfbargle.com, Jarod Wilson <jarod@...hat.com>
Subject: Re: [Patch net] bonding: use ETH_MAX_MTU as max mtu

Cong Wang <xiyou.wangcong@...il.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@...il.com
>Reported-by: Brad Campbell <lists2009@...rfbargle.com>
>Cc: Jarod Wilson <jarod@...hat.com>
>Signed-off-by: Cong Wang <xiyou.wangcong@...il.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@...onical.com>

	-J

---
	-Jay Vosburgh, jay.vosburgh@...onical.com

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ