Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 425d3d83 authored by Yuval Mintz's avatar Yuval Mintz Committed by David S. Miller
Browse files

bnx2x: Fix vxlan removal



Commmit ac7eccd4 "bnx2x: track vxlan port count" contains a bug -
Instead of achieving the required goal, vxlan configuration would not
be removed since we're decrementing the port instead of the counter.

CC: Jiri Benc <jbenc@redhat.com>
Signed-off-by: default avatarYuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5d4c9bfb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -10139,8 +10139,8 @@ static void __bnx2x_del_vxlan_port(struct bnx2x *bp, u16 port)
		DP(BNX2X_MSG_SP, "Invalid vxlan port\n");
		return;
	}
	bp->vxlan_dst_port--;
	if (bp->vxlan_dst_port)
	bp->vxlan_dst_port_count--;
	if (bp->vxlan_dst_port_count)
		return;

	if (netif_running(bp->dev)) {