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

Merge branch 'vxlan-port'

Guangbin Huang says:

====================
net: vxlan: add macro definition for number of IANA VXLAN-GPE port

This series add macro definition for number of IANA VXLAN-GPE port for
cleanup.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>

+3 -2
+1 -1
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
··· 1302 1302 if (!(!skb->encapsulation && 1303 1303 (l4.udp->dest == htons(IANA_VXLAN_UDP_PORT) || 1304 1304 l4.udp->dest == htons(GENEVE_UDP_PORT) || 1305 - l4.udp->dest == htons(4790)))) 1305 + l4.udp->dest == htons(IANA_VXLAN_GPE_UDP_PORT)))) 1306 1306 return false; 1307 1307 1308 1308 return true;
+1 -1
drivers/net/vxlan.c
··· 3747 3747 3748 3748 if (!conf->dst_port) { 3749 3749 if (conf->flags & VXLAN_F_GPE) 3750 - conf->dst_port = htons(4790); /* IANA VXLAN-GPE port */ 3750 + conf->dst_port = htons(IANA_VXLAN_GPE_UDP_PORT); 3751 3751 else 3752 3752 conf->dst_port = htons(vxlan_port); 3753 3753 }
+1
include/net/vxlan.h
··· 10 10 #include <net/nexthop.h> 11 11 12 12 #define IANA_VXLAN_UDP_PORT 4789 13 + #define IANA_VXLAN_GPE_UDP_PORT 4790 13 14 14 15 /* VXLAN protocol (RFC 7348) header: 15 16 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+