]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
xfrm: don't check offload_handle for nonzero
authorShannon Nelson <shannon.nelson@oracle.com>
Tue, 26 Jun 2018 21:19:10 +0000 (14:19 -0700)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 19 Jul 2018 08:18:04 +0000 (10:18 +0200)
commitfcb662deeb83bbc6df58b472a3bfe76981a8cc36
tree47afec014a967cf45354ba303d35ae6227864611
parent03dc7a35fcc83a199121a5156c4a7a976b836682
xfrm: don't check offload_handle for nonzero

The offload_handle should be an opaque data cookie for the driver
to use, much like the data cookie for a timer or alarm callback.
Thus, the XFRM stack should not be checking for non-zero, because
the driver might use that to store an array reference, which could
be zero, or some other zero but meaningful value.

We can remove the checks for non-zero because there are plenty
other attributes also being checked to see if there is an offload
in place for the SA in question.

Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv4/esp4_offload.c
net/ipv6/esp6_offload.c
net/xfrm/xfrm_device.c