OSDN Git Service

net/sched: Add support for HW offloading for CBS
authorVinicius Costa Gomes <vinicius.gomes@intel.com>
Tue, 17 Oct 2017 01:01:27 +0000 (18:01 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 27 Oct 2017 16:49:24 +0000 (09:49 -0700)
commit3d0bd028ffb4a4915cb64cfa0d2cee1578cc0321
tree8c98e3e218e2271f208ee7da033d6eabe4e3fa69
parent585d763af09cc21daf48ecc873604ccdb70f6014
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>
include/linux/netdevice.h
include/net/pkt_sched.h
net/sched/sch_cbs.c