|
@@ -3086,6 +3086,9 @@ static int vxlan_newlink(struct net *src_net, struct net_device *dev,
|
|
if (data[IFLA_VXLAN_REMCSUM_NOPARTIAL])
|
|
if (data[IFLA_VXLAN_REMCSUM_NOPARTIAL])
|
|
conf.flags |= VXLAN_F_REMCSUM_NOPARTIAL;
|
|
conf.flags |= VXLAN_F_REMCSUM_NOPARTIAL;
|
|
|
|
|
|
|
|
+ if (tb[IFLA_MTU])
|
|
|
|
+ conf.mtu = nla_get_u32(tb[IFLA_MTU]);
|
|
|
|
+
|
|
err = vxlan_dev_configure(src_net, dev, &conf);
|
|
err = vxlan_dev_configure(src_net, dev, &conf);
|
|
switch (err) {
|
|
switch (err) {
|
|
case -ENODEV:
|
|
case -ENODEV:
|