Series short description
Get series with b4
b4 am 20120319064719.10959.93361.stgit@jf-dev1-dcblabVersions newest first
- v0 Latest5 patches 11 repliesIn review
Patches in v0 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | net: add generic PF_BRIDGE:RTM_ FDB hooksinclude/ include/ include/ +5 more | +217 | 0 replies | |
| 2/5 | net: addr_list: add exclusive dev_uc_addinclude/ net/ | +20 | 1 reply | |
| 3/5 | net: add fdb generic dump routinenet/ | +56 | 2 replies | |
| 4/5 | ixgbe: enable FDB netdevice opsdrivers/ | +59 | 1 reply | |
| 5/5 | ixgbe: allow RAR table to be updated in promisc modedrivers/ | +11 | 1 reply |
Reviews trailers per patch
2 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Jeff Kirsher |
|---|---|
| 1/5 | |
| 2/5 | |
| 3/5 | |
| 4/5 | A-b |
| 5/5 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [net-next PATCH v0 0/5] Series short description
This series is a follow up to this thread:
http://www.spinics.net/lists/netdev/msg191360.html
This adds two NTF_XXX bits to signal if the PF_BRIDGE netlink command should be parsed by the embedded bridge or the SW bridge. The insight here is the SW bridge is always the master device (NTF_MASTER) and the embedded bridge is the lower device (NTF_LOWERDEV). Without either flag set the command is parsed by the SW bridge to support existing tooling.
To make this work correctly I added three new ndo ops
ndo_fdb_add
ndo_fdb_del
ndo_fdb_dump
to add, delete, and dump FDB entries. These operations can be used by drivers to program embedded nics or by software bridges. We have at least three SW bridge now net/bridge, openvswitch, and macvlan. And three variants of embedded bridges SR-IOV devices, multi-function devices and Distributed Switch Architecture (DSA).
I think at least in this case adding netdevice ops is the cleanest way to implement this. I thought about notifier hooks and other methods but this seems to be the simplest.
I've tested these three scenarios, embedded bridge only, sw bridge only, and embedded bridge and SW bridge. These are working on the Intel 82599 devices with this patch series. I am also working on a patch for the macvlan drivers. I'll submit that as an RFC shortly so far I only have the passthru mode wired up.
Thanks to Stephen, Ben, and Jamal for bearing with me and the feedback on the last round of patches.
As always any comments/feedback appreciated!
---
John Fastabend (5):
ixgbe: allow RAR table to be updated in promisc mode
ixgbe: enable FDB netdevice ops
net: add fdb generic dump routine
net: addr_list: add exclusive dev_uc_add
net: add generic PF_BRIDGE:RTM_XXX FDB hooks
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 80 +++++++++- include/linux/neighbour.h | 3 include/linux/netdevice.h | 27 +++ include/linux/rtnetlink.h | 4 + net/bridge/br_device.c | 3 net/bridge/br_fdb.c | 128 ++++------------ net/bridge/br_netlink.c | 12 -- net/bridge/br_private.h | 15 ++ net/core/dev_addr_lists.c | 19 ++ net/core/rtnetlink.c | 194 +++++++++++++++++++++++++ 10 files changed, 363 insertions(+), 122 deletions(-)
Signature · 1 line
Signature