]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfrm: add SA information to the offloaded packet
authorwangfe <wangfe@google.com>
Thu, 22 Aug 2024 20:02:52 +0000 (13:02 -0700)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 27 Aug 2024 09:28:58 +0000 (11:28 +0200)
commite7cd191f83fd899c233dfbe7dc6d96ef703dcbbd
treeb07284964902eb6ef491c970989ff52c59a17bf4
parent5ce90c842ef57bceb515503347306174e231575f
xfrm: add SA information to the offloaded packet

In packet offload mode, append Security Association (SA) information
to each packet, replicating the crypto offload implementation.
The XFRM_XMIT flag is set to enable packet to be returned immediately
from the validate_xmit_xfrm function, thus aligning with the existing
code path for packet offload mode.

This SA info helps HW offload match packets to their correct security
policies. The XFRM interface ID is included, which is crucial in setups
with multiple XFRM interfaces where source/destination addresses alone
can't pinpoint the right policy.

Signed-off-by: wangfe <wangfe@google.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_output.c