]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
enic: Fix typo in comment in table indexed by link speed
authorJohn Daley <johndale@cisco.com>
Tue, 7 Jan 2025 21:41:59 +0000 (13:41 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 Jan 2025 20:27:09 +0000 (12:27 -0800)
The RX adaptive interrupt moderation table is indexed by link speed
range, where the last row of the table is the catch-all for all link
speeds greater than 10Gbps. The comment said 10 - 40Gbps, but since
there are now adapters with link speeds than 40Gbps, the comment is now
wrong and should indicate it applies to all speeds greater than 10Gbps.

Co-developed-by: Nelson Escobar <neescoba@cisco.com>
Signed-off-by: Nelson Escobar <neescoba@cisco.com>
Co-developed-by: Satish Kharat <satishkh@cisco.com>
Signed-off-by: Satish Kharat <satishkh@cisco.com>
Signed-off-by: John Daley <johndale@cisco.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Link: https://patch.msgid.link/20250107214159.18807-4-johndale@cisco.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cisco/enic/enic_main.c

index 8109e9c484f67272f47bc8eb46f008910f917b46..49f6cab01ed510e7a7710640dcdf9242fe674334 100644 (file)
@@ -109,7 +109,7 @@ static struct enic_intr_mod_table mod_table[ENIC_MAX_COALESCE_TIMERS + 1] = {
 static struct enic_intr_mod_range mod_range[ENIC_MAX_LINK_SPEEDS] = {
        {0,  0}, /* 0  - 4  Gbps */
        {0,  3}, /* 4  - 10 Gbps */
-       {3,  6}, /* 10 - 40 Gbps */
+       {3,  6}, /* 10+ Gbps */
 };
 
 static void enic_init_affinity_hint(struct enic *enic)