[Intel-wired-lan] [PATCH net-next v2] ice: Add support for classid based queue selection

Sreenivas, Bharathi bharathi.sreenivas at intel.com
Mon Apr 4 08:28:43 UTC 2022



> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Sudheer Mogilappagari
> Sent: Friday, March 18, 2022 11:26 AM
> To: intel-wired-lan at osuosl.org
> Subject: [Intel-wired-lan] [PATCH net-next v2] ice: Add support for classid
> based queue selection
> 
> From: Amritha Nambiar <amritha.nambiar at intel.com>
> 
> This patch uses TC flower filter's classid feature to support forwarding
> packets to a device queue. Such filters with action forward to queue will be
> the highest priority switch filter in HW.
> Example:
> $ tc filter add dev ens4f0 protocol ip ingress flower\
>   dst_ip 192.168.1.12 ip_proto tcp dst_port 5001\
>   skip_sw classid ffff:0x5
> 
> The above command adds an ingress filter, the accepted packets will be
> directed to queue 4. The major number represents the ingress qdisc. The
> general rule is "classID's minor number - 1" upto max queues supported. The
> queue number is in hex format.
> 
> Refactored ice_add_tc_flower_adv_fltr() to consolidate code with action
> FWD_TO_VSI and FWD_TO QUEUE.
> 
> Signed-off-by: Amritha Nambiar <amritha.nambiar at intel.com>
> Signed-off-by: Sridhar Samudrala <sridhar.samudrala at intel.com>
> ---
> 
> v2:
> - fixed use of global queue id instead of PF relative queue id
>   as requred by hw.
> 
> ---
> 
>  drivers/net/ethernet/intel/ice/ice.h        |  15 ++
>  drivers/net/ethernet/intel/ice/ice_main.c   |   2 +-
>  drivers/net/ethernet/intel/ice/ice_tc_lib.c | 274 +++++++++++++++-----
> drivers/net/ethernet/intel/ice/ice_tc_lib.h |  40 ++-
>  4 files changed, 263 insertions(+), 68 deletions(-)
> 
Tested-by: Bharathi Sreenivas <bharathi.sreenivas at intel.com>


More information about the Intel-wired-lan mailing list