* [PATCH] net/mana: start secondary process queues by default
@ 2024-01-31 0:46 longli
2024-02-07 10:58 ` Ferruh Yigit
0 siblings, 1 reply; 2+ messages in thread
From: longli @ 2024-01-31 0:46 UTC (permalink / raw)
To: Ferruh Yigit, Andrew Rybchenko; +Cc: dev, Long Li
From: Long Li <longli@microsoft.com>
Secondary processes are started after primary, and in most cases with
the device already started. Make them being able to process packets as
soon as they start.
This also works with the case where the primary process decides to start
the device at a later time after secondary processes have started. The
application should guarantee not to send any packets before the device is
started.
Signed-off-by: Long Li <longli@microsoft.com>
---
drivers/net/mana/mana.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/mana/mana.c b/drivers/net/mana/mana.c
index 58257c971e..386081f667 100644
--- a/drivers/net/mana/mana.c
+++ b/drivers/net/mana/mana.c
@@ -1312,8 +1312,8 @@ mana_probe_port(struct ibv_device *ibdev, struct ibv_device_attr_ex *dev_attr,
/* fd is no not used after mapping doorbell */
close(fd);
- eth_dev->tx_pkt_burst = mana_tx_burst_removed;
- eth_dev->rx_pkt_burst = mana_rx_burst_removed;
+ eth_dev->tx_pkt_burst = mana_tx_burst;
+ eth_dev->rx_pkt_burst = mana_rx_burst;
rte_spinlock_lock(&mana_shared_data->lock);
mana_shared_data->secondary_cnt++;
--
2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] net/mana: start secondary process queues by default
2024-01-31 0:46 [PATCH] net/mana: start secondary process queues by default longli
@ 2024-02-07 10:58 ` Ferruh Yigit
0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2024-02-07 10:58 UTC (permalink / raw)
To: longli, Andrew Rybchenko; +Cc: dev
On 1/31/2024 12:46 AM, longli@linuxonhyperv.com wrote:
> From: Long Li <longli@microsoft.com>
>
> Secondary processes are started after primary, and in most cases with
> the device already started. Make them being able to process packets as
> soon as they start.
>
> This also works with the case where the primary process decides to start
> the device at a later time after secondary processes have started. The
> application should guarantee not to send any packets before the device is
> started.
>
> Signed-off-by: Long Li <longli@microsoft.com>
>
Applied to dpdk-next-net/main, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-07 10:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-31 0:46 [PATCH] net/mana: start secondary process queues by default longli
2024-02-07 10:58 ` 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).