mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 05:04:09 +08:00
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: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Boris Pismenny <borisp@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
dc5809f9e2
commit
153cbd137f
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user