Merge branch 'mlx4'
commit2de27f307feda26ef364f2407b70e3ca02a3ce56
authorDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2013 04:28:32 +0000 (7 23:28 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2013 04:28:32 +0000 (7 23:28 -0500)
tree8919a1e52889851bf7f8fd27a864e1020bfd4ed6
parentc6edfe103b9aacadcd4bb9e8e25cafaefa70a80e
parent0ccddcd1c2d93ff58b42115f19a0976394208d06
Merge branch 'mlx4'

Amir Vadai says:

====================
This series from Yan Burman adds support for unicast MAC address filtering and
ndo FDB operations.  It also includes some optimizations to loopback related
decisions and checks in the TX/RX fast path and one cleanup, all in separate
patches.

Today, when adding macvlan devices, the NIC goes into promiscuous mode, since
unicast MAC filtering is not supported. With these changes, macvlan devices can
be added without the penalty of 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).

Also, now it is possible to have bridge under multi-function configuration that include
PF and VFs.  In order to use bridge over PF/VFs, VM MAC fdb entries must be added e.g.
using 'bridge fdb add' command.

Changes from v1 - based on more comments from Eric Dumazet:
* added failure handling when adding unicast address filter

Changes from v0 - based on comments from Eric Dumazet:
* Removed unneeded synchronize_rcu()
* Use kfree_rcu() instead of synchronize_rcu() + kfree()
====================

Signed-off-by: David S. Miller <davem@davemloft.net>