OSDN Git Service

net: hns3: use macro IANA_VXLAN_GPE_UDP_PORT to replace number 4790
authorHao Chen <chenhao288@hisilicon.com>
Sat, 27 Nov 2021 09:34:05 +0000 (17:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Nov 2021 12:19:53 +0000 (12:19 +0000)
This patch uses macro IANA_VXLAN_GPE_UDP_PORT to replace number 4790 for
cleanup.

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>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c

index 496ddf3..3eb2985 100644 (file)
@@ -1302,7 +1302,7 @@ static bool hns3_tunnel_csum_bug(struct sk_buff *skb)
        if (!(!skb->encapsulation &&
              (l4.udp->dest == htons(IANA_VXLAN_UDP_PORT) ||
              l4.udp->dest == htons(GENEVE_UDP_PORT) ||
-             l4.udp->dest == htons(4790))))
+             l4.udp->dest == htons(IANA_VXLAN_GPE_UDP_PORT))))
                return false;
 
        return true;