diff options
author | Vinicius Costa Gomes <vinicius.gomes@intel.com> | 2017-10-17 03:01:27 +0200 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2017-10-27 18:49:24 +0200 |
commit | 3d0bd028ffb4a4915cb64cfa0d2cee1578cc0321 (patch) | |
tree | 8c98e3e218e2271f208ee7da033d6eabe4e3fa69 /include/net/pkt_sched.h | |
parent | net/sched: Introduce Credit Based Shaper (CBS) qdisc (diff) | |
download | linux-3d0bd028ffb4a4915cb64cfa0d2cee1578cc0321.tar.xz linux-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/net/pkt_sched.h')
-rw-r--r-- | include/net/pkt_sched.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h index b8ecafce4ba1..02f2db26e30c 100644 --- a/include/net/pkt_sched.h +++ b/include/net/pkt_sched.h @@ -140,4 +140,13 @@ static inline struct net *qdisc_net(struct Qdisc *q) return dev_net(q->dev_queue->dev); } +struct tc_cbs_qopt_offload { + u8 enable; + s32 queue; + s32 hicredit; + s32 locredit; + s32 idleslope; + s32 sendslope; +}; + #endif |