Commit 9537e7cb authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

hns3pf: fix hns3_del_tunnel_port()

This function has a copy and paste bug so it accidentally calls the add
function instead of the delete function.

Fixes: 76ad4f0e ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0dd532eb
...@@ -1138,7 +1138,7 @@ static void hns3_del_tunnel_port(struct net_device *netdev, u16 port, ...@@ -1138,7 +1138,7 @@ static void hns3_del_tunnel_port(struct net_device *netdev, u16 port,
udp_tnl->dst_port = 0; udp_tnl->dst_port = 0;
/* TBD send command to hardware to del port */ /* TBD send command to hardware to del port */
if (h->ae_algo->ops->del_tunnel_udp) if (h->ae_algo->ops->del_tunnel_udp)
h->ae_algo->ops->add_tunnel_udp(h, port); h->ae_algo->ops->del_tunnel_udp(h, port);
} }
/* hns3_nic_udp_tunnel_add - Get notifiacetion about UDP tunnel ports /* hns3_nic_udp_tunnel_add - Get notifiacetion about UDP tunnel ports
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment