]> Pileus Git - ~andy/linux/commit
net: generic fdb support for drivers without ndo_fdb_<op>
authorVlad Yasevich <vyasevic@redhat.com>
Wed, 6 Mar 2013 15:39:42 +0000 (15:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Mar 2013 20:29:45 +0000 (15:29 -0500)
commit090096bf3db1c281ddd034573260045888a68fea
treeabadf4a4ebdc4177ac59c32818fc73a9ba2a492b
parent6906f4ed6f85b2d72fd944e15da6a905fdde8b40
net: generic fdb support for drivers without ndo_fdb_<op>

If the driver does not support the ndo_op use the generic
handler for it. This should work in the majority of cases.
Eventually the fdb_dflt_add call gets translated into a
__dev_set_rx_mode() call which should handle hardware
support for filtering via the IFF_UNICAST_FLT flag.

Namely IFF_UNICAST_FLT indicates if the hardware can do
unicast address filtering. If no support is available
the device is put into promisc mode.

Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rtnetlink.h
net/core/rtnetlink.c