Skip to content

RFC xfrm: policy: replace session decode with flow dissector

Florian Westphal netdev oe-kbuild-all 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3xfrm: move mark and oif flowi decode into common codenet/xfrm/xfrm_policy.c+12 -120 replies
2/3flow_dissector: add ipv6 mobility header supportinclude/net/flow_dissector.h net/core/flow_dissector.c+32 -00 replies
3/3xfrm: policy: replace session decode with flow dissectornet/xfrm/xfrm_policy.c+108 -1580 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC ipsec-next 0/3] xfrm: policy: replace session decode with flow dissector

RFC, its only lightly tested, if at all.

This replaces the ipv4+ipv6 session decode functions in xfrm with a flow dissector description and then uses that to populate the flowi.

Main drawback is that if we don't want to break MOBIKE the flow dissector needs more bloat to get to the mh_type from the ipv6 mobility extension header.

Comments welcome, mainly sent for the sake of next weeks IPSec workshop.

Florian Westphal (3):
xfrm: move mark and oif flowi decode into common code
flow_dissector: add ipv6 mobility header support
xfrm: policy: replace session decode with flow dissector

 include/net/flow_dissector.h |   5 +
 net/core/flow_dissector.c    |  27 ++++
 net/xfrm/xfrm_policy.c       | 290 +++++++++++++++--------------------
 3 files changed, 152 insertions(+), 170 deletions(-)
Signature · 1 line
2.41.0