]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Set internal device max mtu to ETH_MAX_MTU.
authorJarno Rajahalme <jarno@ovn.org>
Wed, 15 Feb 2017 05:16:28 +0000 (21:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Feb 2017 17:40:27 +0000 (12:40 -0500)
commitbf3f8b51e6f8c1832728d1cdf177547418e44af4
tree539d483a032bac2204724819cde19de143696d97
parentc16e8e2134ba11398f40f438fa7921f508a19574
openvswitch: Set internal device max mtu to ETH_MAX_MTU.

Commit 1376e65bcf3a ("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: 1376e65bcf3a ("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>
net/openvswitch/vport-internal_dev.c