netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH ipsec-next v13 0/4] xfrm: Introduce direction attribute for SA
@ 2024-04-26  8:04 Antony Antony
  2024-04-26  8:05 ` [PATCH ipsec-next v13 1/4] xfrm: Add Direction to the SA in or out Antony Antony
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Antony Antony @ 2024-04-26  8:04 UTC (permalink / raw)
  To: Steffen Klassert, Herbert Xu, netdev
  Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, devel,
	Leon Romanovsky, Eyal Birger, Nicolas Dichtel, Sabrina Dubroca

Hi,

Inspired by the upcoming IP-TFS patch set, and confusions experienced in
the past due to lack of direction attribute on SAs, add a new direction
"dir" attribute. It aims to streamline the SA configuration process and
enhance the clarity of existing SA attributes.

This patch set introduces the 'dir' attribute to SA, aka xfrm_state,
('in' for input or 'out' for output). Alsp add validations of existing
direction-specific SA attributes during configuration and in the data
path lookup.

This change would not affect any existing use case or way of configuring
SA. You will notice improvements when the new 'dir' attribute is set.

v13 has one fix, minor documenation updates, and function renaming.

Antony Antony (4):
  xfrm: Add Direction to the SA in or out
  xfrm: Add dir validation to "out" data path lookup
  xfrm: Add dir validation to "in" data path lookup
  xfrm: Restrict SA direction attribute to specific netlink message
    types

 Documentation/networking/xfrm_proc.rst |   6 +
 include/net/xfrm.h                     |   1 +
 include/uapi/linux/snmp.h              |   2 +
 include/uapi/linux/xfrm.h              |   6 +
 net/ipv6/xfrm6_input.c                 |   7 ++
 net/xfrm/xfrm_compat.c                 |   7 +-
 net/xfrm/xfrm_device.c                 |   6 +
 net/xfrm/xfrm_input.c                  |  11 ++
 net/xfrm/xfrm_policy.c                 |   6 +
 net/xfrm/xfrm_proc.c                   |   2 +
 net/xfrm/xfrm_replay.c                 |   3 +-
 net/xfrm/xfrm_state.c                  |   8 ++
 net/xfrm/xfrm_user.c                   | 149 ++++++++++++++++++++++++-
 13 files changed, 205 insertions(+), 9 deletions(-)

--
2.30.2


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-04-30  9:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-26  8:04 [PATCH ipsec-next v13 0/4] xfrm: Introduce direction attribute for SA Antony Antony
2024-04-26  8:05 ` [PATCH ipsec-next v13 1/4] xfrm: Add Direction to the SA in or out Antony Antony
2024-04-29 12:11   ` Sabrina Dubroca
2024-04-30  6:16     ` Steffen Klassert
2024-04-30  9:29       ` Antony Antony
2024-04-30  7:13     ` Antony Antony
2024-04-26  8:05 ` [PATCH ipsec-next v13 2/4] xfrm: Add dir validation to "out" data path lookup Antony Antony
2024-04-26 16:48   ` Nicolas Dichtel
2024-04-26  8:05 ` [PATCH ipsec-next v13 3/4] xfrm: Add dir validation to "in" " Antony Antony
2024-04-26 16:48   ` Nicolas Dichtel
2024-04-26  8:05 ` [PATCH ipsec-next v13 4/4] xfrm: Restrict SA direction attribute to specific netlink message types Antony Antony

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).