Commit 153cbd13 authored by Tariq Toukan's avatar Tariq Toukan Committed by Jakub Kicinski

net/tls: Device offload to use lowest netdevice in chain

Do not call the tls_dev_ops of upper devices. Instead, ask them
for the proper lowest device and communicate with it directly.
Signed-off-by: default avatarTariq Toukan <tariqt@nvidia.com>
Reviewed-by: default avatarBoris Pismenny <borisp@nvidia.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent dc5809f9
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment