From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 98FFAA0577; Mon, 13 Apr 2020 20:50:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5FF062A62; Mon, 13 Apr 2020 20:50:40 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60057.outbound.protection.outlook.com [40.107.6.57]) by dpdk.org (Postfix) with ESMTP id 52CB8FFA; Mon, 13 Apr 2020 20:50:39 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aDE2GPyK1Kl4LeppS6Yid6Jih8Deu5j+OjyeVgZNcLeTcQzsN4652dwTjyZlz9AcF1d++DnXT07eMIleSSd5dEGpLE4JSMQxpd3xrEWLg+NFd0KdCC08Vtp4dwaFyBkqMk7WqyztdmyiGBMx7EubCIQxO1q3BLFWR3N1oQ1Npe97cxP6ZxvGi3Zj8Wunujl40zCr2yDELQhq0pe9m4BjznGrR21Hw1tSOyzGyLt+uYFk3Lic5jFCcHl4yUZBhWjuI00A4pUxzUnWdvDLhE8w9j3Dmq9BdlWEyJECXMzuQN6LcbijJed542MsGB002KUBnbRKy28ZNx1+8sGuNYzqbw== 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=SI9mVe/rGAlcCsheaYIXJKNvSc36fSUiS71gDkdMlKI=; b=ISCN+MtLHFIgSwDubY65zmaGhGYLc9SsX6Prsc/z3N6Ws4QxlFxbBu82C7MtD0p9cJn+wEXH6YXuneVqbC9J1IjR6y12v4gcIj/+2cLUcQXaiquUZoe33Srj2k6/hhTeD0VXJH77gkjO55qsikXP6vMP2YTCld/q3pvJXrT8a+S0ollxB1nD02xAVDKCm8NyHlLWACxiG5CZW1N2GuhrQHjVdA+V0+sl7yXl/W9AV9Kc7+tJibQL3m9UhIKQUC6nOyOQ5025O7nv+92qZKGLStIWT7D6TQmSJviwFfZ2q55TTH85BvAGLsvHC8yZ/vXClxtwjdTP3TRiH6ghQEBr7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none 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=SI9mVe/rGAlcCsheaYIXJKNvSc36fSUiS71gDkdMlKI=; b=scQTkTZWKSv8WM6DfMxo0G0CWeWb1Ay+v8FBujvwOgWs70ONhmHOxZTeU1+8Xl+kzgr9nJmTyzkNHeXVdi9h/WfXmaHIHASCIymAeBUF1FNsNEZ0HtmXXbCzD/1j2cn90zRGs8M1QBbaKJg3CZqFeT0h5CTnnlgFeAJ71xLLzhA= Received: from AM0PR05MB4561.eurprd05.prod.outlook.com (2603:10a6:208:ad::20) by AM0PR05MB6353.eurprd05.prod.outlook.com (2603:10a6:208:13b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.26; Mon, 13 Apr 2020 18:50:37 +0000 Received: from AM0PR05MB4561.eurprd05.prod.outlook.com ([fe80::20a9:df2a:69cf:1494]) by AM0PR05MB4561.eurprd05.prod.outlook.com ([fe80::20a9:df2a:69cf:1494%6]) with mapi id 15.20.2900.028; Mon, 13 Apr 2020 18:50:36 +0000 From: Alexander Kozyrev To: Mohsin Shaikh , "dev@dpdk.org" CC: "stable@dpdk.org" , Slava Ovsiienko , Shiri Kuzin Thread-Topic: [PATCH v2] net/mlx5: Allow configuring mlx5 port for TX only Thread-Index: AQHWEaJ6gSsGI8ouSkmhQJG+V5kDfKh3Y6dQ Date: Mon, 13 Apr 2020 18:50:36 +0000 Message-ID: References: <1586783744-8962-1-git-send-email-mohsinshaikh@niometrics.com> <1586789242-9984-1-git-send-email-mohsinshaikh@niometrics.com> In-Reply-To: <1586789242-9984-1-git-send-email-mohsinshaikh@niometrics.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=akozyrev@mellanox.com; x-originating-ip: [2607:fea8:e380:d8e0:893d:db8c:426f:eb40] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 6a07bc1e-8da6-444f-27eb-08d7dfdb8e06 x-ms-traffictypediagnostic: AM0PR05MB6353:|AM0PR05MB6353: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 037291602B x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB4561.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(366004)(39860400002)(136003)(346002)(376002)(396003)(66946007)(110136005)(52536014)(2906002)(76116006)(9686003)(316002)(53546011)(7696005)(6506007)(66446008)(64756008)(66556008)(66476007)(33656002)(478600001)(54906003)(55016002)(86362001)(8936002)(107886003)(71200400001)(8676002)(81156014)(5660300002)(186003)(4326008); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kcNVgAJ+jdslNjVedME8qxw16tGBNppyYvO8Y0bJx/2RBO9X0XkPBijttudTrUWc5+0JVwZ/l8aOTQbY5k/m9O8iMVIQxsOndk23Zew5f+6WiiIlNkweZEXPYGVbf+WHBcYve4JRU10AjEhSz11Vo/s3n4T1a52M8vARD6h5N9eemM5A7aOq1EqOVAKnpYuaY2cGZ08/O/2LaqK0epWxJ8VWRIq04LAEPw/mLyxqbxiwIz4dzKXnLRz2B3KLJ02Ihm2/dbsIS1wxPGL1VSi8iV6OoovM6IGAiGQP+wi6Yju+7WYGF4WRz91sYz5mPcP/UFrk+T/8lF4PLvTxZSsPCMoJm6XtsK+X/1ddA0igLGbmUObO7tT7WBdHDsS7v064dwGgiTyg9xay1VoQdyDnf5zhYR6AM6iSFis82Wa8Rldrs30Ay540+FSDziVKzWn1 x-ms-exchange-antispam-messagedata: b9p9uJrBotZRXJ1gxF48rWsDHzIsYEFy9XyMnxHC5LCpBKJkV/E74lPCACoJu2g6UPvAsIYdZWATmP7nspbVp2C//ZYiywGR6CeU3u7f5GiM/UMc6GI/knR2GXh4N+nKbFm1tDR/3qZ3UGf82UxbIxVQUp/7TUBXYg3THduw7PpXIOLJjQ1da22GktI+Se69HFCIVqyO7J7hDnPijP+WnQ== 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: 6a07bc1e-8da6-444f-27eb-08d7dfdb8e06 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Apr 2020 18:50:36.8535 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: iNFbcACzAEzovBflAipWc/7ObL73buVVbBSlIXIkzLjVOdLQ3WU0oFUvQFyXhbgE05oQoP0znRanYDSLOHSqTA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB6353 Subject: Re: [dpdk-dev] [PATCH v2] net/mlx5: Allow configuring mlx5 port for TX only 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Mohsin, the problem you described has been already fixed by 606d690 ("ne= t/mlx5: fix running without Rx queue"). I guess you see the issue on 19.11 branch, right? Could you please apply th= is patch and verify that it fixes the issue for you? Regards, Alex > -----Original Message----- > From: Mohsin Shaikh > Sent: Monday, April 13, 2020 10:47 > To: dev@dpdk.org > Cc: stable@dpdk.org; Alexander Kozyrev ; Mohsin > Shaikh > Subject: [PATCH v2] net/mlx5: Allow configuring mlx5 port for TX only >=20 > Configuring mlx5 port with 0 rx rings and 1 or more tx rings causes follo= wing > error in dev_start: > net_mlx5: port 1 cannot allocate RSS queue list (0) > net_mlx5: port 1 reta config failed: Cannot allocate memory Skip > mlx5_dev_configure_rss_reta() when there are no rx rings. >=20 > Cc: stable@dpdk.org > Signed-off-by: Mohsin Shaikh > --- >=20 > v2: Fix coding style issue COMMIT_LOG_LONG_LINE >=20 > --- > drivers/net/mlx5/mlx5_ethdev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethde= v.c > index d7d3bc7..1d443c1 100644 > --- a/drivers/net/mlx5/mlx5_ethdev.c > +++ b/drivers/net/mlx5/mlx5_ethdev.c > @@ -463,7 +463,7 @@ struct ethtool_link_settings { > unsigned int *rss_queue_arr =3D NULL; > unsigned int rss_queue_n =3D 0; >=20 > - if (priv->skip_default_rss_reta) > + if (priv->skip_default_rss_reta || !rxqs_n) > return ret; > rss_queue_arr =3D rte_malloc("", rxqs_n * sizeof(unsigned int), 0); > if (!rss_queue_arr) { > -- > 1.8.3.1