net/ice: fix L1 check interval to account for longer link times
PATCH v2 1/1 net/ice: fix L1 check interval to account for longer link times
For edge cases where the transceiver is physically inserted first and immediately afterwards the DPDK PF is started the LSC event may occur outside the current setting for the maximum check interval window. This change lengthens the check interval to account for this along with other reported cases where the link event may be longer than 1 second.
--- .mailmap | 2 ++ drivers/net/ice/ice_ethdev.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-)
.mailmap +2 -0
@@ -674,6 +674,7 @@ John Romein <[email protected]> John W. Linville <[email protected]> Jonas Pfefferle <[email protected]> <[email protected]> Jonathan Erb <[email protected]> <[email protected]> +Jonathan Tsai <[email protected]> Jon DeVree <[email protected]> Jon Loeliger <[email protected]> Joongi Kim <[email protected]>
@@ -1414,6 +1415,7 @@ Tianli Lai <[email protected]> Tianyu Li <[email protected]> Timmons C. Player <[email protected]> Timothy McDaniel <[email protected]> +Timothy Miskell <[email protected]> Timothy Redaelli <[email protected]> Tim Shearer <[email protected]> Ting Xu <[email protected]>
drivers/net/ice/ice_ethdev.c +2 -2
@@ -3992,8 +3992,8 @@ ice_atomic_write_link_status(struct rte_eth_dev *dev,static int ice_link_update (struct rte_eth_dev *dev,int wait_to_complete) { -#define CHECK_INTERVAL 100/* 100ms */ -#define MAX_REPEAT_TIME 10/* 1s (10 * 100ms) in total */ +#define CHECK_INTERVAL 50/* 50ms */ +#define MAX_REPEAT_TIME 40/* 2s (40 * 50ms) in total */ struct ice_hw *hw =ICE_DEV_PRIVATE_TO_HW (dev->data->dev_private);struct ice_link_status link_status;struct rte_eth_link link, old;
Signature · 1 line
2.25.1
Quoted 11 lines
-----Original Message-----
From: Miskell, Timothy <[email protected]>
Sent: Friday, October 20, 2023 1:26 AM
To: Zhang, Qi Z <[email protected]>
Cc: [email protected]; Miskell, Timothy <[email protected]>; Tsai, Jonathan1 <[email protected]>
Subject: [PATCH v2] net/ice: fix L1 check interval to account for longer link times
Quoted 5 lines
For edge cases where the transceiver is physically inserted first and immediately afterwards the DPDK PF is started the LSC event may occur outside the current setting for the maximum check interval window. This change lengthens the check interval to account for this along with other reported cases where the link event may be longer than 1 second.
Quoted 3 lines
Signed-off-by Timothy Miskell <[email protected]>Tested-by Jonathan Tsai <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi