From patchwork Mon Mar 15 15:33:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Viktorin X-Patchwork-Id: 89149 X-Patchwork-Delegate: rasland@nvidia.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 3505CA054F; Mon, 15 Mar 2021 17:19:59 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CCB1C2426FD; Mon, 15 Mar 2021 17:19:17 +0100 (CET) Received: from office2.cesnet.cz (office2.cesnet.cz [195.113.144.244]) by mails.dpdk.org (Postfix) with ESMTP id 0711B40687 for ; Mon, 15 Mar 2021 16:34:01 +0100 (CET) Received: from dpdk-test.liberouter.org (mt-kou.liberouter.org [195.113.172.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by office2.cesnet.cz (Postfix) with ESMTPSA id ABFD4400064; Mon, 15 Mar 2021 16:34:01 +0100 (CET) From: Jan Viktorin To: dev@dpdk.org Cc: Jan Viktorin , Asaf Penso , Shahaf Shuler , Viacheslav Ovsiienko , Matan Azrad Date: Mon, 15 Mar 2021 15:33:57 +0000 Message-Id: <1615822438-10082-1-git-send-email-iviktorin@fit.vutbr.cz> X-Mailer: git-send-email 1.8.3.1 X-Mailman-Approved-At: Mon, 15 Mar 2021 17:19:06 +0100 Subject: [dpdk-dev] [PATCH 1/2] net/mlx5: fix typos 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: Jan Viktorin Signed-off-by: Jan Viktorin --- doc/guides/nics/mlx5.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index 7c50497fb..0a2dc3dee 100644 --- a/doc/guides/nics/mlx5.rst +++ b/doc/guides/nics/mlx5.rst @@ -1372,9 +1372,9 @@ the DPDK application. 4. Unbind the device (can be rebind after the switchdev mode):: - echo -n " /sys/bus/pci/drivers/mlx5_core/unbind + echo -n "" > /sys/bus/pci/drivers/mlx5_core/unbind -5. Enbale switchdev mode:: +5. Enable switchdev mode:: echo switchdev > /sys/class/net//compat/devlink/mode From patchwork Mon Mar 15 15:33:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Viktorin X-Patchwork-Id: 89150 X-Patchwork-Delegate: rasland@nvidia.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 03B7FA054F; Mon, 15 Mar 2021 17:20:08 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 01CC9242704; Mon, 15 Mar 2021 17:19:19 +0100 (CET) Received: from office2.cesnet.cz (office2.cesnet.cz [195.113.144.244]) by mails.dpdk.org (Postfix) with ESMTP id 1C59A4068C for ; Mon, 15 Mar 2021 16:34:02 +0100 (CET) Received: from dpdk-test.liberouter.org (mt-kou.liberouter.org [195.113.172.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by office2.cesnet.cz (Postfix) with ESMTPSA id D764D40006B; Mon, 15 Mar 2021 16:34:01 +0100 (CET) From: Jan Viktorin To: dev@dpdk.org Cc: Jan Viktorin , Asaf Penso , Shahaf Shuler , Viacheslav Ovsiienko , Matan Azrad Date: Mon, 15 Mar 2021 15:33:58 +0000 Message-Id: <1615822438-10082-2-git-send-email-iviktorin@fit.vutbr.cz> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1615822438-10082-1-git-send-email-iviktorin@fit.vutbr.cz> References: <1615822438-10082-1-git-send-email-iviktorin@fit.vutbr.cz> X-Mailman-Approved-At: Mon, 15 Mar 2021 17:19:06 +0100 Subject: [dpdk-dev] [PATCH 2/2] net/mlx5: avoid unbind step to enable switchdev mode 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: Jan Viktorin The step 4 is a contradiction. It advices to unbind the device from the mlx5_core which removes the associated system network interface (e.g. eth0). In the step 5, the same system network interface (e.g. eth0) is required to exist. Signed-off-by: Jan Viktorin --- doc/guides/nics/mlx5.rst | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index 0a2dc3dee..122d8e0fc 100644 --- a/doc/guides/nics/mlx5.rst +++ b/doc/guides/nics/mlx5.rst @@ -1370,11 +1370,7 @@ the DPDK application. echo /sys/class/net//device/sriov_numvfs -4. Unbind the device (can be rebind after the switchdev mode):: - - echo -n "" > /sys/bus/pci/drivers/mlx5_core/unbind - -5. Enable switchdev mode:: +4. Enable switchdev mode:: echo switchdev > /sys/class/net//compat/devlink/mode