aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@intel.com>2017-10-16 18:01:27 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2017-10-27 09:49:24 -0700
commit3d0bd028ffb4a4915cb64cfa0d2cee1578cc0321 (patch)
tree8c98e3e218e2271f208ee7da033d6eabe4e3fa69 /include/linux
parentnet/sched: Introduce Credit Based Shaper (CBS) qdisc (diff)
downloadlinux-dev-3d0bd028ffb4a4915cb64cfa0d2cee1578cc0321.tar.xz
linux-dev-3d0bd028ffb4a4915cb64cfa0d2cee1578cc0321.zip
net/sched: Add support for HW offloading for CBS
This adds support for offloading the CBS algorithm to the controller, if supported. Drivers wanting to support CBS offload must implement the .ndo_setup_tc callback and handle the TC_SETUP_CBS (introduced here) type. Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com> Tested-by: Henrik Austad <henrik@austad.us> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/netdevice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 6c7960c8338a..5e02f79b2110 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -776,6 +776,7 @@ enum tc_setup_type {
TC_SETUP_CLSMATCHALL,
TC_SETUP_CLSBPF,
TC_SETUP_BLOCK,
+ TC_SETUP_CBS,
};
/* These structures hold the attributes of xdp state that are being passed