From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Brandeburg Subject: Re: [Intel-wired-lan] [PATCH v2 next-queue 08/10] ixgbe: process the Tx ipsec offload Date: Fri, 15 Dec 2017 11:20:58 -0800 Message-ID: <20171215112058.00007963@intel.com> References: <1513121823-27944-1-git-send-email-shannon.nelson@oracle.com> <1513121823-27944-9-git-send-email-shannon.nelson@oracle.com> <7fe36ce0-be09-828d-16e5-776add0a182d@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Alexander Duyck , intel-wired-lan , Jeff Kirsher , Steffen Klassert , Netdev , "Sowmini Varadhan" , jesse.brandeburg@intel.com To: Shannon Nelson Return-path: Received: from mga12.intel.com ([192.55.52.136]:58048 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756195AbdLOTU7 (ORCPT ); Fri, 15 Dec 2017 14:20:59 -0500 In-Reply-To: <7fe36ce0-be09-828d-16e5-776add0a182d@oracle.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 12 Dec 2017 21:45:13 -0800 Shannon Nelson wrote: > > Also you are still setting the TCP flag for these packets. I'm > > wondering if the TCP flag is really needed. I get that your current > > setup only runs on TCP flows but what about other types of flows? > > Couldn't UDP be encapsulated via ESP? > > That L4T_TCP bit annoys me - if I don't set it, the offload doesn't > work, whether doing csum offload or not. > > The UDP messages can be encapsulated, but they don't seem to go down the > offload route. I haven't looked into why yet. L4T_TCP, AFAIK is a control of whether or not the L4 checksum generated by the offload hardware uses the "never equal 0" logic required by TCP checksums, but not required by UDP checksums. Not sure if that helps, or even really applies to the case where you're doing IPSEC offload. Seems like something else is at play as well (undocumented HW requirements?)