[Intel-wired-lan] [PATCH S30 v3 7/9] ice: introduce frame padding computation logic
Bowers, AndrewX
andrewx.bowers at intel.com
Fri Oct 25 23:37:53 UTC 2019
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Tony Nguyen
> Sent: Thursday, October 24, 2019 1:11 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S30 v3 7/9] ice: introduce frame padding
> computation logic
>
> From: Maciej Fijalkowski <maciej.fijalkowski at intel.com>
>
> 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 <maciej.fijalkowski at intel.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen at intel.com>
> ---
> 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 <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list