]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vxlan: Accept user specified MTU value when create new vxlan link
authorChen Haiquan <oc@yunify.com>
Fri, 27 May 2016 02:49:11 +0000 (10:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jun 2016 17:22:00 +0000 (10:22 -0700)
commit2e42134e1894ab69ab0343e2c561bd25aee47d42
tree962c6ebe4fb169ae6a3751db443fd2b685935bf8
parent0a626fb88972dfe5ebbf80412faae8fe723fb6c4
vxlan: Accept user specified MTU value when create new vxlan link

[ Upstream commit ce577668a426c6a9e2470a09dcd07fbd6e45272a ]

When create a new vxlan link, example:
  ip link add vtap mtu 1440 type vxlan vni 1 dev eth0

The argument "mtu" has no effect, because it is not set to conf->mtu. The
default value is used in vxlan_dev_configure function.

This problem was introduced by commit 0dfbdf4102b9 (vxlan: Factor out device
configuration).

Fixes: 0dfbdf4102b9 (vxlan: Factor out device configuration)
Signed-off-by: Chen Haiquan <oc@yunify.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/vxlan.c