net/tls: add helper for testing if socket is RX offloaded
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 17 Dec 2019 22:12:01 +0000 (14:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Dec 2019 01:46:51 +0000 (17:46 -0800)
commit8d5a49e9e31ba1ddd34a54b2351d068a90c78707
tree325da1911a65e76e00de5bd8248ccb82fbf35169
parent572c7245182a200e3ac69bb86a0e60cc34c34dc9
net/tls: add helper for testing if socket is RX offloaded

There is currently no way for driver to reliably check that
the socket it has looked up is in fact RX offloaded. Add
a helper. This allows drivers to catch misbehaving firmware.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tls.h
net/tls/tls_device.c