Re: [next-queue PATCH v5 4/5] net/sched: Add support for HW offloading for CBS

2017-10-11 Thread Vinicius Costa Gomes
Jiri Pirko writes: [...] >>+static void disable_cbs_offload(struct net_device *dev, >>+ struct cbs_sched_data *q) >>+{ >>+ struct tc_cbs_qopt_offload cbs = { }; >>+ const struct net_device_ops *ops; >>+ int err; >>+ >>+ if (!q->offload) >>+

Re: [next-queue PATCH v5 4/5] net/sched: Add support for HW offloading for CBS

2017-10-11 Thread Jiri Pirko
Wed, Oct 11, 2017 at 02:43:59AM CEST, vinicius.go...@intel.com wrote: >This adds support for offloading the CBS algorithm to the controller, >if supported. Oh, so you have it as a separate patch, yet some bits left in the previous one... > >Signed-off-by: Vinicius Costa Gomes >--- > net/sched/s

[next-queue PATCH v5 4/5] net/sched: Add support for HW offloading for CBS

2017-10-10 Thread Vinicius Costa Gomes
This adds support for offloading the CBS algorithm to the controller, if supported. Signed-off-by: Vinicius Costa Gomes --- net/sched/sch_cbs.c | 92 ++--- 1 file changed, 81 insertions(+), 11 deletions(-) diff --git a/net/sched/sch_cbs.c b/net/sc