diff options
author | Yuval Mintz <Yuval.Mintz@qlogic.com> | 2015-11-19 11:56:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-20 10:58:31 -0500 |
commit | 425d3d83707d378d97d1f7d460ce3083a1948c20 (patch) | |
tree | 322035b48448407f742cd800cb179ccb74945b87 /drivers/net/ethernet/broadcom/bnx2x | |
parent | 5d4c9bfbabdb1d497f21afd81501e5c54b0c85d9 (diff) | |
download | op-kernel-dev-425d3d83707d378d97d1f7d460ce3083a1948c20.zip op-kernel-dev-425d3d83707d378d97d1f7d460ce3083a1948c20.tar.gz |
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>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c index c9b0367..2e611dc 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +++ b/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"); 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)) { |