DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net/gve: Fix TX/RX queue setup and stop for DQO
@ 2024-07-24  5:58 Tathagat Priyadarshi
  2024-07-24  6:56 ` [PATCH v2] net/gve: Fix TX/RX queue setup and stop Tathagat Priyadarshi
  2024-07-24 13:35 ` [PATCH] " Tathagat Priyadarshi
  0 siblings, 2 replies; 13+ messages in thread
From: Tathagat Priyadarshi @ 2024-07-24  5:58 UTC (permalink / raw)
  To: rushilg, joshwash; +Cc: dev, Tathagat Priyadarshi

The PR aims to update the TX/RQ queue setup/stop routines that are
unique to DQO, so that they may be called for instances that use the DQO
RDA format during dev start/stop.

Signed-off-by: Tathagat Priyadarshi <tathagat.dpdk@gmail.com>
Acked-by: Joshua Washington <joshwash@google.com>
---
 drivers/net/gve/gve_ethdev.c | 26 +++++++++++++++++++++-----
 1 file changed, 21 insertions(+), 5 deletions(-)

diff --git a/drivers/net/gve/gve_ethdev.c b/drivers/net/gve/gve_ethdev.c
index ca92277..2c558ed 100644
--- a/drivers/net/gve/gve_ethdev.c
+++ b/drivers/net/gve/gve_ethdev.c
@@ -289,7 +289,11 @@ struct gve_queue_page_list *
 		return ret;
 	}
 	for (i = 0; i < num_queues; i++)
-		if (gve_tx_queue_start(dev, i) != 0) {
+		if (gve_is_gqi(priv))
+			ret = gve_tx_queue_start(dev, i);
+		else
+			ret = gve_tx_queue_start_dqo(dev, i);
+		if (ret != 0) {
 			PMD_DRV_LOG(ERR, "Fail to start Tx queue %d", i);
 			goto err_tx;
 		}
@@ -315,9 +319,15 @@ struct gve_queue_page_list *
 	return 0;
 
 err_rx:
-	gve_stop_rx_queues(dev);
+	if (gve_is_gqi(priv))
+		gve_stop_rx_queues(dev);
+	else
+		gve_stop_rx_queues_dqo(dev);
 err_tx:
-	gve_stop_tx_queues(dev);
+	if (gve_is_gqi(priv))
+		gve_stop_tx_queues(dev);
+	else
+		gve_stop_tx_queues_dqo(dev);
 	return ret;
 }
 
@@ -362,10 +372,16 @@ struct gve_queue_page_list *
 static int
 gve_dev_stop(struct rte_eth_dev *dev)
 {
+	struct gve_priv *priv = dev->data->dev_private;
 	dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 
-	gve_stop_tx_queues(dev);
-	gve_stop_rx_queues(dev);
+	if (gve_is_gqi(priv)) {
+		gve_stop_tx_queues(dev);
+		gve_stop_rx_queues(dev);
+	} else {
+		gve_stop_tx_queues_dqo(dev);
+		gve_stop_rx_queues_dqo(dev);
+	}
 
 	dev->data->dev_started = 0;
 
-- 
1.8.3.1


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

* [PATCH v2] net/gve: Fix TX/RX queue setup and stop
  2024-07-24  5:58 [PATCH] net/gve: Fix TX/RX queue setup and stop for DQO Tathagat Priyadarshi
@ 2024-07-24  6:56 ` Tathagat Priyadarshi
  2024-07-24 13:35 ` [PATCH] " Tathagat Priyadarshi
  1 sibling, 0 replies; 13+ messages in thread
From: Tathagat Priyadarshi @ 2024-07-24  6:56 UTC (permalink / raw)
  To: dev; +Cc: Tathagat Priyadarshi

The PR aims to update the TX/RQ queue setup/stop routines that are
unique to DQO, so that they may be called for instances that use the DQO
RDA format during dev start/stop.

Signed-off-by: Tathagat Priyadarshi <tathagat.dpdk@gmail.com>
Acked-by: Joshua Washington <joshwash@google.com>
---
 drivers/net/gve/gve_ethdev.c | 29 +++++++++++++++++++++++------
 1 file changed, 23 insertions(+), 6 deletions(-)

diff --git a/drivers/net/gve/gve_ethdev.c b/drivers/net/gve/gve_ethdev.c
index ca92277..a20092e 100644
--- a/drivers/net/gve/gve_ethdev.c
+++ b/drivers/net/gve/gve_ethdev.c
@@ -288,11 +288,16 @@ struct gve_queue_page_list *
 		PMD_DRV_LOG(ERR, "Failed to create %u tx queues.", num_queues);
 		return ret;
 	}
