summaryrefslogtreecommitdiffstats
path: root/drivers/net/vxlan.c
diff options
context:
space:
mode:
authorHao Chen <chenhao288@hisilicon.com>2021-11-27 17:34:04 +0800
committerDavid S. Miller <davem@davemloft.net>2021-11-29 12:19:53 +0000
commited618bd80947fa8d9644baf8ac18cb2a02223a5e (patch)
tree08f385de315fafd4b64e69f3dfd7558895b68dd6 /drivers/net/vxlan.c
parentfd888e85fe6b661e78044dddfec0be5271afa626 (diff)
downloadlinux-ed618bd80947fa8d9644baf8ac18cb2a02223a5e.tar.bz2
net: vxlan: add macro definition for number of IANA VXLAN-GPE port
Add macro definition for number of IANA VXLAN-GPE port for generic use. Signed-off-by: Hao Chen <chenhao288@hisilicon.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxlan.c')
-rw-r--r--drivers/net/vxlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index fecff0a46612..359d16780dbb 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -3747,7 +3747,7 @@ static int vxlan_config_validate(struct net *src_net, struct vxlan_config *conf,
if (!conf->dst_port) {
if (conf->flags & VXLAN_F_GPE)
- conf->dst_port = htons(4790); /* IANA VXLAN-GPE port */
+ conf->dst_port = htons(IANA_VXLAN_GPE_UDP_PORT);
else
conf->dst_port = htons(vxlan_port);
}