]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfrm: Remove documentation WARN_ON to limit return values for offloaded SA
authorPatrisious Haddad <phaddad@nvidia.com>
Sun, 11 Aug 2024 08:56:42 +0000 (11:56 +0300)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 16 Aug 2024 06:17:05 +0000 (08:17 +0200)
commit9b49f55838b1f42b2624216ce494f0536669e8f0
tree59760e4b5b90ec426aaaba55d902d368d674d95e
parent8e0c0ec9b7dc2aec84f141c26c501e24906ff765
xfrm: Remove documentation WARN_ON to limit return values for offloaded SA

The original idea to put WARN_ON() on return value from driver code was
to make sure that packet offload doesn't have silent fallback to
SW implementation, like crypto offload has.

In reality, this is not needed as all *swan implementations followed
this request and used explicit configuration style to make sure that
"users will get what they ask".
So instead of forcing drivers to make sure that even their internal flows
don't return -EOPNOTSUPP, let's remove this WARN_ON.

Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_device.c