diff options
author | Tariq Toukan <tariqt@nvidia.com> | 2021-01-17 16:59:49 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-18 20:48:40 -0800 |
commit | 4e5a73329051e5b24fb1d715a5417ef3f95b08a6 (patch) | |
tree | d215ce09f3dbc4acee980c505d697cb709af9a8f /net/tls/tls_device_fallback.c | |
parent | 153cbd137f0ad9ee334fa805155b983e25a432e7 (diff) | |
download | linux-stable-4e5a73329051e5b24fb1d715a5417ef3f95b08a6.tar.gz linux-stable-4e5a73329051e5b24fb1d715a5417ef3f95b08a6.tar.bz2 linux-stable-4e5a73329051e5b24fb1d715a5417ef3f95b08a6.zip |
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>
Diffstat (limited to 'net/tls/tls_device_fallback.c')
-rw-r--r-- | net/tls/tls_device_fallback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tls/tls_device_fallback.c b/net/tls/tls_device_fallback.c index d946817ed065..cacf040872c7 100644 --- a/net/tls/tls_device_fallback.c +++ b/net/tls/tls_device_fallback.c @@ -424,7 +424,7 @@ struct sk_buff *tls_validate_xmit_skb(struct sock *sk, struct net_device *dev, struct sk_buff *skb) { - if (dev == tls_get_ctx(sk)->netdev) + if (dev == tls_get_ctx(sk)->netdev || netif_is_bond_master(dev)) return skb; return tls_sw_fallback(sk, skb); |