]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Looking for promiscuous entries on the correct port
authorAviad Yehezkel <aviadye@mellanox.com>
Wed, 5 Sep 2012 22:50:50 +0000 (22:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Sep 2012 16:55:59 +0000 (12:55 -0400)
commite24d58c185415efe2e47d48c2d8a03d94ba9f95e
tree6507278dfe5d7285fce23dbbcefd9e242c9df638
parentf4f33c53c74bbbc0a11204748675aab7c49715ff
net/mlx4_core: Looking for promiscuous entries on the correct port

The search for promisc entries was always done on the first port,
While the addition is done on the correct port.
This lead to resource leackage of promisc entries on the second
port and brought to a state where we could no longer enter to
promiscuous mode after enough iterations of "ifconfig promisc"
on the second port.
Fix that by using the correct port when searching.

Reported-by: Marcelo Ricardo Leitner <mleitner@redhat.com>
Signed-off-by: Aviad Yehezkel <aviadye@mellanox.com>
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/mcg.c