Skip to content

Commit 425df17

Browse files
Jarno Rajahalmedavem330
authored andcommitted
openvswitch: Set internal device max mtu to ETH_MAX_MTU.
Commit 9157208 ("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: 9157208 ("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>
1 parent 8ae7003 commit 425df17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/openvswitch/vport-internal_dev.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ static void do_setup(struct net_device *netdev)
149149
{
150150
ether_setup(netdev);
151151

152+
netdev->max_mtu = ETH_MAX_MTU;
153+
152154
netdev->netdev_ops = &internal_dev_netdev_ops;
153155

154156
netdev->priv_flags &= ~IFF_TX_SKB_SHARING;

0 commit comments

Comments
 (0)