Skip to content

RFC introduce bpf fdb lookup helper for xdp

Lorenzo Bianconi bpf bridge netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: bridge: add unstable br_fdb_find_port_from_ifindex helpernet/bridge/br.c net/bridge/br_fdb.c net/bridge/br_private.h+91 -916 replies
2/2samples: bpf: add xdp fdb lookup programsamples/bpf/Makefile samples/bpf/xdp_fdb.bpf.c samples/bpf/xdp_fdb_user.c+228 -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 bpf-next 0/2] introduce bpf fdb lookup helper for xdp

Similar to bpf_xdp_ct_lookup routine, introduce br_fdb_find_port_from_ifindex unstable helper in order to accelerate linux bridge with XDP. br_fdb_find_port_from_ifindex will perform a lookup in the associated bridge fdb table and it will return the output ifindex if the destination address is associated to a bridge port or -ENODEV for BOM traffic or if lookup fails.

Lorenzo Bianconi (2):
net: bridge: add unstable br_fdb_find_port_from_ifindex helper
samples: bpf: add xdp fdb lookup program

 net/bridge/br.c            |  21 +++++
 net/bridge/br_fdb.c        |  67 +++++++++++++---
 net/bridge/br_private.h    |  12 +++
 samples/bpf/Makefile       |   9 ++-
 samples/bpf/xdp_fdb.bpf.c  |  68 +++++++++++++++++
 samples/bpf/xdp_fdb_user.c | 152 +++++++++++++++++++++++++++++++++++++
 6 files changed, 319 insertions(+), 10 deletions(-)
 create mode 100644 samples/bpf/xdp_fdb.bpf.c
 create mode 100644 samples/bpf/xdp_fdb_user.c
Signature · 1 line
2.34.1