-	for (i = 0; i < num_queues; i++)
-		if (gve_tx_queue_start(dev, i) != 0) {
+	for (i = 0; i < num_queues; i++) {
+		if (gve_is_gqi(priv))
+			ret = gve_tx_queue_start(dev, i);
+		else
+			ret = gve_tx_queue_start_dqo(dev, i);
+		if (ret != 0) {
 			PMD_DRV_LOG(ERR, "Fail to start Tx queue %d", i);
 			goto err_tx;
 		}
+	}
 
 	num_queues = dev->data->nb_rx_queues;
 	priv->rxqs = (struct gve_rx_queue **)dev->data->rx_queues;
@@ -315,9 +320,15 @@ struct gve_queue_page_list *
 	return 0;
 
 err_rx:
-	gve_stop_rx_queues(dev);
+	if (gve_is_gqi(priv))
+		gve_stop_rx_queues(dev);
+	else
+		gve_stop_rx_queues_dqo(dev);
 err_tx:
-	gve_stop_tx_queues(dev);
+	if (gve_is_gqi(priv))
+		gve_stop_tx_queues(dev);
+	else
+		gve_stop_tx_queues_dqo(dev);
 	return ret;
 }
 
@@ -362,10 +373,16 @@ struct gve_queue_page_list *
 static int
 gve_dev_stop(struct rte_eth_dev *dev)
 {
+	struct gve_priv *priv = dev->data->dev_private;
 	dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 
-	gve_stop_tx_queues(dev);
-	gve_stop_rx_queues(dev);
+	if (gve_is_gqi(priv)) {
+		gve_stop_tx_queues(dev);
+		gve_stop_rx_queues(dev);
+	} else {
+		gve_stop_tx_queues_dqo(dev);
+		gve_stop_rx_queues_dqo(dev);
+	}
 
 	dev->data->dev_started = 0;
 
-- 
1.8.3.1


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

* [PATCH] net/gve: Fix TX/RX queue setup and stop
  2024-07-24  5:58 [PATCH] net/gve: Fix TX/RX queue setup and stop for DQO Tathagat Priyadarshi
  2024-07-24  6:56 ` [PATCH v2] net/gve: Fix TX/RX queue setup and stop Tathagat Priyadarshi
@ 2024-07-24 13:35 ` Tathagat Priyadarshi
  2024-07-25 12:38   ` Ferruh Yigit
  2024-07-25 13:31   ` [PATCH v2] " Tathagat Priyadarshi
  1 sibling, 2 replies; 13+ messages in thread
From: Tathagat Priyadarshi @ 2024-07-24 13:35 UTC (permalink / raw)
  To: dev; +Cc: Tathagat Priyadarshi

The PR aims to update the TX/RQ queue setup/stop routines that are
unique to DQO, so that they may be called for instances that use the
DQO RDA format during dev start/stop.

Signed-off-by: Tathagat Priyadarshi <tathagat.dpdk@gmail.com>
Acked-by: Joshua Washington <joshwash@google.com>
---
 drivers/net/gve/gve_ethdev.c | 29 +++++++++++++++++++++++------
 1 file changed, 23 insertions(+), 6 deletions(-)

diff --git a/drivers/net/gve/gve_ethdev.c b/drivers/net/gve/gve_ethdev.c
index ca92277..a20092e 100644
--- a/drivers/net/gve/gve_ethdev.c
+++ b/drivers/net/gve/gve_ethdev.c
@@ -288,11 +288,16 @@ struct gve_queue_page_list *
 		PMD_DRV_LOG(ERR, "Failed to create %u tx queues.", num_queues);
 		return ret;
 	}
