Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1639742 > unrolled thread

[PATCH 4.10 123/129] openvswitch: Set internal device max mtu to ETH_MAX_MTU.

Started byGreg Kroah-Hartman <gregkh@linuxfoundation.org>
First post2017-05-11 17:30 +0200
Last post2017-05-11 17:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 4.10 123/129] openvswitch: Set internal device max mtu to ETH_MAX_MTU. Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-05-11 17:30 +0200

#1639742 — [PATCH 4.10 123/129] openvswitch: Set internal device max mtu to ETH_MAX_MTU.

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2017-05-11 17:30 +0200
Subject[PATCH 4.10 123/129] openvswitch: Set internal device max mtu to ETH_MAX_MTU.
Message-ID<tFYcr-859-39@gated-at.bofh.it>
4.10-stable review patch.  If anyone has any objections, please let me know.

------------------

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;

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web