]> git.proxmox.com Git - pve-kernel.git/blame - openvswitch-Set-internal-device-max-mtu-to-ETH_MAX_M.patch
build-sys: replace fixed architecture use where possible
[pve-kernel.git] / openvswitch-Set-internal-device-max-mtu-to-ETH_MAX_M.patch
CommitLineData
e513dc9e
FG
1From 425df17ce3a26d98f76e2b6b0af2acf4aeb0b026 Mon Sep 17 00:00:00 2001
2From: Jarno Rajahalme <jarno@ovn.org>
3Date: Tue, 14 Feb 2017 21:16:28 -0800
4Subject: [PATCH] openvswitch: Set internal device max mtu to ETH_MAX_MTU.
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Commit 91572088e3fd ("net: use core MTU range checking in core net
10infra") changed the openvswitch internal device to use the core net
11infra for controlling the MTU range, but failed to actually set the
12max_mtu as described in the commit message, which now defaults to
13ETH_DATA_LEN.
14
15This patch fixes this by setting max_mtu to ETH_MAX_MTU after
16ether_setup() call.
17
18Fixes: 91572088e3fd ("net: use core MTU range checking in core net infra")
19Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
20Signed-off-by: David S. Miller <davem@davemloft.net>
21Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
22---
23 net/openvswitch/vport-internal_dev.c | 2 ++
24 1 file changed, 2 insertions(+)
25
26diff --git a/net/openvswitch/vport-internal_dev.c b/net/openvswitch/vport-internal_dev.c
27index 09141a1..89193a6 100644
28--- a/net/openvswitch/vport-internal_dev.c
29+++ b/net/openvswitch/vport-internal_dev.c
30@@ -149,6 +149,8 @@ static void do_setup(struct net_device *netdev)
31 {
32 ether_setup(netdev);
33
34+ netdev->max_mtu = ETH_MAX_MTU;
35+
36 netdev->netdev_ops = &internal_dev_netdev_ops;
37
38 netdev->priv_flags &= ~IFF_TX_SKB_SHARING;
39--
402.1.4
41