Merge remote branch 'xfrm: Introduce direction attribute for SA'
authorSteffen Klassert <steffen.klassert@secunet.com>
Thu, 2 May 2024 08:05:11 +0000 (10:05 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 2 May 2024 08:05:11 +0000 (10:05 +0200)
Antony Antony says:

====================
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.
====================

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>

Trivial merge