]>
Commit | Line | Data |
---|---|---|
e513dc9e FG |
1 | From 425df17ce3a26d98f76e2b6b0af2acf4aeb0b026 Mon Sep 17 00:00:00 2001 |
2 | From: Jarno Rajahalme <jarno@ovn.org> | |
3 | Date: Tue, 14 Feb 2017 21:16:28 -0800 | |
4 | Subject: [PATCH] openvswitch: Set internal device max mtu to ETH_MAX_MTU. | |
5 | MIME-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ||
9 | Commit 91572088e3fd ("net: use core MTU range checking in core net | |
10 | infra") changed the openvswitch internal device to use the core net | |
11 | infra for controlling the MTU range, but failed to actually set the | |
12 | max_mtu as described in the commit message, which now defaults to | |
13 | ETH_DATA_LEN. | |
14 | ||
15 | This patch fixes this by setting max_mtu to ETH_MAX_MTU after | |
16 | ether_setup() call. | |
17 | ||
18 | Fixes: 91572088e3fd ("net: use core MTU range checking in core net infra") | |
19 | Signed-off-by: Jarno Rajahalme <jarno@ovn.org> | |
20 | Signed-off-by: David S. Miller <davem@davemloft.net> | |
21 | Signed-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 | ||
26 | diff --git a/net/openvswitch/vport-internal_dev.c b/net/openvswitch/vport-internal_dev.c | |
27 | index 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 | -- | |
40 | 2.1.4 | |
41 |