[Intel-wired-lan] [PATCH S42 5/7] ice: Enable flex-bytes support

Bowers, AndrewX andrewx.bowers at intel.com
Tue May 19 16:37:16 UTC 2020


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Tony Nguyen
> Sent: Monday, May 11, 2020 6:02 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S42 5/7] ice: Enable flex-bytes support
> 
> From: Henry Tieman <henry.w.tieman at intel.com>
> 
> Flex-bytes allows for packet matching based on an offset and value. This is
> supported via the ethtool user-def option.  It is specified by providing an
> offset followed by a 2 byte match value. Offset is measured from the start of
> the MAC address.
> 
> The following restrictions apply to flex-bytes. The specified offset must be an
> even number and be smaller than 0x1fe.
> 
> Example usage:
> 
> ethtool -N eth0 flow-type tcp4 src-ip 192.168.0.55 dst-ip 172.16.0.55 \ src-port
> 12 dst-port 13 user-def 0x10ffff action 32
> 
> Signed-off-by: Henry Tieman <henry.w.tieman at intel.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen at intel.com>
> ---
>  .../net/ethernet/intel/ice/ice_ethtool_fdir.c |  88 +++++++++-
>  drivers/net/ethernet/intel/ice/ice_fdir.c     |   3 +
>  drivers/net/ethernet/intel/ice/ice_fdir.h     |  13 ++
>  drivers/net/ethernet/intel/ice/ice_flow.c     | 150 ++++++++++++++++++
>  drivers/net/ethernet/intel/ice/ice_flow.h     |  12 ++
>  .../ethernet/intel/ice/ice_protocol_type.h    |   1 +
>  6 files changed, 265 insertions(+), 2 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list