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 53EE9A04F6; Wed, 11 Dec 2019 10:59:26 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 842B81BDFD; Wed, 11 Dec 2019 10:59:25 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 3DC6423D for ; Wed, 11 Dec 2019 10:59:24 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Dec 2019 01:59:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,301,1571727600"; d="scan'208";a="264821633" Received: from orsmsx103.amr.corp.intel.com ([10.22.225.130]) by FMSMGA003.fm.intel.com with ESMTP; 11 Dec 2019 01:59:22 -0800 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX103.amr.corp.intel.com (10.22.225.130) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 11 Dec 2019 01:59:22 -0800 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 11 Dec 2019 01:59:21 -0800 Received: from ORSEDG001.ED.cps.intel.com (10.7.248.4) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 11 Dec 2019 01:59:21 -0800 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (104.47.38.57) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 11 Dec 2019 01:59:21 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XaLLfiQdREbIzAsJe2IphgqiIDHn2amhjBOvr63nWf/dXUxx0RFQJX6P8xmOckJZ/4R1GAVms35oSAwT89dLDGj+6iBneK5gIP0Zzl1Y2jsn0uO+TNKtrAvC6aEVIPt4H4v6If2p7tGwJLrJKxpMSd4CqhB91wZotR8zQffxbriosukJQOpFi6Gcghk59nK9jqJL9Yl8yDUkkGN1zdRGvQO8eoiocTnRozlczeQaU3N2w2/t7/JZzbOO8LvkPk+47t99+UcsxNkxpyNNLNOIzBr8QSULGLn/QD8cYI9mo2hMCDCQO7dTTI9T9mJ7gazn5KPpQoW2vOvWklZ120ZUDw== 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=48+tF/o4zDwprrVjJkIqcnDS+pBYaqcd+j/CVzvPf7Q=; b=fZsIChuHv65UWvF08793b0cyyOAV0fauHfYrxD/vboktzVcj3d2ZelpPowccfXHQU3RdtBNZCh6zfrvw6eHrU5y8ghbtrOE5Gt+PqhRfOyiAdoYIaNqtLJtcA6fffII1qxB+WS0zgWDqRLUca3ajGeV64nY4ogAj1cD3hcvTKjTX+1mog39YuM0RBXgS4x7oWwC+Rkd+yay83KMqLPAFwK4wrY2saaQKqJO7HOLtQ2rcUYzS09jIowUM3O8W79UCVgRrCznJlEJI0CtN99f28xBxA1XXjS2RBhzA+NWcRR051Dt9WCP4rn9BJg0p0y/jYBXCMSWjoUFVxFM8Dd4A1Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=48+tF/o4zDwprrVjJkIqcnDS+pBYaqcd+j/CVzvPf7Q=; b=khJoJebfxjbX4HOabUo63AkEDMQEXnaUUmo8uVozwNQwvV+SsVaGlyTG/YwJM747l9v0msosA1zzZ3Dwk4XqR2Xm3ZkzLrFHS9VUIsHLJZWYM8A621ZFnpNEKvd4rO4JmJlt1l3ZvB2zFRRVQoLoAPT415j/dqrdC9DKpqR7iEM= Received: from BN7PR11MB2547.namprd11.prod.outlook.com (52.135.255.146) by BN7PR11MB2850.namprd11.prod.outlook.com (52.135.245.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2516.14; Wed, 11 Dec 2019 09:59:20 +0000 Received: from BN7PR11MB2547.namprd11.prod.outlook.com ([fe80::5c82:bb6a:d0f0:b802]) by BN7PR11MB2547.namprd11.prod.outlook.com ([fe80::5c82:bb6a:d0f0:b802%6]) with mapi id 15.20.2516.018; Wed, 11 Dec 2019 09:59:19 +0000 From: "Ananyev, Konstantin" To: Hemant Agrawal , "dev@dpdk.org" CC: Jun Yang Thread-Topic: [dpdk-dev] [PATCH] app/testpmd: support unequal number of RXQ and TXQ Thread-Index: AQHVr+S1yepZQVnEiUWvuuEY96eCeae0s1Ag Date: Wed, 11 Dec 2019 09:59:19 +0000 Message-ID: References: <20191211053009.14906-1-hemant.agrawal@nxp.com> In-Reply-To: <20191211053009.14906-1-hemant.agrawal@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTg0ZjlmYmYtYWE0ZC00YjZkLWI4YWEtMDQ4MTNjOGRlNTMyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoicmV4dk5BSzdtZWdoaUMwUzl4XC9QT1hwVkJ3dlBOeUtIelF5VTVPM1FqUlNIeDhGdGFTeWNnXC9tZ3RYd0l2RjU3In0= dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 x-ctpclassification: CTP_NT authentication-results: spf=none (sender IP is ) smtp.mailfrom=konstantin.ananyev@intel.com; x-originating-ip: [192.198.151.167] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c6763d55-9bb2-41a9-5d76-08d77e20caa2 x-ms-traffictypediagnostic: BN7PR11MB2850: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4714; x-forefront-prvs: 024847EE92 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(366004)(396003)(136003)(346002)(376002)(13464003)(189003)(199004)(76116006)(52536014)(66556008)(66476007)(5660300002)(66946007)(66446008)(64756008)(8936002)(81166006)(316002)(81156014)(86362001)(7696005)(110136005)(2906002)(55016002)(186003)(71200400001)(6506007)(26005)(478600001)(53546011)(9686003)(4326008)(33656002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN7PR11MB2850; H:BN7PR11MB2547.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ykh1h7rZ4r4lbkepICmCnYhADHLasqDafe979BEHyLX8/Hs6dDf2WrmwloOhB470nfHux6RKHWZju5y4yRE+GJOGnkGDfQ1AcTOHRV6IEhs/FTjdvsnZ9nptEvTYVEvuaSaFkkZTk2ZqLR6H0uWVwr6VZoiIyHIy8VRLYe2UGUBX6qC9LZtP/GwtPkpNOGUCcb3TznNjMKYVu+AsPVdEany/jlQvQ/1ev6rgJegG6cwePRRIrYOiejubSTY3ovan5oADGPQx3nUAtE5jVKlo3LDxirjXVOcJvkwoddqQzLQs3ZT7DbBTOrgEJJMffikEXVS0alps8CTH0/EjjtgD6ZkTs2dpNg0+zEBvOuNXkhtYvnRy9PLZYCW4NU2zSMbRN5tL69GZ74MfXlA4YCTWiErU57DKi3ba0QG6tkFhwJiu8oVbxtGBrzoOCLJAprE2M5/WDVSmomddqWzMxuRZbdDEOYAksWJuuOvHy/8OnlE0PSYuvdRIbLvfJA5QhIl0 x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: c6763d55-9bb2-41a9-5d76-08d77e20caa2 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Dec 2019 09:59:19.8137 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: UPMasaFL6KUZW4IkeewufG7qRX43Vx7Zm2gRR4bW7uWKpmCafPosspcIIM/oqyPrzQb0NghAOSoALEFI4Nyk62Y5ELDj3+/zYsBuktgMpn0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR11MB2850 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] app/testpmd: support unequal number of RXQ and TXQ 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" > -----Original Message----- > From: dev On Behalf Of Hemant Agrawal > Sent: Wednesday, December 11, 2019 5:30 AM > To: dev@dpdk.org > Cc: Jun Yang > Subject: [dpdk-dev] [PATCH] app/testpmd: support unequal number of RXQ an= d TXQ >=20 > From: Jun Yang >=20 > The existing forwarding mode usages the total number of > queues as the minimum of rxq and txq. > It finds the txq as the same index as rxq. > However in some scenarios, specially for flow control > the number of rxq and txq can be different. > This patch maxes the txq and function of rxq for all such > scenario instead of keeping 1:1 relationship between the two. >=20 > Now packets from all RXQs can be forwarded to TXQs >=20 > Signed-off-by: Jun Yang > --- > app/test-pmd/config.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) >=20 > diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c > index d59968278..efa409453 100644 > --- a/app/test-pmd/config.c > +++ b/app/test-pmd/config.c > @@ -2130,8 +2130,6 @@ rss_fwd_config_setup(void) > streamid_t sm_id; >=20 > nb_q =3D nb_rxq; > - if (nb_q > nb_txq) > - nb_q =3D nb_txq; > cur_fwd_config.nb_fwd_lcores =3D (lcoreid_t) nb_fwd_lcores; > cur_fwd_config.nb_fwd_ports =3D nb_fwd_ports; > cur_fwd_config.nb_fwd_streams =3D > @@ -2154,7 +2152,7 @@ rss_fwd_config_setup(void) > fs->rx_port =3D fwd_ports_ids[rxp]; > fs->rx_queue =3D rxq; > fs->tx_port =3D fwd_ports_ids[txp]; > - fs->tx_queue =3D rxq; > + fs->tx_queue =3D (rxq % nb_txq); But does it mean that now 2 lcores cah use the same TX queue? If so, then how it supposed to work? > fs->peer_addr =3D fs->tx_port; > fs->retry_enabled =3D retry_enabled; > rxp++; > -- > 2.17.1