Re: [PATCH V6 net-next 07/15] net/tls: Add generic NIC offload infrastructure

2018-04-23 Thread David Miller
From: Boris Pismenny Date: Sun, 22 Apr 2018 18:19:49 +0300 > +/* We assume that the socket is already connected */ > +static struct net_device *get_netdev_for_sock(struct sock *sk) > +{ > + struct inet_sock *inet = inet_sk(sk); > + struct net_device *netdev = NULL; > + > + netdev = de

[PATCH V6 net-next 07/15] net/tls: Add generic NIC offload infrastructure

2018-04-22 Thread Boris Pismenny
From: Ilya Lesokhin This patch adds a generic infrastructure to offload TLS crypto to a network device. It enables the kernel TLS socket to skip encryption and authentication operations on the transmit side of the data path. Leaving those computationally expensive operations to the NIC. The NIC