Skip to content

Commit 9537e7c

Browse files
Dan Carpenterdavem330
authored andcommitted
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: 76ad4f0 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0dd532e commit 9537e7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ static void hns3_del_tunnel_port(struct net_device *netdev, u16 port,
11381138
udp_tnl->dst_port = 0;
11391139
/* TBD send command to hardware to del port */
11401140
if (h->ae_algo->ops->del_tunnel_udp)
1141-
h->ae_algo->ops->add_tunnel_udp(h, port);
1141+
h->ae_algo->ops->del_tunnel_udp(h, port);
11421142
}
11431143

11441144
/* hns3_nic_udp_tunnel_add - Get notifiacetion about UDP tunnel ports

0 commit comments

Comments
 (0)