net/tls: Except bond interface from some TLS checks
authorTariq Toukan <tariqt@nvidia.com>
Sun, 17 Jan 2021 14:59:49 +0000 (16:59 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Jan 2021 04:48:40 +0000 (20:48 -0800)
commit4e5a73329051e5b24fb1d715a5417ef3f95b08a6
treed215ce09f3dbc4acee980c505d697cb709af9a8f
parent153cbd137f0ad9ee334fa805155b983e25a432e7
net/tls: Except bond interface from some TLS checks

In the tls_dev_event handler, ignore tlsdev_ops requirement for bond
interfaces, they do not exist as the interaction is done directly with
the lower device.

Also, make the validate function pass when it's called with the upper
bond interface.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Boris Pismenny <borisp@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tls/tls_device.c
net/tls/tls_device_fallback.c