]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commitcc5387f7346a9f35aaf7f35133666fa8acbcbde3
tree1c22c0c9d2eefda65a11bcc2a0acaa72dc8360c8
parentc07cb4b0ab78f279ea94c3b4661cad86eb02a5d9
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