]> asedeno.scripts.mit.edu Git - linux.git/commit
net: sched: Identify hardware traffic classes using classid
authorAmritha Nambiar <amritha.nambiar@intel.com>
Fri, 27 Oct 2017 09:35:34 +0000 (02:35 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 31 Oct 2017 17:45:45 +0000 (10:45 -0700)
commit384c181e3780ddc45e70483e29d84495b484730d
tree8f063cca3ae12f55d566c07115b43ee13b71cfb9
parentaa250f1186319f1e0b9b4a1d99022fe32251b8b6
net: sched: Identify hardware traffic classes using classid

This patch offloads the classid to hardware and uses the classid
reserved in the range :ffe0 - :ffef to identify hardware traffic
classes reported via dev->num_tc.

tcf_result structure contains the class ID of the class to which
the packet belongs and is offloaded to hardware via flower filter.
A new helper function is introduced to represent HW traffic
classes 0 through 15 using the reserved classid values :ffe0 - :ffef.

Signed-off-by: Amritha Nambiar <amritha.nambiar@intel.com>
Acked-by: Shannon Nelson <shannon.nelson@oracle.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
include/net/pkt_cls.h
include/net/sch_generic.h
net/sched/cls_flower.c