diff mbox series

[RFC,net-next,2/6] net/tls: Device offload to use lowest netdevice in chain

Message ID 20201229114104.7120-3-tariqt@nvidia.com
State New
Headers show
Series [RFC,net-next,1/6] net: netdevice: Add operation ndo_sk_get_slave | expand

Commit Message

Tariq Toukan Dec. 29, 2020, 11:41 a.m. UTC
Do not call the tls_dev_ops of upper devices. Instead, ask them
for the proper slave and communicate with it directly.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
---
 net/tls/tls_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/net/tls/tls_device.c b/net/tls/tls_device.c
index f7fb7d2c1de1..75ceea0a41bf 100644
--- a/net/tls/tls_device.c
+++ b/net/tls/tls_device.c
@@ -113,7 +113,7 @@  static struct net_device *get_netdev_for_sock(struct sock *sk)
 	struct net_device *netdev = NULL;
 
 	if (likely(dst)) {
-		netdev = dst->dev;
+		netdev = netdev_sk_get_lowest_dev(dst->dev, sk);
 		dev_hold(netdev);
 	}