diff options
author | Hao Chen <chenhao288@hisilicon.com> | 2021-11-27 17:34:05 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-29 12:19:53 +0000 |
commit | e54b708c5441e3aee20b9352334ff610649ac227 (patch) | |
tree | 93ceefd9bb88e297fdc7c6f17d80a7fa7584b12a | |
parent | ed618bd80947fa8d9644baf8ac18cb2a02223a5e (diff) | |
download | linux-e54b708c5441e3aee20b9352334ff610649ac227.tar.gz |
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 <chenhao288@hisilicon.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 496ddf397bd4..3eb2985b9c8d 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; |