Skip to content

Commit 947dfc8

Browse files
rodrigo-cadore-laanguy11
authored andcommitted
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: 1ab011b ("igc: Add support for CBS offloading") Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de> Signed-off-by: Rodrigo Cataldo <rodrigo.cadore@l-acoustics.com> Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com> Tested-by: Naama Meir <naamax.meir@linux.intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
1 parent 9fb266d commit 947dfc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/igc/igc_tsn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ static int igc_tsn_enable_offload(struct igc_adapter *adapter)
227227
wr32(IGC_TQAVCC(i), tqavcc);
228228

229229
wr32(IGC_TQAVHC(i),
230-
0x80000000 + ring->hicredit * 0x7735);
230+
0x80000000 + ring->hicredit * 0x7736);
231231
} else {
232232
/* Disable any CBS for the queue */
233233
txqctl &= ~(IGC_TXQCTL_QAV_SEL_MASK);

0 commit comments

Comments
 (0)