[dpdk-dev] [PATCH] net/ixgbe: fix status synchronization on BSD

Huang, ZhiminX zhiminx.huang at intel.com
Tue Apr 28 12:19:55 CEST 2020


Tested-by: Huang, ZhiminX <zhiminx.huang at intel.com>

Regards,
HuangZhiMin



-----Original Message-----
From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of zhihongx.peng at intel.com
Sent: Friday, April 17, 2020 11:52 AM
To: Ye, Xiaolong <xiaolong.ye at intel.com>; Lu, Wenzhuo <wenzhuo.lu at intel.com>; Ananyev, Konstantin <konstantin.ananyev at intel.com>
Cc: dev at dpdk.org; Peng, ZhihongX <zhihongx.peng at intel.com>; Wang, Liang-min <liang-min.wang at intel.com>
Subject: [dpdk-dev] [PATCH] net/ixgbe: fix status synchronization on BSD

From: Peng Zhihong <zhihongx.peng at intel.com>

DPDK does not implement interrupt mechanism on BSD, so force NIC status synchronization.

Fixes: dc66e5fd01b9 (net/ixgbe: improve link state check on VF)
Cc: liang-min.wang at intel.com

Signed-off-by: Peng Zhihong <zhihongx.peng at intel.com>
---
 drivers/net/ixgbe/ixgbe_ethdev.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index 2c5797635..efd8aced4 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -4262,6 +4262,11 @@ 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.17.1



More information about the dev mailing list