Skip to content

RFC net: bridge: propagate FDB table into hardware

John Fastabend netdev 1 version In review

Get series with b4
b4 am 20120229070418.10937.8692.stgit@jf-dev1-dcblab

Versions newest first

  1. v1 RFC Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: refactor br_fdb_xxx rtnetlink routinesnet/bridge/br_fdb.c net/bridge/br_netlink.c net/bridge/br_private.h+119 -730 replies
2/3net: expose ebridge FDB with priv flag IFF_OFFLOADED_FDBinclude/linux/if.h include/linux/neighbour.h net/bridge/br_netlink.c+146 -23 replies
3/3net: drivers: set IFF_OFFLOADED_FDB priv flag on ixgbe and igbdrivers/net/ethernet/intel/igb/igb_main.c drivers/net/ethernet/intel/ixgbe/ixgbe_main.c+5 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] net: bridge: propagate FDB table into hardware

This series is a follow up to the RFC thread with the same title. It is intended to manage the forwarding database in embedded switches One specific example being SR-IOV NICs.

This adds a private netdev flag (IFF_OFFLOADED_FDB) to enable management of the FDB and a ndm_flags bit to set in the PF_BRIDGE netlink commands to push the command at the embedded device.

As it is currently implemented this requires loading the bridge module but has the advantage that the HW and SW FDB commands look the same. It was easy for example to modify existing user space tools to support this.

At this point I've only lightly tested it and need to audit the code in the light of day. But any comments would appreciated it. I figured pushing code out was easier then continuing a thread about hypothetical solutions.

Thanks!

---

John Fastabend (3):
net: drivers: set IFF_OFFLOADED_FDB priv flag on ixgbe and igb
net: expose ebridge FDB with priv flag IFF_OFFLOADED_FDB
net: refactor br_fdb_xxx rtnetlink routines

 drivers/net/ethernet/intel/igb/igb_main.c     |    2 
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c |    4 
 include/linux/if.h                            |    2 
 include/linux/neighbour.h                     |    2 
 net/bridge/br_fdb.c                           |   88 +++------
 net/bridge/br_netlink.c                       |  237 ++++++++++++++++++++++++-
 net/bridge/br_private.h                       |    9 +
 7 files changed, 269 insertions(+), 75 deletions(-)
Signature · 1 line
Signature