]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfrm: Support crypto offload for inbound IPv4 UDP-encapsulated ESP packet
authorMike Yu <yumike@google.com>
Fri, 12 Jul 2024 02:51:24 +0000 (10:51 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 12 Jul 2024 06:43:29 +0000 (08:43 +0200)
commit4ecbac84b5b8c4ad033b473782582568810baf61
tree9ce1c63d971bf027a2c580fbcbb0b57c448fa7b3
parenta10fb4a84a693891b2e205684456d0825363fc24
xfrm: Support crypto offload for inbound IPv4 UDP-encapsulated ESP packet

If xfrm_input() is called with UDP_ENCAP_ESPINUDP, the packet is
already processed in UDP layer that removes the UDP header.
Therefore, there should be no much difference to treat it as an
ESP packet in the XFRM stack.

Test: Enabled dir=in IPsec crypto offload, and verified IPv4
      UDP-encapsulated ESP packets on both wifi/cellular network
Signed-off-by: Mike Yu <yumike@google.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_input.c