From: Hao Chen Date: Sat, 27 Nov 2021 09:34:05 +0000 (+0800) Subject: net: hns3: use macro IANA_VXLAN_GPE_UDP_PORT to replace number 4790 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e54b708c5441e3aee20b9352334ff610649ac227;p=linux.git net: hns3: use macro IANA_VXLAN_GPE_UDP_PORT to replace number 4790 This patch uses macro IANA_VXLAN_GPE_UDP_PORT to replace number 4790 for cleanup. Signed-off-by: Hao Chen Signed-off-by: Guangbin Huang Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 496ddf397bd43..3eb2985b9c8d4 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -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;