Skip to content

bpf: Add MTU check to fib lookup helper

David Ahern netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net/ipv4: Add helper to return path MTU based on fib resultinclude/net/ip_fib.h net/ipv4/route.c+33 -00 replies
2/3net/ipv6: Add helper to return path MTU based on fib resultinclude/net/ip6_fib.h include/net/ip6_route.h net/ipv6/route.c+57 -00 replies
3/3bpf: Add mtu checking to FIB forwarding helpernet/core/filter.c+10 -03 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH bpf-next 0/3] bpf: Add MTU check to fib lookup helper

Packets that exceed the egress MTU can not be forwarded in the fast path. Add IPv4 and IPv6 MTU helpers that take a FIB lookup result (versus the typical dst path) and add the calls to bpf_ipv{4,6}_fib_lookup.

David Ahern (3):
net/ipv4: Add helper to return path MTU based on fib result net/ipv6: Add helper to return path MTU based on fib result
bpf: Add mtu checking to FIB forwarding helper

 include/net/ip6_fib.h   |  6 ++++++
 include/net/ip6_route.h |  3 +++
 include/net/ip_fib.h    |  2 ++
 net/core/filter.c       | 10 ++++++++++
 net/ipv4/route.c        | 31 +++++++++++++++++++++++++++++++
 net/ipv6/route.c        | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 100 insertions(+)
Signature · 1 line
2.11.0