Message ID | 20250107214159.18807-4-johndale@cisco.com (mailing list archive) |
---|---|
State | New |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | enic: Set link speed only after link up | expand |
On Wed, Jan 8, 2025 at 3:12 AM John Daley <johndale@cisco.com> wrote: > > 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>
diff --git a/drivers/net/ethernet/cisco/enic/enic_main.c b/drivers/net/ethernet/cisco/enic/enic_main.c index 8109e9c484f6..49f6cab01ed5 100644 --- a/drivers/net/ethernet/cisco/enic/enic_main.c +++ b/drivers/net/ethernet/cisco/enic/enic_main.c @@ -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)