]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Add unicast MAC filtering
authorYan Burman <yanb@mellanox.com>
Thu, 7 Feb 2013 02:25:26 +0000 (02:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2013 04:26:13 +0000 (23:26 -0500)
commit956023b690e019d47f28885c8a3573e202fedad0
tree1c22c0c9d2eefda65a11bcc2a0acaa72dc8360c8
parente882c3bda430771da59ea002c061b11cfeda9399
net/mlx4_en: Add unicast MAC filtering

Implement and advertise unicast MAC filtering, such that setting macvlan
instance over mlx4_en interfaces will not require the networking core
to put mlx4_en devices in promiscuous mode.

If for some reason adding a unicast address filter fails e.g as of missing space in
the HW mac table, the device forces itself into promiscuous mode (and out of this
forced state when enough space is available).

Signed-off-by: Yan Burman <yanb@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h