Skip to contentSkip to conversation

net/mana: start secondary process queues by default

PATCH Applied [email protected] 2 participants 2 messages Jan 31, 2024 – Feb 7, 2024 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/mana: start secondary process queues by default

From: Long Li <[email protected]>

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.

---
 drivers/net/mana/mana.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/mana/mana.c +2 -2
index 58257c971e..386081f667 100644
@@ -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++;
Signature · 1 line
2.17.1
Applied
#1 lore raw
Quoted 6 lines · On 1/31/2024 12:46 AM, [email protected] wrote:

From: Long Li <[email protected]>

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.

Quoted 7 lines

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.

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