From: Boris Pismenny <bor...@mellanox.com> Date: Sun, 22 Apr 2018 18:19:50 +0300
> @@ -97,13 +102,57 @@ static void tls_device_queue_ctx_destruction(struct > tls_context *ctx) > spin_unlock_irqrestore(&tls_device_lock, flags); > } > > +#if IS_ENABLED(CONFIG_IPV6) > +static struct net_device *ipv6_get_netdev(struct sock *sk) > +{ > + struct net_device *dev = NULL; > + struct inet_sock *inet = inet_sk(sk); > + struct ipv6_pinfo *np = inet6_sk(sk); > + struct flowi6 _fl6, *fl6 = &_fl6; > + struct dst_entry *dst; Ugh, please use sk->sk_dst_cache->dev and avoid all of the unnecessary work. Thank you.