From patchwork Wed Jan 31 00:46:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Long Li X-Patchwork-Id: 136226 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5D0FD43A13; Wed, 31 Jan 2024 01:46:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3F1C340269; Wed, 31 Jan 2024 01:46:43 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 0DB0E40266 for ; Wed, 31 Jan 2024 01:46:42 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1004) id 626A32057C0D; Tue, 30 Jan 2024 16:46:41 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 626A32057C0D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxonhyperv.com; s=default; t=1706662001; bh=9IKBPtbY1YIeWMTliEYmyARk5ib8SEalyYCovoOTe7g=; h=From:To:Cc:Subject:Date:Reply-To:From; b=TAaWys81eJfFEXrApvSCGE5Zlkr14LwP0qywYM03i5l2hjmdGjTmggCD8x85nHCiN kK/s176Ed5W/jg4dsSYdkZ6u3XsRE8jGysq5BH8L2Q+bcqI7Z7Xk1ZyKVHKqnE91Ia 9xgvwBYSlt4+korCSkkW00jukr/TWz2deZPEvsK8= From: longli@linuxonhyperv.com To: Ferruh Yigit , Andrew Rybchenko Cc: dev@dpdk.org, Long Li Subject: [PATCH] net/mana: start secondary process queues by default Date: Tue, 30 Jan 2024 16:46:33 -0800 Message-Id: <1706661993-5636-1-git-send-email-longli@linuxonhyperv.com> X-Mailer: git-send-email 1.8.3.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: longli@microsoft.com Errors-To: dev-bounces@dpdk.org From: Long Li 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 --- 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++;