diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-09-26 03:56:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-28 22:50:12 +0300 |
commit | dda751731ec9f273eb650e2cb42ecf92a7ae4bb0 (patch) | |
tree | 7253c41967f881acac767652a525c4e6cfcb24c2 /drivers/net/netdevsim/udp_tunnels.c | |
parent | b20e6c17c4685dee273f9b5c51cdccfd40ed228f (diff) | |
download | linux-dda751731ec9f273eb650e2cb42ecf92a7ae4bb0.tar.xz |
netdevsim: support the static IANA VXLAN port flag
Allow setting UDP_TUNNEL_NIC_INFO_STATIC_IANA_VXLAN.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netdevsim/udp_tunnels.c')
-rw-r--r-- | drivers/net/netdevsim/udp_tunnels.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/netdevsim/udp_tunnels.c b/drivers/net/netdevsim/udp_tunnels.c index 6b98e6d1188f..6ab023acefd6 100644 --- a/drivers/net/netdevsim/udp_tunnels.c +++ b/drivers/net/netdevsim/udp_tunnels.c @@ -186,6 +186,8 @@ int nsim_udp_tunnels_info_create(struct nsim_dev *nsim_dev, info->flags |= UDP_TUNNEL_NIC_INFO_IPV4_ONLY; if (nsim_dev->udp_ports.shared) info->shared = &nsim_dev->udp_ports.utn_shared; + if (nsim_dev->udp_ports.static_iana_vxlan) + info->flags |= UDP_TUNNEL_NIC_INFO_STATIC_IANA_VXLAN; dev->udp_tunnel_nic_info = info; return 0; @@ -207,6 +209,8 @@ void nsim_udp_tunnels_debugfs_create(struct nsim_dev *nsim_dev) &nsim_dev->udp_ports.ipv4_only); debugfs_create_bool("udp_ports_shared", 0600, nsim_dev->ddir, &nsim_dev->udp_ports.shared); + debugfs_create_bool("udp_ports_static_iana_vxlan", 0600, nsim_dev->ddir, + &nsim_dev->udp_ports.static_iana_vxlan); debugfs_create_u32("udp_ports_sleep", 0600, nsim_dev->ddir, &nsim_dev->udp_ports.sleep); } |