net/mlx4_core: Remove MCG in case it is attached to promiscuous QPs only
authorSaeed Mahameed <saeedm@mellanox.com>
Wed, 16 Jul 2014 08:57:51 +0000 (11:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2014 06:26:25 +0000 (23:26 -0700)
commit1645a54082ec8bf3fc0147c6d1ced273549ac1a2
tree4d1a8c066ace55cd5d41e81ac1ae64883762ab97
parent816e59846bb683e8d5c91e35df5f8fabac20494f
net/mlx4_core: Remove MCG in case it is attached to promiscuous QPs only

In B0 steering mode if promiscuous QP asks to be detached from MCG entry,
and it is the only one in this entry then the entry will never be deleted.
This is a wrong behavior since we don't want to keep those entries after
the promiscuous QP becomes non-promiscuous. Therefore remove steering
entry containing only promiscuous QP.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/mcg.c