linux-stable/drivers/net/ethernet/intel/igc
Tan Tee Min 6d05251d53 igc: recalculate Qbv end_time by considering cycle time
Qbv users can specify a cycle time that is not equal to the total GCL
intervals. Hence, recalculation is necessary here to exclude the time
interval that exceeds the cycle time. As those GCL which exceeds the
cycle time will be truncated.

According to IEEE Std. 802.1Q-2018 section 8.6.9.2, once the end of
the list is reached, it will switch to the END_OF_CYCLE state and
leave the gates in the same state until the next cycle is started.

Fixes: ec50a9d437 ("igc: Add support for taprio offloading")
Signed-off-by: Tan Tee Min <tee.min.tan@linux.intel.com>
Signed-off-by: Muhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com>
Tested-by: Naama Meir <naamax.meir@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2022-12-15 13:19:56 -08:00
..
Makefile igc: Add initial XDP support 2021-03-29 09:09:53 -07:00
igc.h igc: allow BaseTime 0 enrollment for Qbv 2022-12-15 13:19:49 -08:00
igc_base.c igc: Remove unused phy_type enum 2022-05-10 14:02:40 -07:00
igc_base.h igc: Enable TX via AF_XDP zero-copy 2021-05-20 10:21:42 -07:00
igc_defines.h igc: Enhance Qbv scheduling by using first flag bit 2022-12-15 13:18:34 -08:00
igc_diag.c
igc_diag.h
igc_dump.c igb/igc: use strongly typed pointer 2021-05-26 09:11:41 -07:00
igc_ethtool.c net: Remove the obsolte u64_stats_fetch_*_irq() users (drivers). 2022-10-28 20:13:54 -07:00
igc_hw.h igc: Remove forced_speed_duplex value 2022-07-18 09:34:38 -07:00
igc_i225.c igc: Fix infinite loop in release_swfw_sync 2022-04-13 07:58:32 -07:00
igc_i225.h
igc_mac.c intel/igc:fix repeated words in comments 2022-06-30 11:06:23 -07:00
igc_mac.h
igc_main.c igc: recalculate Qbv end_time by considering cycle time 2022-12-15 13:19:56 -08:00
igc_nvm.c
igc_nvm.h
igc_phy.c igc: Change type of the 'igc_check_downshift' method 2022-05-10 14:02:53 -07:00
igc_phy.h igc: Change type of the 'igc_check_downshift' method 2022-05-10 14:02:53 -07:00
igc_ptp.c intel: remove unused macros 2022-06-30 09:40:55 -07:00
igc_regs.h igc: Correct the launchtime offset 2022-11-02 11:38:22 -07:00
igc_tsn.c igc: allow BaseTime 0 enrollment for Qbv 2022-12-15 13:19:49 -08:00
igc_tsn.h igc: Correct the launchtime offset 2022-11-02 11:38:22 -07:00
igc_xdp.c net: Don't include filter.h from net/sock.h 2021-12-29 08:48:14 -08:00
igc_xdp.h igc: Enable RX via AF_XDP zero-copy 2021-05-20 10:21:42 -07:00