-	for (i = 0; i < num_queues; i++)
-		if (gve_tx_queue_start(dev, i) != 0) {
+	for (i = 0; i < num_queues; i++) {
+		if (gve_is_gqi(priv))
+			ret = gve_tx_queue_start(dev, i);
+		else
+			ret = gve_tx_queue_start_dqo(dev, i);
+		if (ret != 0) {
 			PMD_DRV_LOG(ERR, "Fail to start Tx queue %d", i);
 			goto err_tx;
 		}
+	}
 
 	num_queues = dev->data->nb_rx_queues;
 	priv->rxqs = (struct gve_rx_queue **)dev->data->rx_queues;
@@ -315,9 +320,15 @@ struct gve_queue_page_list *
 	return 0;
 
 err_rx:
-	gve_stop_rx_queues(dev);
+	if (gve_is_gqi(priv))
+		gve_stop_rx_queues(dev);
+	else
+		gve_stop_rx_queues_dqo(dev);
 err_tx:
-	gve_stop_tx_queues(dev);
+	if (gve_is_gqi(priv))
+		gve_stop_tx_queues(dev);
+	else
+		gve_stop_tx_queues_dqo(dev);
 	return ret;
 }
 
@@ -362,10 +373,16 @@ struct gve_queue_page_list *
 static int
 gve_dev_stop(struct rte_eth_dev *dev)
 {
+	struct gve_priv *priv = dev->data->dev_private;
 	dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 
-	gve_stop_tx_queues(dev);
-	gve_stop_rx_queues(dev);
+	if (gve_is_gqi(priv)) {
+		gve_stop_tx_queues(dev);
+		gve_stop_rx_queues(dev);
+	} else {
+		gve_stop_tx_queues_dqo(dev);
+		gve_stop_rx_queues_dqo(dev);
+	}
 
 	dev->data->dev_started = 0;
 
-- 
1.8.3.1


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

* Re: [PATCH] net/gve: Fix TX/RX queue setup and stop
  2024-07-24 13:35 ` [PATCH] " Tathagat Priyadarshi
@ 2024-07-25 12:38   ` Ferruh Yigit
  2024-07-25 12:51     ` Tathagat Priyadarshi
  2024-07-25 13:31   ` [PATCH v2] " Tathagat Priyadarshi
  1 sibling, 1 reply; 13+ messages in thread
From: Ferruh Yigit @ 2024-07-25 12:38 UTC (permalink / raw)
  To: Tathagat Priyadarshi, Joshua Washington; +Cc: dev

On 7/24/2024 2:35 PM, Tathagat Priyadarshi wrote:
> The PR aims to update the TX/RQ queue setup/stop routines that are
> unique to DQO, so that they may be called for instances that use the
> DQO RDA format during dev start/stop.
> 
> Signed-off-by: Tathagat Priyadarshi <tathagat.dpdk@gmail.com>
> Acked-by: Joshua Washington <joshwash@google.com>
>


Is this v3 ?

And I can see Joshua's ack, but I didn't see it explicitly, did you work
together in background for this?

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

* Re: [PATCH] net/gve: Fix TX/RX queue setup and stop
  2024-07-25 12:38   ` Ferruh Yigit
@ 2024-07-25 12:51     ` Tathagat Priyadarshi
  2024-07-25 13:09       ` Ferruh Yigit
  0 siblings, 1 reply; 13+ messages in thread
From: Tathagat Priyadarshi @ 2024-07-25 12:51 UTC (permalink / raw)
  To: Ferruh Yigit; +Cc: Joshua Washington, dev

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

Hi Ferruh,

It’s my mistake, there was a coding error in the first email and i did send
out v2, but it somehow didn't go through and i kept getting failure emails,
So i fixed and repushed it only to find out later that v2 was also updated.
So i had to defer the previous PR.

I have added Acked by Joshua, since the diff was originally shared with him
and he was okay with it.

Regards,
TP


On Thu, 25 Jul 2024 at 18:08, Ferruh Yigit <ferruh.yigit@amd.com> wrote:

> On 7/24/2024 2:35 PM, Tathagat Priyadarshi wrote:
> > The PR aims to update the TX/RQ queue setup/stop routines that are
> > unique to DQO, so that they may be called for instances that use the
> > DQO RDA format during dev start/stop.
> >
> > Signed-off-by: Tathagat Priyadarshi <tathagat.dpdk@gmail.com>
> > Acked-by: Joshua Washington <joshwash@google.com>
> >
>
>
> Is this v3 ?
>
> And I can see Joshua's ack, but I didn't see it explicitly, did you work
> together in background for this?
>

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

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

* Re: [PATCH] net/gve: Fix TX/RX queue setup and stop
  2024-07-25 12:51     ` Tathagat Priyadarshi
@ 2024-07-25 13:09       ` Ferruh Yigit
  0 siblings, 0 replies; 13+ messages in thread
From: Ferruh Yigit @ 2024-07-25 13:09 UTC (permalink / raw)
  To: Tathagat Priyadarshi; +Cc: Joshua Washington, dev

On 7/25/2024 1:51 PM, Tathagat Priyadarshi wrote:
> Hi Ferruh,
> 
> It’s my mistake, there was a coding error in the first email and i did
> send out v2, but it somehow didn't go through and i kept getting failure
> emails, So i fixed and repushed it only to find out later that v2 was
> also updated. So i had to defer the previous PR.
> 

So, this patch and v2 are same, if so lets continue with v2 one, as it
has proper versioning. Can you update patchwork accordingly?


btw, not really matters but PR is "Pull Request" and this is a
terminology mostly related to github based development. In mail list
based development we call it patch, or "patch series"/patchset (if
multiple patches are together).

> I have added Acked by Joshua, since the diff was originally shared with
> him and he was okay with it.
> 

Better to have this publicly, and explicitly so it is recorded.

@Joshua, if you are OK with patch, can you please ack/review?

> Regards,
> TP
> 
> 
> On Thu, 25 Jul 2024 at 18:08, Ferruh Yigit <ferruh.yigit@amd.com
> <mailto:ferruh.yigit@amd.com>> wrote:
> 
>     On 7/24/2024 2:35 PM, Tathagat Priyadarshi wrote:
>     > The PR aims to update the TX/RQ queue setup/stop routines that are
>     > unique to DQO, so that they may be called for instances that use the
>     > DQO RDA format during dev start/stop.
>     >
>     > Signed-off-by: Tathagat Priyadarshi <tathagat.dpdk@gmail.com
>     <mailto:tathagat.dpdk@gmail.com>>
>     > Acked-by: Joshua Washington <joshwash@google.com
>     <mailto:joshwash@google.com>>
>     >
> 
> 
>     Is this v3 ?
> 
>     And I can see Joshua's ack, but I didn't see it explicitly, did you work
>     together in background for this?
> 


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

* [PATCH v2] net/gve: Fix TX/RX queue setup and stop
  2024-07-24 13:35 ` [PATCH] " Tathagat Priyadarshi
  2024-07-25 12:38   ` Ferruh Yigit
@ 2024-07-25 13:31   ` Tathagat Priyadarshi
  2024-07-26 10:37     ` Tathagat Priyadarshi
  2024-07-31  5:26     ` Tathagat Priyadarshi
  1 sibling, 2 replies; 13+ messages in thread
From: Tathagat Priyadarshi @ 2024-07-25 13:31 UTC (permalink / raw)
  To: dev; +Cc: Tathagat Priyadarshi

The PR aims to update the TX/RQ queue setup/stop routines that are
unique to DQO, so that they may be called for instances that use the
DQO RDA format during dev start/stop

Signed-off-by: Tathagat Priyadarshi <tathagat.dpdk@gmail.com>
---
 drivers/net/gve/gve_ethdev.c | 29 +++++++++++++++++++++++------
 1 file changed, 23 insertions(+), 6 deletions(-)

diff --git a/drivers/net/gve/gve_ethdev.c b/drivers/net/gve/gve_ethdev.c
index ca92277..a20092e 100644
--- a/drivers/net/gve/gve_ethdev.c
+++ b/drivers/net/gve/gve_ethdev.c
@@ -288,11 +288,16 @@ struct gve_queue_page_list *
 		PMD_DRV_LOG(ERR, "Failed to create %u tx queues.", num_queues);
 		return ret;
 	}
