[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5f143188-57e1-44ce-a70d-d8339af4f159@lunn.ch>
Date: Tue, 7 Jan 2025 14:37:39 +0100
From: Andrew Lunn <andrew@...n.ch>
To: John Daley <johndale@...co.com>
Cc: benve@...co.com, satishkh@...co.com, andrew+netdev@...n.ch,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, netdev@...r.kernel.org,
Nelson Escobar <neescoba@...co.com>
Subject: Re: [PATCH net-next 2/2] enic: Obtain the Link speed only after the
link comes up
On Mon, Jan 06, 2025 at 06:51:35PM -0800, John Daley wrote:
> The link speed is obtained in the RX adaptive coalescing function. It
> was being called at probe time when the link may not be up. Change the
> call to run after the Link comes up.
>
> The impact of not getting the correct link speed was that the low end of
> the adaptive interrupt range was always being set to 0 which could have
> caused a slight increase in the number of RX interrupts.
>
> Co-developed-by: Nelson Escobar <neescoba@...co.com>
> Signed-off-by: Nelson Escobar <neescoba@...co.com>
> Co-developed-by: Satish Kharat <satishkh@...co.com>
> Signed-off-by: Satish Kharat <satishkh@...co.com>
> Signed-off-by: John Daley <johndale@...co.com>
> ---
> drivers/net/ethernet/cisco/enic/enic_main.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/cisco/enic/enic_main.c b/drivers/net/ethernet/cisco/enic/enic_main.c
> index 957efe73e41a..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 */
> };
So we still have this second change, which is not explained in the
commit message, and probably should be in a patch of its own.
Andrew
---
pw-bot: cr
Powered by blists - more mailing lists