* Patch "openvswitch: Set internal device max mtu to ETH_MAX_MTU." has been added to the 4.10-stable tree
@ 2017-05-11 8:51 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-05-11 8:51 UTC (permalink / raw)
To: jarno, davem, gregkh; +Cc: stable, stable-commits
This is a note to let you know that I've just added the patch titled
openvswitch: Set internal device max mtu to ETH_MAX_MTU.
to the 4.10-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
openvswitch-set-internal-device-max-mtu-to-eth_max_mtu.patch
and it can be found in the queue-4.10 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>From foo@baz Thu May 11 10:37:58 CEST 2017
From: Jarno Rajahalme <jarno@ovn.org>
Date: Tue, 14 Feb 2017 21:16:28 -0800
Subject: openvswitch: Set internal device max mtu to ETH_MAX_MTU.
From: Jarno Rajahalme <jarno@ovn.org>
[ Upstream commit 425df17ce3a26d98f76e2b6b0af2acf4aeb0b026 ]
Commit 91572088e3fd ("net: use core MTU range checking in core net
infra") changed the openvswitch internal device to use the core net
infra for controlling the MTU range, but failed to actually set the
max_mtu as described in the commit message, which now defaults to
ETH_DATA_LEN.
This patch fixes this by setting max_mtu to ETH_MAX_MTU after
ether_setup() call.
Fixes: 91572088e3fd ("net: use core MTU range checking in core net infra")
Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
net/openvswitch/vport-internal_dev.c | 2 ++
1 file changed, 2 insertions(+)
--- a/net/openvswitch/vport-internal_dev.c
+++ b/net/openvswitch/vport-internal_dev.c
@@ -151,6 +151,8 @@ static void do_setup(struct net_device *
{
ether_setup(netdev);
+ netdev->max_mtu = ETH_MAX_MTU;
+
netdev->netdev_ops = &internal_dev_netdev_ops;
netdev->priv_flags &= ~IFF_TX_SKB_SHARING;
Patches currently in stable-queue which might be from jarno@ovn.org are
queue-4.10/openvswitch-set-internal-device-max-mtu-to-eth_max_mtu.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-11 8:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-11 8:51 Patch "openvswitch: Set internal device max mtu to ETH_MAX_MTU." has been added to the 4.10-stable tree gregkh
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).