bnx2x: Fix vxlan removal
Commmit ac7eccd4d4
"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: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5d4c9bfbab
commit
425d3d8370
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user