From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6F230A0A0E; Mon, 10 May 2021 18:53:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 099AE40140; Mon, 10 May 2021 18:53:39 +0200 (CEST) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mails.dpdk.org (Postfix) with ESMTP id EE5E14003E for ; Mon, 10 May 2021 18:53:37 +0200 (CEST) Received: by mail-wr1-f54.google.com with SMTP id v12so17334495wrq.6 for ; Mon, 10 May 2021 09:53:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=l0cGodxNmNbw+FybeAoH9yLD/wOZ/FphoWADbfWwNfI=; b=VFI9nxW+tsj2Yc5i47VUt5qMoSSft37vZT8OofV74RiVaqH431u3mAzteliH+YNAHk QJ6ITN/9SIMrX2+pC+8ZLJk0tA8le0AZNcCrb4C7jz+BkUR3yXGumBYbm0asx87f067k BivNJ6oWJ8J6SYCszJ4j4NG5eEXi7L5jTvHq0t21L3fciWAoT6LuGi3uUTw7zff3A2+J 7M/H6sMDxF+nd4pYgZcxKiQeiAXMWKyIpXC7DjpgPNZCNpKcQP+ZV8U/v6kSS2XpfMcW 7LsRHRTxzPJbNXwuMSyMmG6q4o13PiduF5OPGq6YkDXsjYm+T1HxqRhL6pc1fSQRQSkJ KDxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=l0cGodxNmNbw+FybeAoH9yLD/wOZ/FphoWADbfWwNfI=; b=ebKPF/gG0J7zEj33BidR2li9nyl924AH4n0UAEgpviYKRB0rjfp/LnAkeY1yHlOwaT zmth+Huj2qPgV5OJMspTeQ8Z482CSG+KvS4k0oQWSBc9jp6evs7ZgVQ2jcW8AytcX/3h ZZSgmX3zXeU6r0AqRJMSVrpT5Le7Sh/GLUhZ/OuGiVWpzKwC7iAadACLImK2fbeXzgw3 hecp8nwA5MYBjPVE44aV4CsSx1tXuWVKZuo2fT/qtRbQMaTy65sye3ID80aPumOF4M+6 QsWfWmbXQ+hoRe0Dt4GOdh5qDZKkVFCet7cVujCNaYt1V8N/wvrDvFbOeysfc0dqlm8g 8sDg== X-Gm-Message-State: AOAM531risEn/bBmLrouG3yFUjqPW3x6cLgHlpox+f7s1buad0I1pZXL mkvyaDyrYmpW5ghcP3N3OndTNG625kaG6VjpDOlB2F2YiCmUK9QSh7yTf0pyjPPeayWpPD1/nco P7LJ7lSEFllRq6Da4FhwznNeHRykWhDZ+0e0oHYJpDfVnVTfcRWc9uNh8VfShwbLh X-Google-Smtp-Source: ABdhPJwdszC2XSpNKtH8QpzI178uw09gBjDRl+iEz3SWOTbQiwESmR7z7KJv22xBYn+qmjgKy9fi9A== X-Received: by 2002:adf:f6c5:: with SMTP id y5mr32532604wrp.121.1620665617510; Mon, 10 May 2021 09:53:37 -0700 (PDT) Received: from localhost.localdomain ([102.132.224.154]) by smtp.gmail.com with ESMTPSA id a21sm42852wmj.34.2021.05.10.09.53.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 May 2021 09:53:37 -0700 (PDT) From: Heinrich Kuhn To: dev@dpdk.org Cc: "Chaoyong.He" , Heinrich Kuhn , Simon Horman Date: Mon, 10 May 2021 18:53:19 +0200 Message-Id: <20210510165319.9153-1-heinrich.kuhn@netronome.com> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] examples/l3fwd: change mq-mode on single queue devices 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: "Chaoyong.He" Set the Rx multi-queue mode to NONE when configuring a port that is associated with hardware that only supports a single Rx queue. Signed-off-by: Chaoyong He Signed-off-by: Heinrich Kuhn Signed-off-by: Simon Horman --- examples/l3fwd/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c index bb49e5faf..87b638ac0 100644 --- a/examples/l3fwd/main.c +++ b/examples/l3fwd/main.c @@ -953,6 +953,10 @@ l3fwd_poll_resource_setup(void) local_port_conf.rx_adv_conf.rss_conf.rss_hf &= dev_info.flow_type_rss_offloads; + + if (dev_info.max_rx_queues == 1) + local_port_conf.rxmode.mq_mode = ETH_MQ_RX_NONE; + if (local_port_conf.rx_adv_conf.rss_conf.rss_hf != port_conf.rx_adv_conf.rss_conf.rss_hf) { printf("Port %u modified RSS hash function based on hardware support," -- 2.30.1 (Apple Git-130)