]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Cleanup MAC resources on module unload or port stop
authorYan Burman <yanb@mellanox.com>
Thu, 7 Mar 2013 03:46:56 +0000 (03:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Mar 2013 20:52:04 +0000 (15:52 -0500)
commit60bc6b594bdcf1f2ba2de227b9be5940f17e46c8
tree1efaf54862b2b89429d196912c3cc89e83e1b89a
parent6d4411a720945cda0fea8d075c7301e3eeb97df4
net/mlx4_en: Cleanup MAC resources on module unload or port stop

Make sure we cleanup all MAC related resources (entries in the port MAC
table and steering rules) when stopping a port or when the driver is unloaded.

The leak was introduced by commit 07cb4b0a "net/mlx4_en: Manage hash of MAC
addresses per port".

Signed-off-by: Yan Burman <yanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c