From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bowers, AndrewX Date: Fri, 18 Oct 2019 00:17:53 +0000 Subject: [Intel-wired-lan] [PATCH S30 v2 7/9] ice: introduce frame padding computation logic In-Reply-To: <20191016150201.41597-7-anthony.l.nguyen@intel.com> References: <20191016150201.41597-1-anthony.l.nguyen@intel.com> <20191016150201.41597-7-anthony.l.nguyen@intel.com> Message-ID: <1110372bb712403a91294c23f464e641@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: intel-wired-lan@osuosl.org List-ID: > -----Original Message----- > From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On > Behalf Of Tony Nguyen > Sent: Wednesday, October 16, 2019 8:02 AM > To: intel-wired-lan at lists.osuosl.org > Subject: [Intel-wired-lan] [PATCH S30 v2 7/9] ice: introduce frame padding > computation logic > > From: Maciej Fijalkowski > > Take into account the underlying architecture specific settings and based on > that calculate the possible padding that can be supplied. > Typically, for x86 and standard MTU size we will end up with 192 bytes of > headroom. This is the same behavior as our other drivers have and we can > dedicate it for XDP purposes. > > Furthermore, introduce the Rx ring flag for indicating whether build_skb is > used on particular. Based on that invoke the routines for padding calculation. > > Signed-off-by: Maciej Fijalkowski > Signed-off-by: Tony Nguyen > --- > drivers/net/ethernet/intel/ice/ice_base.c | 6 ++ > drivers/net/ethernet/intel/ice/ice_ethtool.c | 2 +- > drivers/net/ethernet/intel/ice/ice_lib.c | 3 +- > drivers/net/ethernet/intel/ice/ice_txrx.c | 42 +++++----- > drivers/net/ethernet/intel/ice/ice_txrx.h | 81 ++++++++++++++++++++ > 5 files changed, 114 insertions(+), 20 deletions(-) Tested-by: Andrew Bowers