From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shards.monkeyblade.net ([184.105.139.130]:33408 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751791AbeB0ToL (ORCPT ); Tue, 27 Feb 2018 14:44:11 -0500 Date: Tue, 27 Feb 2018 14:44:09 -0500 (EST) Message-Id: <20180227.144409.1854173660838110361.davem@davemloft.net> To: borisp@mellanox.com Cc: netdev@vger.kernel.org, ilyal@mellanox.com, tracywwnj@gmail.com, xiyou.wangcong@gmail.com, weiwan@google.com, linux@roeck-us.net, davejwatson@fb.com Subject: Re: [PATCH v4 net] tls: Use correct sk->sk_prot for IPV6 From: David Miller In-Reply-To: <1519733919-16909-2-git-send-email-borisp@mellanox.com> References: <1519733919-16909-1-git-send-email-borisp@mellanox.com> <1519733919-16909-2-git-send-email-borisp@mellanox.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: From: Boris Pismenny Date: Tue, 27 Feb 2018 14:18:39 +0200 > The tls ulp overrides sk->prot with a new tls specific proto structs. > The tls specific structs were previously based on the ipv4 specific > tcp_prot sturct. > As a result, attaching the tls ulp to an ipv6 tcp socket replaced > some ipv6 callback with the ipv4 equivalents. > > This patch adds ipv6 tls proto structs and uses them when > attached to ipv6 sockets. > > Fixes: 3c4d7559159b ('tls: kernel TLS support') > Signed-off-by: Boris Pismenny > Signed-off-by: Ilya Lesokhin Applied and queued up for -stable, thanks Boris.