]> Git Repo - linux.git/commit
igc: Fix hicredit calculation
authorRodrigo Cataldo <[email protected]>
Fri, 8 Dec 2023 14:58:16 +0000 (15:58 +0100)
committerTony Nguyen <[email protected]>
Wed, 3 Jan 2024 19:19:47 +0000 (11:19 -0800)
commit947dfc8138dfaeb6e966e2d661de89eb203e3064
treec946aedc9cd4e9a22e2b2531174a39c94786a64e
parent9fb266dcb6aab27867b22f7bc9e4ad6bd14b2ddc
igc: Fix hicredit calculation

According to the Intel Software Manual for I225, Section 7.5.2.7,
hicredit should be multiplied by the constant link-rate value, 0x7736.

Currently, the old constant link-rate value, 0x7735, from the boards
supported on igb are being used, most likely due to a copy'n'paste, as
the rest of the logic is the same for both drivers.

Update hicredit accordingly.

Fixes: 1ab011b0bf07 ("igc: Add support for CBS offloading")
Reviewed-by: Kurt Kanzenbach <[email protected]>
Signed-off-by: Rodrigo Cataldo <[email protected]>
Acked-by: Vinicius Costa Gomes <[email protected]>
Tested-by: Naama Meir <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
drivers/net/ethernet/intel/igc/igc_tsn.c
This page took 0.056157 seconds and 4 git commands to generate.