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)
commit83a5a6cef40616d19a388f560447e99c2ca04d1e
tree1efaf54862b2b89429d196912c3cc89e83e1b89a
parentbfa8ab47415a87c6c93a9e54e16f2f8cc6de79af
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