]> 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)
commitb978b099cae1d683aa223ff18725f011336065b7
tree1c22c0c9d2eefda65a11bcc2a0acaa72dc8360c8
parentafdaf527ae31c983a69323eded8f46f37ff27271
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