]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 May 2016 18:46:00 +0000 (11:46 -0700)
commit17c102acc695c2533587d8429d6fcc1a4ec6102c
tree2d101630f20f730773a3dd3b9df70e721328030b
parent0f1cab3724e1415640ce5dfc8a1309b01a539914
vxlan: Accept user specified MTU value when create new vxlan link

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 b064e4aca836 (vxlan: Factor out device
configuration).

Fixes: b064e4aca836 (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>
drivers/net/vxlan.c