From: Steffen Klassert Date: Sat, 13 Jul 2024 09:14:04 +0000 (+0200) Subject: Merge branch 'Support IPsec crypto offload for IPv6 ESP and IPv4 UDP-encapsulated... X-Git-Tag: v6.11-rc1~163^2~21^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d5b60c6517d227b044674718a993caae19080f7b;p=thirdparty%2Fkernel%2Flinux.git Merge branch 'Support IPsec crypto offload for IPv6 ESP and IPv4 UDP-encapsulated ESP data paths' Mike Yu says: ==================== Currently, IPsec crypto offload is enabled for GRO code path. However, there are other code paths where the XFRM stack is involved; for example, IPv6 ESP packets handled by xfrm6_esp_rcv() in ESP layer, and IPv4 UDP-encapsulated ESP packets handled by udp_rcv() in UDP layer. This patchset extends the crypto offload support to cover these two cases. This is useful for devices with traffic accounting (e.g., Android), where GRO can lead to inaccurate accounting on the underlying network. For example, VPN traffic might not be counted on the wifi network interface wlan0 if the packets are handled in GRO code path before entering the network stack for accounting. Below is the RX data path scenario the crypto offload can be applied to. +-----------+ +-------+ | HW Driver |-->| wlan0 |--------+ +-----------+ +-------+ | v +---------------+ +------+ +------>| Network Stack |-->| Apps | | +---------------+ +------+ | | | v +--------+ +------------+ | ipsec1 |<--| XFRM Stack | +--------+ +------------+ ==================== Signed-off-by: Steffen Klassert --- d5b60c6517d227b044674718a993caae19080f7b