diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-08-10 12:54:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-11 14:31:59 -0700 |
commit | 9537e7cbf20787416b25833f2f9886166d8148f2 (patch) | |
tree | f381bef1422120f5db8e652ed306b082a0649f17 /drivers/net | |
parent | 0dd532eb27490e7f72ab32f6571d919ff6c84744 (diff) | |
download | lwn-9537e7cbf20787416b25833f2f9886166d8148f2.tar.gz lwn-9537e7cbf20787416b25833f2f9886166d8148f2.zip |
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: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c index 069ae426aa24..e519795dff7c 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c @@ -1138,7 +1138,7 @@ static void hns3_del_tunnel_port(struct net_device *netdev, u16 port, udp_tnl->dst_port = 0; /* TBD send command to hardware to del port */ 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 |