• wangfe's avatar
    xfrm: add SA information to the offloaded packet · e7cd191f
    wangfe authored
    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: default avatarwangfe <wangfe@google.com>
    Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
    e7cd191f
xfrm_output.c 21.7 KB