diff options
author | Florian Kauer <[email protected]> | 2023-06-14 16:07:13 +0200 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2023-07-10 08:59:08 -0700 |
commit | c1bca9ac0bcb355be11354c2e68bc7bf31f5ac5a (patch) | |
tree | e9c69533421f909cbaa83e0063ff4dcbb06d041e /drivers/net/ethernet/intel/igc/igc_tsn.c | |
parent | 8b86f10ab64eca0287ea8f7c94e9ad8b2e101c01 (diff) |
igc: Fix launchtime before start of cycle
It is possible (verified on a running system) that frames are processed
by igc_tx_launchtime with a txtime before the start of the cycle
(baset_est).
However, the result of txtime - baset_est is written into a u32,
leading to a wrap around to a positive number. The following
launchtime > 0 check will only branch to executing launchtime = 0
if launchtime is already 0.
Fix it by using a s32 before checking launchtime > 0.
Fixes: db0b124f02ba ("igc: Enhance Qbv scheduling by using first flag bit")
Signed-off-by: Florian Kauer <[email protected]>
Reviewed-by: Kurt Kanzenbach <[email protected]>
Tested-by: Naama Meir <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_tsn.c')
0 files changed, 0 insertions, 0 deletions