DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] ixgbe: Removed FreeBSD forcing wait in ixgbe_dev_link_update_share()
@ 2024-10-22 14:42 lew
  2024-10-22 15:34 ` Stephen Hemminger
  2024-10-22 16:16 ` Stephen Hemminger
  0 siblings, 2 replies; 4+ messages in thread
From: lew @ 2024-10-22 14:42 UTC (permalink / raw)
  To: dev; +Cc: Lewis Donzis

From: Lewis Donzis <lew@perftech.com>

Forcing wait true prevents checking link status without delay, because the function will wait more than 10 seconds for link status to be true.

Signed-off-by: Lewis Donzis <lew@perftech.com>
---
 drivers/net/ixgbe/ixgbe_ethdev.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index ab37c37469..008760e315 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -4314,11 +4314,6 @@ ixgbe_dev_link_update_share(struct rte_eth_dev *dev,
 	if (wait_to_complete == 0 || dev->data->dev_conf.intr_conf.lsc != 0)
 		wait = 0;
 
-/* BSD has no interrupt mechanism, so force NIC status synchronization. */
-#ifdef RTE_EXEC_ENV_FREEBSD
-	wait = 1;
-#endif
-
 	if (vf)
 		diag = ixgbevf_check_link(hw, &link_speed, &link_up, wait);
 	else
-- 
2.46.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-22 16:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-22 14:42 [PATCH] ixgbe: Removed FreeBSD forcing wait in ixgbe_dev_link_update_share() lew
2024-10-22 15:34 ` Stephen Hemminger
2024-10-22 15:58   ` Lewis Donzis
2024-10-22 16:16 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).