Skip to content

RFC fib_rules: support sport, dport and proto match

Roopa Prabhu netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ipv4: fib_rules: support match on sport, dport and ip protoinclude/uapi/linux/fib_rules.h net/ipv4/fib_rules.c+47 -210 replies
2/4ipv6: fib6_rules: support for match on sport, dport and ip protonet/ipv6/fib6_rules.c+46 -30 replies
3/4ipv4: route: dissect flow in input path if fib rules need itinclude/net/ip_fib.h include/net/netns/ipv4.h net/ipv4/fib_rules.c +2 more+49 -180 replies
4/4ipv6: route: dissect flow in input path if fib rules need itinclude/net/ip6_route.h include/net/netns/ipv6.h net/ipv6/fib6_rules.c +2 more+49 -142 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH RFC net-next 0/4] fib_rules: support sport, dport and proto match

From: Roopa Prabhu <[email protected]>

This series extends fib rule match support to include sport, dport and ip proto match (to complete the 5-tuple match support). Common use-cases of Policy based routing in the data center require 5-tuple match. The last 2 patches in the series add a call to flow dissect in the fwd path if required by the installed fib rules (controlled by a flag).

Roopa Prabhu (4):
ipv4: fib_rules: support match on sport, dport and ip proto
ipv6: fib6_rules: support for match on sport, dport and ip proto
ipv4: route: dissect flow in input path if fib rules need it
ipv6: route: dissect flow in input path if fib rules need it

------
sending this as RFC for first review (as net-next is closed)

 include/net/ip6_route.h        |  3 ++-
 include/net/ip_fib.h           |  2 +-
 include/net/netns/ipv4.h       |  1 +
 include/net/netns/ipv6.h       |  1 +
 include/uapi/linux/fib_rules.h |  3 +++
 net/ipv4/fib_rules.c           | 55 ++++++++++++++++++++++++++++++++++++++--
 net/ipv4/fib_semantics.c       |  2 +-
 net/ipv4/route.c               | 46 ++++++++++++++++++++++++++--------
 net/ipv6/fib6_rules.c          | 57 +++++++++++++++++++++++++++++++++++++++---
 net/ipv6/icmp.c                |  2 +-
 net/ipv6/route.c               | 46 +++++++++++++++++++++++++++-------
 11 files changed, 189 insertions(+), 29 deletions(-)
Signature · 1 line
2.1.4