浏览代码

openvswitch: Set internal device max mtu to ETH_MAX_MTU.

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>
Jarno Rajahalme 8 年之前
父节点
当前提交
425df17ce3
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      net/openvswitch/vport-internal_dev.c

+ 2 - 0
net/openvswitch/vport-internal_dev.c

@@ -149,6 +149,8 @@ static void do_setup(struct net_device *netdev)
 {
 {
 	ether_setup(netdev);
 	ether_setup(netdev);
 
 
+	netdev->max_mtu = ETH_MAX_MTU;
+
 	netdev->netdev_ops = &internal_dev_netdev_ops;
 	netdev->netdev_ops = &internal_dev_netdev_ops;
 
 
 	netdev->priv_flags &= ~IFF_TX_SKB_SHARING;
 	netdev->priv_flags &= ~IFF_TX_SKB_SHARING;