Quellcode durchsuchen

bnx2x: Fix vxlan removal

Commmit ac7eccd4d48fc "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>
Yuval Mintz vor 9 Jahren
Ursprung
Commit
425d3d8370
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c

+ 2 - 2
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c

@@ -10139,8 +10139,8 @@ static void __bnx2x_del_vxlan_port(struct bnx2x *bp, u16 port)
 		DP(BNX2X_MSG_SP, "Invalid vxlan port\n");
 		DP(BNX2X_MSG_SP, "Invalid vxlan port\n");
 		return;
 		return;
 	}
 	}
-	bp->vxlan_dst_port--;
-	if (bp->vxlan_dst_port)
+	bp->vxlan_dst_port_count--;
+	if (bp->vxlan_dst_port_count)
 		return;
 		return;
 
 
 	if (netif_running(bp->dev)) {
 	if (netif_running(bp->dev)) {