Skip to content

RFC xfrm: Add support for SA direction and output cleanup

Antony Antony netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3uapi: Update kernel headers xfrm.hinclude/uapi/linux/xfrm.h+6 -00 replies
2/3xfrm: support xfrm SA direction attributeip/ipxfrm.c ip/xfrm_state.c+52 -43 replies
3/3xfrm: update ip xfrm state output for SA with direction attributeip/ipxfrm.c+90 -481 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH RFC iproute2-next 0/3] xfrm: Add support for SA direction and output cleanup

Kernel added SA direction in commit
179a6f5df8da ("Merge tag 'ipsec-next-2024-05-03' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next")

This commit adds iproute2 support for SA direction. Additionally, redundant fields in the "ip xfrm state" output are removed when SA direction is set. This series keeps the old behavior when the direction is not set.

---
Antony Antony (3):
uapi: Update kernel headers xfrm.h
xfrm: support xfrm SA direction attribute
xfrm: update ip xfrm state output for SA with direction attribute

 include/uapi/linux/xfrm.h |   6 ++
 ip/ipxfrm.c               | 126 +++++++++++++++++++++++++++-----------
 ip/xfrm_state.c           |  44 +++++++++++--
 3 files changed, 136 insertions(+), 40 deletions(-)

--
2.30.2