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 E9543A0A0C; Thu, 15 Jul 2021 16:51:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4BB3B4014D; Thu, 15 Jul 2021 16:51:06 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2086.outbound.protection.outlook.com [40.107.93.86]) by mails.dpdk.org (Postfix) with ESMTP id 8A78340143 for ; Thu, 15 Jul 2021 16:51:05 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VVTq9oV1zqnzOgYYX5L5wwhFE3uRYcaOmkzc+QNKjC+iiyoQ83rWurop15bGlbJ3Hu7PWkOn1pd7t+81ow7s0DCHY7R3mvWpBf59wJFZ2RBztkj98NGW7SDdYYjB7/DH0vN2B5c7Khx7OwA1owZWJdkJG1f/+HLW8NkTU/U1fVcBVbiTDrhgqKjDdGnDZaiXUWmfD4M8GV4op1ibJS5IxxlAM6xoBUWdaR38tHiJ3VPmK695aXCCSR5AAU7c3gzQ0kGZSB5KZIPHqABcgIdXvKpytDvbfvd3LOh5Z1SYTlLdG5DaW5tZdEbCRsLAkJS0JxKmvo0cFhShVb1SFN2MIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1KALc0FDE9nMBmLTm0ccf/RoAZnu7JpoLE0G7fZ0bnU=; b=ZQsBqkoTGhYjpaW+2R0NyEt55XJQX4pvLpVl4TAmwrHueI+GjjZFXCMXRvtQFpIBZIHJExXDqlbT4pFyB8CfvbzqTwp8sQcVWIZ/ToUto/soRI7BwnKvUW0r3RANtbt62YfyfSeLhR+/0ua2z9EvrbLZKEjNAOVOoBIMxuEUCFlXT4xnedDwqxwGd7ELwQYLl0vfjHAqhk+3wuZbkVv75tjJOpWBs1fx3KDuEOVtcBM3ZS8vBNOxiL2ul3swCJOoq02t1mJJXBCMmqAf0rd/kLJuF1/xEdHdShBgBMQK2ccviDWPUwoLHo8LkM7urwkol2LbwJljqDHl4PY+INFb+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1KALc0FDE9nMBmLTm0ccf/RoAZnu7JpoLE0G7fZ0bnU=; b=MNKlTxIVq2rNSPDVZ1hyqzjzjPyz6QtElIaHOeakB/eOFRnHefVxl/1B8sMd60zS1jpqCEkrylUjfFrp6+FiUBZry85FEg3uhu8iKruedWD77sr+En9Gl+z9v0bvRbBio775nCj4/jmK6BhKFhTpgzSSWq5k/28KpV+T4EF7GDdCvD4Ui2kx0zG0bKaxkgKF0ItIqItKRg6K95hBvKqpKymsi2VnPHblhyC/6EvOkKxLdNTm8X3k8eNtJ33sxlBBkClYM1/wqdeG1fGJvXyDeP3/SePoayIZe9aWd6bRz12jqL7hut72D4V19Nx/4iT5idy2Z/Kr9/IrWEgqyTVB1w== Received: from DM4PR12MB5054.namprd12.prod.outlook.com (2603:10b6:5:389::24) by DM4PR12MB5168.namprd12.prod.outlook.com (2603:10b6:5:397::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21; Thu, 15 Jul 2021 14:51:04 +0000 Received: from DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::584f:2720:1100:666a]) by DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::584f:2720:1100:666a%4]) with mapi id 15.20.4331.023; Thu, 15 Jul 2021 14:51:04 +0000 From: Raslan Darawsheh To: Jan Viktorin , "dev@dpdk.org" CC: Jan Viktorin , Asaf Penso , Shahaf Shuler , Slava Ovsiienko , Matan Azrad Thread-Topic: [dpdk-dev] [PATCH 2/2] net/mlx5: avoid unbind step to enable switchdev mode Thread-Index: AQHXGbdLcj7txfnp20qSlCXGYWIJ/6tE3h/Q Date: Thu, 15 Jul 2021 14:51:04 +0000 Message-ID: References: <1615822438-10082-1-git-send-email-iviktorin@fit.vutbr.cz> <1615822438-10082-2-git-send-email-iviktorin@fit.vutbr.cz> In-Reply-To: <1615822438-10082-2-git-send-email-iviktorin@fit.vutbr.cz> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: fit.vutbr.cz; dkim=none (message not signed) header.d=none;fit.vutbr.cz; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7e538fdb-fb86-48be-1a8d-08d9479ff886 x-ms-traffictypediagnostic: DM4PR12MB5168: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2803; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 1truT78oE/hNNke8yUnXO/y4JClNlAuRnh5O9RLhlZB6lhkKHJ1LK1jzD11Wt5MTg8tfXG2jVwWjsEOoZIr4B3bjqO4zR/xbUVd8mVwasvTVAZYkoP8dBdk/dyKevUH6XOLlz9cnK1NTPOcUf4tBdXnSTCBs88YEcLNQzqpVV8rSDQfTnCsTRkOJxmoX5cZpo9mxjiRRXLo3+dJfA7VZFhK492p1Jqmu7kDfektfsEyYDyLtAoh+GpzEWUdDETl5lfmoft2dOmk1aJ+jvdWKmkjMn/+wHaWiD0ve8VTsI3EE1WM7Jp0AsvV7Nt8A/65mJnFKlSJOoafLNuOFfp9VsMY/BeIJVJRVsNc05TDWpWDmxuhr/avJtNWQn125NVffzoWWTmhKZOEWNyxYvRyDxjMhYOeW4GH1BzRnw+uo218klDRW6ueqXDhY884u5rAuiBjOBbx+LHQtgWpHMdzG9KTPt1Jq9gJc+/DomiUvdW09CVZaQcKSTW5C8mCxjRtLsvXlObUNO1kU/a0OKGwIDmB9Vo8qcZvHNx0qLcuR9wxBQGQXnMqC3hHHlapqHxzTKdFsJg15rinb/IQsQQxSlf7H7EZCgTn96YERL9NKarQIu+V/6FSolAMJ2xa0/bpmSqIUAUepvKXw3/+V3ZGuro8saRmCC+H4pGXzL6ijLdvxRoQws0QtBrK8lZynK0gle7su3CaYlbhVcJMZ4lMkiw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5054.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(376002)(366004)(39860400002)(136003)(346002)(52536014)(76116006)(66946007)(8676002)(66476007)(4326008)(478600001)(186003)(5660300002)(26005)(33656002)(71200400001)(8936002)(107886003)(66446008)(64756008)(66556008)(2906002)(38100700002)(316002)(7696005)(6506007)(53546011)(122000001)(9686003)(83380400001)(110136005)(55016002)(54906003)(86362001)(38070700004); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?LfmZlvKW7LlKBwOMGRTsgKuRxskv8GWj1MH9E6IMChxwpuls8L098jJkm9kS?= =?us-ascii?Q?x/ijbbHfORrBUg6EybTWwDncXLiQNZ242s4SzsubBXJ1cqAnWaxY92hi+jrr?= =?us-ascii?Q?y97JhznAIkUci6Vx5sQUKdDgNu9tmIArFWZpjWYQwcSK5AOSRt0Xlch3KA5w?= =?us-ascii?Q?wLs2R8hPMa1Jl9wM9PJlCJgPUNcE1oNj75Fn1Yc2Q7+43RXPx8waActyQ5jJ?= =?us-ascii?Q?bM93+l+KD2N/llMcSm7QdleRxazbiZj1Zox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QIg0prZbE7HdU8W79kC6tv3IsuhqTnwz6Kr3D5IHu5rMKfV1wnKuDh+WGS?= =?us-ascii?Q?/YA9FPUZxwo3yOzhASXXfIzlTZAj57HgqeSyQ2z2cf5zfySELSJKHGiLMADv?= =?us-ascii?Q?ughha2EWFbBwlmcvl3O9dUaS/iQUhDzL3wR8qkRCrNF0ozAILa7XeK1/oN8/?= =?us-ascii?Q?dmsz67TpkROjaD+nGy8n/xWj?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5054.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7e538fdb-fb86-48be-1a8d-08d9479ff886 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jul 2021 14:51:04.3679 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +uwclDpqByus6UzFCMMN41PVZAQOhXnZKFbISm40B2TvAtp6OAaa1IJMbpOzZptcIF+unYs/VyFwhHHWJrTE9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5168 Subject: Re: [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" Hi, Can you kindly update on the status of this series? Kindest regards, Raslan Darawsheh > -----Original Message----- > From: dev On Behalf Of Jan Viktorin > Sent: Monday, March 15, 2021 5:34 PM > To: dev@dpdk.org > Cc: Jan Viktorin ; Asaf Penso ; > Shahaf Shuler ; Slava Ovsiienko > ; Matan Azrad > Subject: [dpdk-dev] [PATCH 2/2] net/mlx5: avoid unbind step to enable > switchdev mode >=20 > From: Jan Viktorin >=20 > 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. >=20 > Signed-off-by: Jan Viktorin > --- > doc/guides/nics/mlx5.rst | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) >=20 > 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. >=20 > echo /sys/class/net//device/sriov_numv= fs >=20 > -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:: >=20 > echo switchdev > /sys/class/net//compat/devlink/mode >=20 > -- > 2.30.1