HomeFreeBSD

ipsec: allow it to work with unmapped mbufs

Description

ipsec: allow it to work with unmapped mbufs

Only map mbuf when a policy is looked up and indicates that IPSEC needs
to transform the packet. If IPSEC is inline offloaded, it is up to the
interface driver to request remap if needed.

Fetch the IP header using m_copydata() instead of using mtod() to select
policy/SA.

Reviewed by: markj
Sponsored by: NVidia networking
Differential revision: https://reviews.freebsd.org/D48265

Details

Provenance
kibAuthored on Dec 29 2024, 7:12 AM
Reviewer
markj
Differential Revision
D48265: ipsec: improve integration with unmapped mbufs (on Tx)
Parents
rGb0e020764aae: ipsec + ktls: cannot coexists
Branches
Unknown
Tags
Unknown