DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/ixgbe: update data->eth_link status on start
@ 2018-02-13 22:56 Chas Williams
  2018-03-30 16:30 ` Zhang, Helin
  2018-04-08  2:05 ` Zhang, Qi Z
  0 siblings, 2 replies; 15+ messages in thread
From: Chas Williams @ 2018-02-13 22:56 UTC (permalink / raw)
  To: dev; +Cc: wenzhuo.lu, konstantin.ananyev, Charles (Chas) Williams

From: "Charles (Chas) Williams" <chas3@att.com>

dev->data->eth_link isn't updated until the first interrupt.  If a
link is carrier down, then this interrupt may never happen.  Before we
finished starting the PMD, call ixgbe_dev_link_update() to ensure we
have a valid status.

Signed-off-by: Chas Williams <chas3@att.com>
---
 drivers/net/ixgbe/ixgbe_ethdev.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index 37eb668..27d29dc 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -2666,6 +2666,8 @@ ixgbe_dev_start(struct rte_eth_dev *dev)
 	if (err)
 		goto error;
 
+	ixgbe_dev_link_update(dev, 0);
+
 skip_link_setup:
 
 	if (rte_intr_allow_others(intr_handle)) {
@@ -5033,6 +5035,8 @@ ixgbevf_dev_start(struct rte_eth_dev *dev)
 
 	ixgbevf_dev_rxtx_start(dev);
 
+	ixgbevf_dev_link_update(dev, 0);
+
 	/* check and configure queue intr-vector mapping */
 	if (rte_intr_cap_multiple(intr_handle) &&
 	    dev->data->dev_conf.intr_conf.rxq) {
-- 
2.9.5

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [dpdk-dev] [PATCH] net/ixgbe: update data->eth_link status on start
@ 2023-12-15 13:11 Riyadi Selamat
  0 siblings, 0 replies; 15+ messages in thread
From: Riyadi Selamat @ 2023-12-15 13:11 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: Type: text/html, Size: 23 bytes --]

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

end of thread, other threads:[~2023-12-20 14:35 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-13 22:56 [dpdk-dev] [PATCH] net/ixgbe: update data->eth_link status on start Chas Williams
2018-03-30 16:30 ` Zhang, Helin
2018-03-30 17:21   ` Chas Williams
2018-04-02 12:40     ` Zhang, Qi Z
2018-04-02 13:38       ` Chas Williams
2018-04-02 13:45         ` Zhang, Qi Z
2018-04-02 13:57           ` Chas Williams
2018-04-02 14:34             ` Zhang, Qi Z
2018-04-04 13:53               ` Dai, Wei
2018-04-06 14:52             ` Zhang, Helin
2018-04-06 14:59               ` Chas Williams
2018-04-06 15:59               ` Zhang, Qi Z
2018-04-08  2:05 ` Zhang, Qi Z
2018-04-08 16:08   ` Zhang, Helin
2023-12-15 13:11 Riyadi Selamat

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).