From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40048.outbound.protection.outlook.com [40.107.4.48]) by dpdk.org (Postfix) with ESMTP id 760C5239 for ; Thu, 24 Jan 2019 12:14:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SA7jPsxJpVEtUk4MpLRbdMOkz2/ARKYR9wldbFnryZU=; b=FctRkUb0++lMqVU2FTnklQh1e4qtRh1t5MxUbgGqtvIDVn+26pekuzW3/saLnwt3dnO3d4jvx2V1xi73h1hGXplxFWx6BeJUFbS/d4AcRPdGfh394UsI6GvoVmT05suq84LJV5aZpklaY6LMurBNHE3fYAqQExoUVzIDhCpRgJk= Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com (52.133.47.29) by AM0PR0502MB3971.eurprd05.prod.outlook.com (52.133.40.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.26; Thu, 24 Jan 2019 11:14:53 +0000 Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::3c5d:79ff:4933:c7ea]) by AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::3c5d:79ff:4933:c7ea%6]) with mapi id 15.20.1558.016; Thu, 24 Jan 2019 11:14:53 +0000 From: Shahaf Shuler To: Dekel Peled , Yongseok Koh CC: "dev@dpdk.org" , Ori Kam , Dekel Peled Thread-Topic: [dpdk-dev] [PATCH] net/mlx5: allow port start with zero Rx queues Thread-Index: AQHUsiwc/FtmtiR0JEaEo8WnWgPppqW+R5MA Date: Thu, 24 Jan 2019 11:14:52 +0000 Message-ID: References: <1548145315-37820-1-git-send-email-dekelp@mellanox.com> In-Reply-To: <1548145315-37820-1-git-send-email-dekelp@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-originating-ip: [31.154.10.105] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM0PR0502MB3971; 6:0ekWszl5AurqLheOuTakIZgnSRT5np9FcKOkV7UZ6AVmmsug10TwQvtFtLR9rQjux6jsPnngScWVzn8WGMLMb2IjMqy4bS11ODTV70auYWqT4k4HItlOjvJ78RllVGy/kkN1vlhHT9KR7SXoq5DThbp76VJvhZVPcfmOkqQXQZpBI1rwrvjyUTi5yP8cdexR2ukkT0oJJNn2JFoqt1PWrgmhOlnOuHRmztz6F8w+rBWx5XQVril2vTvcYCEt/jI1sGK5yKA9mAjeOUmJCWaTL0/QjiIuabZn14LIOdriW8HVpeKcbhHrA37gmx34qQT+cDsiS0HDrTRk1+uD0XMmLYSMgKN/O77YsKdIyWzW/vS/6LwvUFt8CcwyYh1S2dm4riARVPXZm01McR6nkGP2HxAOYZ+VMeRRpQMPux8YFes3T3GvR1pYJE0nSBXWT6TRKwBynh2+RwSImk8WBwZn+g==; 5:BLVT7YjVuAw3t4n5LGO90ff0aGkbB6Pu7WE3De+DhaQ9wEIaSOjTVitC8QN6wznxvl6Rphy8fd7lfiBSuBqEApot+1lDMIP96w3Q8+Gfhu7q7PrMwJKWIYb0U9HASEp9xkXrY1EtiEAAVjUtrsK9yonOSuKp2e8jD8GTxlc9Edl+2iv6yTakXq1hM7AaE4oxBIRLNt7d/AsLdaTCoViiIQ==; 7:7M8q33F4ZCV/yIaU5MyFpKAfcgbhyJP3H+lMA10jF8zsHDtsZGDEKX7a8s/5WiJHDhIkxRGjd8Wsn664lla3O87SRSyMcLg+MgwmziZCjCWiXSfvi+YjLiaASpW1GAkTlKbAseMcQk801mq2cKgnKw== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 05d9ef42-8af4-4490-50a8-08d681ed29ec x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605077)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM0PR0502MB3971; x-ms-traffictypediagnostic: AM0PR0502MB3971: x-microsoft-antispam-prvs: x-forefront-prvs: 0927AA37C7 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(396003)(136003)(366004)(376002)(199004)(189003)(102836004)(71190400001)(86362001)(71200400001)(6506007)(110136005)(106356001)(4326008)(6116002)(25786009)(3846002)(54906003)(14454004)(478600001)(53936002)(316002)(105586002)(33656002)(446003)(476003)(11346002)(66066001)(26005)(9686003)(186003)(107886003)(6246003)(81156014)(81166006)(256004)(55016002)(14444005)(7736002)(6636002)(305945005)(74316002)(8936002)(229853002)(99286004)(2906002)(76176011)(68736007)(4744005)(6436002)(486006)(7696005)(97736004)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3971; H:AM0PR0502MB3795.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: yhk2B3ZrJ5z2nhA6MtaG4J8NSBDvnmXB2SezMv8PX9RQcg6SGUZcDeW6U9M4U+q4zj506aUEQVzFXl+p4bZAh0ZxhgszwBNjpc6M8vqy69rXarh8ZpGHk4XJdqSxgQ7bWAyjX5iEDev2Vr5MP+bYNR5iaHIFW/pL/AqMtK+o8ZSSK4DKF0Yjyakcn2L1p2dpWUFelcnHZ6J222b1TAxuBgVstEfM8OGGyFIP1Ogu4uIX7pVh0C/TxhYA6WTTYlY3Re7m7O6Lvib99PEPt0rjCYMdOl1vlKVQhN4b05sEnitEnkYYpzATt+Rggwbgp0o/Tk4bDIg5j6YcA7bizcNM0Pn87Q++t5jQM3Hs5M+RqlbRY2fELk5iZLFtrXaF8Uzt7euTOjg8xLmvBr3KMtJcU+eW8eid0n9VBAwOQEnsc3c= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 05d9ef42-8af4-4490-50a8-08d681ed29ec X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2019 11:14:52.8948 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3971 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: allow port start with zero Rx queues X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2019 11:14:54 -0000 Tuesday, January 22, 2019 10:22 AM, Dekel Peled: > Subject: [dpdk-dev] [PATCH] net/mlx5: allow port start with zero Rx queue= s >=20 > During port start, function mlx5_ctrl_flow_vlan() is called to create def= ault > ingress flow rules. > For specific use-cases, a port can be used for Tx only. > In such case, number of Rx queues can be set to 0 to save resources, henc= e > the default ingress rules are irrelevant. >=20 > This patch modifies function mlx5_ctrl_flow_vlan() to avoid the creation = of > the default ingress rules when number of Rx queues is 0. > It also includes update of validation functions for relevant actions, > mlx5_flow_validate_action_queue() and mlx5_flow_validate_action_rss(), > to prevent creation of flow rules with these actions when number of Rx > queues is 0. >=20 > Signed-off-by: Dekel Peled Applied to next-net-mlx, thanks.=20