netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] net: bridge: propagate FDB table into hardware
@ 2012-02-29  7:17 John Fastabend
  2012-02-29  7:17 ` [RFC PATCH 1/3] net: refactor br_fdb_xxx rtnetlink routines John Fastabend
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: John Fastabend @ 2012-02-29  7:17 UTC (permalink / raw)
  To: jhs, shemminger, kernel
  Cc: hadi, bhutchings, roprabhu, mst, netdev, gregory.v.rose, davem

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-06  3:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-29  7:17 [RFC PATCH 0/3] net: bridge: propagate FDB table into hardware John Fastabend
2012-02-29  7:17 ` [RFC PATCH 1/3] net: refactor br_fdb_xxx rtnetlink routines John Fastabend
2012-02-29  7:17 ` [RFC PATCH 2/3] net: expose ebridge FDB with priv flag IFF_OFFLOADED_FDB John Fastabend
2012-03-02 19:56   ` Ben Hutchings
2012-03-02 20:00     ` Ben Hutchings
2012-03-06  3:34     ` John Fastabend
2012-02-29  7:17 ` [RFC PATCH 3/3] net: drivers: set IFF_OFFLOADED_FDB priv flag on ixgbe and igb John Fastabend

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).