]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit56d576ae0746d809c0902343ce56ecdbe803f1e8
tree4d1a8c066ace55cd5d41e81ac1ae64883762ab97
parenta4b515545292203cbc7f2ea759e8a5f7847865a8
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