]> www.infradead.org Git - users/hch/misc.git/commit
enic: Obtain the Link speed only after the link comes up
authorJohn Daley <johndale@cisco.com>
Tue, 7 Jan 2025 21:41:58 +0000 (13:41 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 Jan 2025 20:27:08 +0000 (12:27 -0800)
commit238d77d110f7b54b483bf2b67038d43a7b51800c
treeda6f24d083ab8e925b8a36b9ff870a63cd1540f6
parentaf2ccc6908f7c2156532de16f8446992b74e74a2
enic: Obtain the Link speed only after the link comes up

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@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-3-johndale@cisco.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cisco/enic/enic_main.c