Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vxlan: remove redundant conversion of vni in vxlan_nl2conf

The IFLA_VXLAN_ID data has been converted to local variable vni in
vxlan_nl2conf(), there is no need to do it again when set conf->vni.

Signed-off-by: Wang Liang <wangliang74@huawei.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Link: https://patch.msgid.link/20250722093049.1527505-1-wangliang74@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Wang Liang and committed by
Jakub Kicinski
918c675b 9a5bbab2

+1 -1
+1 -1
drivers/net/vxlan/vxlan_core.c
··· 4041 4041 NL_SET_ERR_MSG_ATTR(extack, tb[IFLA_VXLAN_ID], "Cannot change VNI"); 4042 4042 return -EOPNOTSUPP; 4043 4043 } 4044 - conf->vni = cpu_to_be32(nla_get_u32(data[IFLA_VXLAN_ID])); 4044 + conf->vni = vni; 4045 4045 } 4046 4046 4047 4047 if (data[IFLA_VXLAN_GROUP]) {