OSDN Git Service

igc: Add support for taprio offloading
authorVinicius Costa Gomes <vinicius.gomes@intel.com>
Fri, 14 Feb 2020 23:52:02 +0000 (15:52 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 17 Apr 2020 17:19:24 +0000 (10:19 -0700)
commitec50a9d437f05dd76444a65fdd3cfbfad90ee9d6
tree4962301811790846c2a5c25474837418b87a8a4a
parent34428dff3679f0c4c9b185ff8eccefd12a7f55f8
igc: Add support for taprio offloading

Adds support for translating taprio schedules into i225 cycles. This
will allow schedules to run in the hardware, making the schedules
enforcement more precise and saving CPU time.

Right now, the only simple schedules are allowed, complex schedules are
rejected. "simple" in this context are schedules that each HW queue is
opened and closed only once in each cycle.

Changing schedules is still not supported as well.

Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Reviewed-by: Andre Guedes <andre.guedes@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igc/Makefile
drivers/net/ethernet/intel/igc/igc.h
drivers/net/ethernet/intel/igc/igc_defines.h
drivers/net/ethernet/intel/igc/igc_main.c
drivers/net/ethernet/intel/igc/igc_regs.h
drivers/net/ethernet/intel/igc/igc_tsn.c [new file with mode: 0644]
drivers/net/ethernet/intel/igc/igc_tsn.h [new file with mode: 0644]