-	for (i = 0; i < num_queues; i++)
-		if (gve_tx_queue_start(dev, i) != 0) {
+	for (i = 0; i < num_queues; i++) {
+		if (gve_is_gqi(priv))
+			ret = gve_tx_queue_start(dev, i);
+		else
+			ret = gve_tx_queue_start_dqo(dev, i);
+		if (ret != 0) {
 			PMD_DRV_LOG(ERR, "Fail to start Tx queue %d", i);
 			goto err_tx;
 		}
+	}
 
 	num_queues = dev->data->nb_rx_queues;
 	priv->rxqs = (struct gve_rx_queue **)dev->data->rx_queues;
@@ -315,9 +320,15 @@ struct gve_queue_page_list *
 	return 0;
 
 err_rx:
-	gve_stop_rx_queues(dev);
+	if (gve_is_gqi(priv))
+		gve_stop_rx_queues(dev);
+	else
+		gve_stop_rx_queues_dqo(dev);
 err_tx:
-	gve_stop_tx_queues(dev);
+	if (gve_is_gqi(priv))
+		gve_stop_tx_queues(dev);
+	else
+		gve_stop_tx_queues_dqo(dev);
 	return ret;
 }
 
@@ -362,10 +373,16 @@ struct gve_queue_page_list *
 static int
 gve_dev_stop(struct rte_eth_dev *dev)
 {
+	struct gve_priv *priv = dev->data->dev_private;
 	dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 
-	gve_stop_tx_queues(dev);
-	gve_stop_rx_queues(dev);
+	if (gve_is_gqi(priv)) {
+		gve_stop_tx_queues(dev);
+		gve_stop_rx_queues(dev);
+	} else {
+		gve_stop_tx_queues_dqo(dev);
+		gve_stop_rx_queues_dqo(dev);
+	}
 
 	dev->data->dev_started = 0;
 
-- 
1.8.3.1


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

* Re: [PATCH v2] net/gve: Fix TX/RX queue setup and stop
  2024-07-25 13:31   ` [PATCH v2] " Tathagat Priyadarshi
@ 2024-07-26 10:37     ` Tathagat Priyadarshi
  2024-07-26 11:33       ` Ferruh Yigit
  2024-07-31  5:26     ` Tathagat Priyadarshi
  1 sibling, 1 reply; 13+ messages in thread
From: Tathagat Priyadarshi @ 2024-07-26 10:37 UTC (permalink / raw)
  To: dev, Ferruh Yigit

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

Hi @Ferruh Yigit <ferruh.yigit@amd.com>

I have updated v2
https://patches.dpdk.org/project/dpdk/patch/1721914264-2394611-1-git-send-email-tathagat.dpdk@gmail.com/
and sent it in reply to the previous message id (
https://patches.dpdk.org/project/dpdk/patch/1721828129-2393364-1-git-send-email-tathagat.dpdk@gmail.com/)
, let me know if this is fine.



On Thu, Jul 25, 2024 at 6:59 PM Tathagat Priyadarshi <
tathagat.dpdk@gmail.com> wrote:

> The PR aims to update the TX/RQ queue setup/stop routines that are
> unique to DQO, so that they may be called for instances that use the
> DQO RDA format during dev start/stop
>
> Signed-off-by: Tathagat Priyadarshi <tathagat.dpdk@gmail.com>
> ---
>  drivers/net/gve/gve_ethdev.c | 29 +++++++++++++++++++++++------
>  1 file changed, 23 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/net/gve/gve_ethdev.c b/drivers/net/gve/gve_ethdev.c
> index ca92277..a20092e 100644
> --- a/drivers/net/gve/gve_ethdev.c
> +++ b/drivers/net/gve/gve_ethdev.c
> @@ -288,11 +288,16 @@ struct gve_queue_page_list *
>                 PMD_DRV_LOG(ERR, "Failed to create %u tx queues.",
> num_queues);
>                 return ret;
>         }
> -       for (i = 0; i < num_queues; i++)
> -               if (gve_tx_queue_start(dev, i) != 0) {
> +       for (i = 0; i < num_queues; i++) {
> +               if (gve_is_gqi(priv))
> +                       ret = gve_tx_queue_start(dev, i);
> +               else
> +                       ret = gve_tx_queue_start_dqo(dev, i);
> +               if (ret != 0) {
>                         PMD_DRV_LOG(ERR, "Fail to start Tx queue %d", i);
>                         goto err_tx;
>                 }
> +       }
>
>         num_queues = dev->data->nb_rx_queues;
>         priv->rxqs = (struct gve_rx_queue **)dev->data->rx_queues;
> @@ -315,9 +320,15 @@ struct gve_queue_page_list *
>         return 0;
>
>  err_rx:
> -       gve_stop_rx_queues(dev);
> +       if (gve_is_gqi(priv))
> +               gve_stop_rx_queues(dev);
> +       else
> +               gve_stop_rx_queues_dqo(dev);
>  err_tx:
> -       gve_stop_tx_queues(dev);
> +       if (gve_is_gqi(priv))
> +               gve_stop_tx_queues(dev);
> +       else
> +               gve_stop_tx_queues_dqo(dev);
>         return ret;
>  }
>
> @@ -362,10 +373,16 @@ struct gve_queue_page_list *
>  static int
>  gve_dev_stop(struct rte_eth_dev *dev)
>  {
> +       struct gve_priv *priv = dev->data->dev_private;
>         dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
>
> -       gve_stop_tx_queues(dev);
> -       gve_stop_rx_queues(dev);
> +       if (gve_is_gqi(priv)) {
> +               gve_stop_tx_queues(dev);
> +               gve_stop_rx_queues(dev);
> +       } else {
> +               gve_stop_tx_queues_dqo(dev);
> +               gve_stop_rx_queues_dqo(dev);
> +       }
>
>         dev->data->dev_started = 0;
>
> --
> 1.8.3.1
>
>

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

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

* Re: [PATCH v2] net/gve: Fix TX/RX queue setup and stop
  2024-07-26 10:37     ` Tathagat Priyadarshi
@ 2024-07-26 11:33       ` Ferruh Yigit
  2024-07-29 18:10         ` Joshua Washington
  2024-07-30 11:26         ` Ferruh Yigit
  0 siblings, 2 replies; 13+ messages in thread
From: Ferruh Yigit @ 2024-07-26 11:33 UTC (permalink / raw)
  To: Tathagat Priyadarshi, Joshua Washington; +Cc: dev

On 7/26/2024 11:37 AM, Tathagat Priyadarshi wrote:
> Hi @Ferruh Yigit <mailto:ferruh.yigit@amd.com> 
> 
> I have updated v2 https://patches.dpdk.org/project/dpdk/
> patch/1721914264-2394611-1-git-send-email-tathagat.dpdk@gmail.com/
> <https://patches.dpdk.org/project/dpdk/patch/1721914264-2394611-1-git-
> send-email-tathagat.dpdk@gmail.com/>
> and sent it in reply to the previous message id (https://
> patches.dpdk.org/project/dpdk/patch/1721828129-2393364-1-git-send-email-
> tathagat.dpdk@gmail.com/ <https://patches.dpdk.org/project/dpdk/
> patch/1721828129-2393364-1-git-send-email-tathagat.dpdk@gmail.com/
>>) , let me know if this is fine. 
> 
> 

Looks good, thanks.

I will wait for Joshua's ack.


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

* Re: [PATCH v2] net/gve: Fix TX/RX queue setup and stop
  2024-07-26 11:33       ` Ferruh Yigit
@ 2024-07-29 18:10         ` Joshua Washington
  2024-07-30 11:26         ` Ferruh Yigit
  1 sibling, 0 replies; 13+ messages in thread
From: Joshua Washington @ 2024-07-29 18:10 UTC (permalink / raw)
  To: Ferruh Yigit; +Cc: Tathagat Priyadarshi, dev

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

Acked-by: Joshua Washington <joshwash@google.com>

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

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

* Re: [PATCH v2] net/gve: Fix TX/RX queue setup and stop
  2024-07-26 11:33       ` Ferruh Yigit
  2024-07-29 18:10         ` Joshua Washington
@ 2024-07-30 11:26         ` Ferruh Yigit
  1 sibling, 0 replies; 13+ messages in thread
From: Ferruh Yigit @ 2024-07-30 11:26 UTC (permalink / raw)
  To: Tathagat Priyadarshi, Joshua Washington; +Cc: dev

On 7/26/2024 12:33 PM, Ferruh Yigit wrote:
> On 7/26/2024 11:37 AM, Tathagat Priyadarshi wrote:
>> Hi @Ferruh Yigit <mailto:ferruh.yigit@amd.com> 
>>
>> I have updated v2 https://patches.dpdk.org/project/dpdk/
>> patch/1721914264-2394611-1-git-send-email-tathagat.dpdk@gmail.com/
>> <https://patches.dpdk.org/project/dpdk/patch/1721914264-2394611-1-git-
>> send-email-tathagat.dpdk@gmail.com/>
>> and sent it in reply to the previous message id (https://
>> patches.dpdk.org/project/dpdk/patch/1721828129-2393364-1-git-send-email-
>> tathagat.dpdk@gmail.com/ <https://patches.dpdk.org/project/dpdk/
>> patch/1721828129-2393364-1-git-send-email-tathagat.dpdk@gmail.com/
>>> ) , let me know if this is fine. 
>>
>>
> 
> Looks good, thanks.
> 
> I will wait for Joshua's ack.
> 

Hi Tathagat, Joshua,

Can you please provide the fixes tag?

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

* [PATCH v2] net/gve: Fix TX/RX queue setup and stop
  2024-07-25 13:31   ` [PATCH v2] " Tathagat Priyadarshi
  2024-07-26 10:37     ` Tathagat Priyadarshi
@ 2024-07-31  5:26     ` Tathagat Priyadarshi
  2024-07-31 13:02       ` Ferruh Yigit
  1 sibling, 1 reply; 13+ messages in thread
From: Tathagat Priyadarshi @ 2024-07-31  5:26 UTC (permalink / raw)
  To: dev; +Cc: Tathagat Priyadarshi, stable

The PR aims to update the TX/RQ queue setup/stop routines that are
unique to DQO, so that they may be called for instances that use the
DQO RDA format during dev start/stop

Fixes: b044845 ("net/gve: support queue start/stop")
Cc: stable@dpdk.org

Signed-off-by: Tathagat Priyadarshi <tathagat.dpdk@gmail.com>
---
 drivers/net/gve/gve_ethdev.c | 29 +++++++++++++++++++++++------
 1 file changed, 23 insertions(+), 6 deletions(-)

diff --git a/drivers/net/gve/gve_ethdev.c b/drivers/net/gve/gve_ethdev.c
index ca92277..a20092e 100644
--- a/drivers/net/gve/gve_ethdev.c
+++ b/drivers/net/gve/gve_ethdev.c
@@ -288,11 +288,16 @@ struct gve_queue_page_list *
 		PMD_DRV_LOG(ERR, "Failed to create %u tx queues.", num_queues);
 		return ret;
 	}
-	for (i = 0; i < num_queues; i++)
-		if (gve_tx_queue_start(dev, i) != 0) {
+	for (i = 0; i < num_queues; i++) {
+		if (gve_is_gqi(priv))
+			ret = gve_tx_queue_start(dev, i);
+		else
+			ret = gve_tx_queue_start_dqo(dev, i);
+		if (ret != 0) {
 			PMD_DRV_LOG(ERR, "Fail to start Tx queue %d", i);
 			goto err_tx;
 		}
+	}
 
 	num_queues = dev->data->nb_rx_queues;
 	priv->rxqs = (struct gve_rx_queue **)dev->data->rx_queues;
@@ -315,9 +320,15 @@ struct gve_queue_page_list *
 	return 0;
 
 err_rx:
-	gve_stop_rx_queues(dev);
+	if (gve_is_gqi(priv))
+		gve_stop_rx_queues(dev);
+	else
+		gve_stop_rx_queues_dqo(dev);
 err_tx:
-	gve_stop_tx_queues(dev);
+	if (gve_is_gqi(priv))
+		gve_stop_tx_queues(dev);
+	else
+		gve_stop_tx_queues_dqo(dev);
 	return ret;
 }
 
@@ -362,10 +373,16 @@ struct gve_queue_page_list *
 static int
 gve_dev_stop(struct rte_eth_dev *dev)
 {
+	struct gve_priv *priv = dev->data->dev_private;
 	dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 
-	gve_stop_tx_queues(dev);
-	gve_stop_rx_queues(dev);
+	if (gve_is_gqi(priv)) {
+		gve_stop_tx_queues(dev);
+		gve_stop_rx_queues(dev);
+	} else {
+		gve_stop_tx_queues_dqo(dev);
+		gve_stop_rx_queues_dqo(dev);
+	}
 
 	dev->data->dev_started = 0;
 
-- 
1.8.3.1


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

* Re: [PATCH v2] net/gve: Fix TX/RX queue setup and stop
  2024-07-31  5:26     ` Tathagat Priyadarshi
@ 2024-07-31 13:02       ` Ferruh Yigit
  0 siblings, 0 replies; 13+ messages in thread
From: Ferruh Yigit @ 2024-07-31 13:02 UTC (permalink / raw)
  To: Tathagat Priyadarshi, dev; +Cc: stable, Joshua Washington

On 7/31/2024 6:26 AM, Tathagat Priyadarshi wrote:
> The PR aims to update the TX/RQ queue setup/stop routines that are
> unique to DQO, so that they may be called for instances that use the
> DQO RDA format during dev start/stop
> 
> Fixes: b044845 ("net/gve: support queue start/stop")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Tathagat Priyadarshi <tathagat.dpdk@gmail.com>
>

Moving Joshua's ack from other thread:

Acked-by: Joshua Washington <joshwash@google.com>

Applied to dpdk-next-net/main, thanks.


Please note, although I applied the fix to the next-net, probably it
won't able to make the v23.07 release, as we are already post -rc4
phase. In that case patch will be merged to main repo for next release.


And a few other operational notes:
- I have updated patch title and commit log slightly, please check the
updates. For next contribution, please run the
'./devtools/check-git-log.sh' tool

- Sending a new version of the patch, with same version tag is
confusing, also it will be confusing when tracing back from commit to
the mail list / patchwork later. So please increase version tag when a
new version sent.


Thanks,
ferruh

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

end of thread, other threads:[~2024-07-31 13:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-24  5:58 [PATCH] net/gve: Fix TX/RX queue setup and stop for DQO Tathagat Priyadarshi
2024-07-24  6:56 ` [PATCH v2] net/gve: Fix TX/RX queue setup and stop Tathagat Priyadarshi
2024-07-24 13:35 ` [PATCH] " Tathagat Priyadarshi
2024-07-25 12:38   ` Ferruh Yigit
2024-07-25 12:51     ` Tathagat Priyadarshi
2024-07-25 13:09       ` Ferruh Yigit
2024-07-25 13:31   ` [PATCH v2] " Tathagat Priyadarshi
2024-07-26 10:37     ` Tathagat Priyadarshi
2024-07-26 11:33       ` Ferruh Yigit
2024-07-29 18:10         ` Joshua Washington
2024-07-30 11:26         ` Ferruh Yigit
2024-07-31  5:26     ` Tathagat Priyadarshi
2024-07-31 13:02       ` Ferruh Yigit

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