xfrm: bring back device check in validate_xmit_xfrm
authorSabrina Dubroca <sd@queasysnail.net>
Mon, 4 Aug 2025 09:26:26 +0000 (11:26 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 7 Aug 2025 06:07:01 +0000 (08:07 +0200)
commit65f079a6c446a939eefe71e6d5957d5d6365fcf9
tree90aa92b7e89cbf8e9dd906125a305c7a72af69c7
parent234d1eff5d4987024be9d40ac07b918a5ae8db1a
xfrm: bring back device check in validate_xmit_xfrm

This is partial revert of commit d53dda291bbd993a29b84d358d282076e3d01506.

This change causes traffic using GSO with SW crypto running through a
NIC capable of HW offload to no longer get segmented during
validate_xmit_xfrm, and is unrelated to the bonding use case mentioned
in the commit.

Fixes: d53dda291bbd ("xfrm: Remove unneeded device check from validate_xmit_xfrm")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_device.c