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 417B8A0C45; Wed, 22 Sep 2021 14:01:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D9B7741198; Wed, 22 Sep 2021 14:01:09 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 3A43241196; Wed, 22 Sep 2021 14:01:07 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10114"; a="246015669" X-IronPort-AV: E=Sophos;i="5.85,313,1624345200"; d="scan'208";a="246015669" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2021 05:01:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,313,1624345200"; d="scan'208";a="435414638" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga006.jf.intel.com with ESMTP; 22 Sep 2021 05:01:05 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Wed, 22 Sep 2021 05:01:05 -0700 Received: from orsmsx605.amr.corp.intel.com (10.22.229.18) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Wed, 22 Sep 2021 05:01:05 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Wed, 22 Sep 2021 05:01:05 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.102) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Wed, 22 Sep 2021 05:01:04 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ISCKTztuplUNV70GgFo2Ech/OEy6JkbK873I9V3QEgTG4ca2+C3jDPGkJIEyhHRaKe2c1yTlTZ7fmkKZF3wPQYRfWFKajyFXFpAF6FMqV+C1e2cniLp64GedEBj1Jozob1VAT77BfTPCQrV/EAeD5Kb1YO3box3IeM2shrYisqeRrXu2RYlhgyDO9JAu/9xAMXyKp52lVProcVPyT14LxDSeiZJTDHY0G56Tldeaf0MyZnrJlCNj5u27n9xHkfhPNglspIeZQFkTeykpFx2CjoCyzrvzbObz4DOgKCZAkZfF/eS/8IsOkS3TWcF2n0wd9e+t8GNqglGol/w9jiey4g== 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; bh=INiaGA5/Z76gjwRud5l8LNYYiYVHW4jJFe7S6pgnMSA=; b=J31ryiOpCJLeZn3MLWLJLtDlVFriiL2lPxVO936n0SD3iElarI8qrKKfaKV2Vtx2rtHST+Vh4LlziGTukEWSUu/ypm61GSBgPylUyGLwYi/t9mfLsUoKgZZ00E8rcTvAOD4LK62M7VDZVn8EV5LQ6L0AILmTDxtKnSaKLbx2/bhILUc9UtPwg6ofOYo1Xj6NomsqY6SisBrMg7b8jlaxciKT1tO9fpmk7VB1Ymkiwkt3dBBm3FY2ZVAPpic6L+B92hjkTyTDSa9dkbpu32UqP2xj2Meh7y9uOAVR0CK8aZCuEgDtABUZaRfD/VEbh8IGgtNBSS+ev6I+vGYTkrU2KQ== 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=INiaGA5/Z76gjwRud5l8LNYYiYVHW4jJFe7S6pgnMSA=; b=qt+gFqUcgvg6RXWpBdAR4U3RhpF2SBIJdzKuo3XVHZ/vq39Ec4nyPMibdfnFgqbuuvJtMGeZawJreu+n23xQo0ce6frmqm5SQkdzhjLYbv3fkw3eaYUOyxPH/tdQ6N0jIrYLDXRrnMSP3RU9RJ8Fn43bHo9WcFKLMxNcAlBD39I= Received: from DM4PR11MB5534.namprd11.prod.outlook.com (2603:10b6:5:391::22) by DM5PR11MB1625.namprd11.prod.outlook.com (2603:10b6:4:b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.17; Wed, 22 Sep 2021 12:01:04 +0000 Received: from DM4PR11MB5534.namprd11.prod.outlook.com ([fe80::3d9b:76d7:e274:bad3]) by DM4PR11MB5534.namprd11.prod.outlook.com ([fe80::3d9b:76d7:e274:bad3%3]) with mapi id 15.20.4544.015; Wed, 22 Sep 2021 12:01:04 +0000 From: "Li, Xiaoyun" To: Maxime Coquelin , "dev@dpdk.org" , "Xia, Chenbo" , "amorenoz@redhat.com" , "david.marchand@redhat.com" , "andrew.rybchenko@oktetlabs.ru" , "Yigit, Ferruh" , "michaelba@nvidia.com" , "viacheslavo@nvidia.com" CC: "stable@dpdk.org" , "nelio.laranjeiro@6wind.com" , "yvugenfi@redhat.com" , "ybendito@redhat.com" Thread-Topic: [PATCH v2 3/5] app/testpmd: fix RSS type display Thread-Index: AQHXr5iOZn9cj2sPxEGYJvLg3OrUg6uv862A Date: Wed, 22 Sep 2021 12:01:04 +0000 Message-ID: References: <20210922095742.229262-1-maxime.coquelin@redhat.com> <20210922095742.229262-4-maxime.coquelin@redhat.com> In-Reply-To: <20210922095742.229262-4-maxime.coquelin@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e9221c0a-91b7-420b-555f-08d97dc0a728 x-ms-traffictypediagnostic: DM5PR11MB1625: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3631; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PS1d3gPBH++KDfOJ4UCVWBdd80SeiBo8hBkti6tEwoscqIWcmJaeJt80ejNS7sQEdxqIUqV5hrt5u3Yrxsp0Y/OEuia/3Se02fRRgKRE1VzxevE6OQpjBQDe3oZKuJEV2jmFIayHoMs3Q6+JgoC2zKQ2f4vEDSUBVgwmcTN2B/t7hhpFA76rCqKi//8jg1tjfQbBCJmv610ADRh/vCBBADzDMfJt/x7vKQcrR/4D/tKSY2R4TIeJ+sSV0ry95+AvmVH90pAiJ3yQwFRnE28CBn1c2tFuuvyz/2cdNFTaYcFqg1dUCTWsIm1pMC695I1Uj/XZvcAytolJUWFDXRfF+6gXIWfFtXVf26PbLASp9g/q3ZkE0vUrluFAx5MNlOYTX64msA5trgiDbgMQGEMww5fHDoFqZguSQ5oB2mgEX/Xsx6nPVzG73ArpOmRXGoDZqBu2+Dtcs102yI21mOv0zDy9WGSOgjWDiJi2l4KBVhYuqSyVP+j+nnq2x6LebJ1TC3/Tr3wAArDzASyHvdRJdOPCX5BFYJMI446fJ2tjD2iL7Smo2SIExWSckEK1BBpRYdlDlecnwJweXtFIwNjyNVHhQVSoE+4Sx0RHrkJCQhm0FwCzFBE7ynk9kEb6vaT3tHQ8t2Alh+llAeOcXuD9PNcBL1ApmGAFAt2yH3l2nW0lyPiIQRWYt4lyYNbxUzYGnd9Q88G4yGAhsiq2p5eAEqPc9OA/iescAXa7L8Ffu60= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5534.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(8676002)(5660300002)(7416002)(316002)(76116006)(52536014)(38100700002)(66946007)(66446008)(66556008)(6506007)(26005)(64756008)(66476007)(921005)(55016002)(186003)(7696005)(83380400001)(8936002)(110136005)(9686003)(53546011)(122000001)(508600001)(38070700005)(33656002)(86362001)(54906003)(4326008)(2906002)(71200400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?byfDOAg1wq8ZPm0t2ZtTQMn0zQ4rUTghL0eKRzxOrRCpEOBSmGTSuleP40wT?= =?us-ascii?Q?j6fOkiJsZYbLG62GGDI07EMUNcfbaF9mnXBwiRfAdFYnSjpcHjq1GCrNHv9b?= =?us-ascii?Q?s1u33Xg6acWOncPes8W2dUjIHI1Sscbddbvf6m3UVmMC/MRTcVn/5tZvc/uG?= =?us-ascii?Q?baosJaLY1mpAvTzZvb/B90Vpruskl/XXag9Jo54fU+U2EhQ50me7GDaWyv7k?= =?us-ascii?Q?11q8Oagn2yuzW+zy59gw7ksJ0PaEgSvOhPxxn4cTEI2wxxopwozf7z84oeWX?= =?us-ascii?Q?/KUoR2oTc9xfQa3aoVq8OrDBW2HmpMibuP1xzoBJPqdV9hryp+3Ff6fw+gfq?= =?us-ascii?Q?/kRzm3shV0z1tp74J02tv8MpLkfWV8MZUbSVOo/vptGqAl1JiHr4enVOnDR7?= =?us-ascii?Q?abOw1DkPCuMfctUeTBhsewLaMVM2wjDSWoIalYeD0yoM5QY26jU+9YcWOQo1?= =?us-ascii?Q?y0Iq+k1fLPIPG2PE9t0IX72Ub8ynivkot/pUt5aubmFTiHPZJuXZC3/EWUuD?= =?us-ascii?Q?XROx2L7yVz4EnO9NaeCtyeEkS0RvBWaO2KiOpG5ymS3L8mYme1s0512l+Hx6?= =?us-ascii?Q?v8AsdOXaUM/9yj8g7ceax9iMO7sCBRr/ekLxeGBLQIZIIWo6cO0STn9efub8?= =?us-ascii?Q?yeh7htqTulejr+aAUkXfkBkSmORRRM4ZXjG+13zzUEBBdcH1+kFzIgJRqhom?= =?us-ascii?Q?OFNGcS3CNNTE+nMhdNW+ALnW06qSS1dHvqA6fQspT+gycUhCXxsfR0zVav6y?= =?us-ascii?Q?7dFaRbpPOK9SCn04HJ6DgJ8hedCQZcNxiFUM2Fin/xRmWMIF74keOD7Etz6Z?= =?us-ascii?Q?D2PS0Ij1crhS1qvy06fexIr6sCPpjCSyw6LzA8ACtm+Y5ApHv0DtWQ5RSAgs?= =?us-ascii?Q?c6MMgd2DLeUsc4MkKnAxAoTIG28VcBcGBYNAyErGk0Ctv6rn9h6EFgnEKR3W?= =?us-ascii?Q?D8B9AIhqpYVJDErpXBh4kugVZfK39r1Nx/BwS1pubEaWSgL5Ke4w+7n4mAGW?= =?us-ascii?Q?eL+ErwqvGPrY1GcQl+B0NfLCBJKh81w01EW17C/PXIsQYg3j+X/Y62UXsHUj?= =?us-ascii?Q?oAdWPJ94Kub7WUW/BdY4rv9gQuSGH1LojmSgiXwnDQNzQ6N6NqREouEwRcWH?= =?us-ascii?Q?4KRp7wF1I2/Y8BYhw4j9R3iHK2w3EdjWW5Jd6zRQkbBdP1Fe7JirBXALNXov?= =?us-ascii?Q?HK1yaYgrwaSpIRLBleBEMtCMPLkxXmAp8salTnMUBnu/HrauxfAMJ607d69A?= =?us-ascii?Q?HezwYvl0Xa54Rmz6br3fyOWXU4MES2D6k46FhlHUVz9KCH8TuYHOR3/M4ETm?= =?us-ascii?Q?kCzr7+hobDN6mnJw00EIAoak?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5534.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e9221c0a-91b7-420b-555f-08d97dc0a728 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Sep 2021 12:01:04.0689 (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: FppyVxfX2LGdIYvvUTIqLYQVB6QbBnH6I3tunZ9lybfitoKV96UGpg2O+1AKauyE+HFCIKvZv0Qe8DMkTDdxYw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1625 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2 3/5] app/testpmd: fix RSS type display 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" > -----Original Message----- > From: Maxime Coquelin > Sent: Wednesday, September 22, 2021 17:58 > To: dev@dpdk.org; Xia, Chenbo ; > amorenoz@redhat.com; david.marchand@redhat.com; > andrew.rybchenko@oktetlabs.ru; Yigit, Ferruh ; > michaelba@nvidia.com; viacheslavo@nvidia.com; Li, Xiaoyun > > Cc: stable@dpdk.org; nelio.laranjeiro@6wind.com; yvugenfi@redhat.com; > ybendito@redhat.com; Maxime Coquelin > Subject: [PATCH v2 3/5] app/testpmd: fix RSS type display >=20 > This patch fixes the display of the RSS hash types configured in the port= , which > displayed "all" even if only a single type was configured >=20 > Fixes: 3c90743dd3b9 ("app/testpmd: support more types for flow RSS") > Cc: stable@dpdk.org >=20 > Signed-off-by: Maxime Coquelin > --- > app/test-pmd/config.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index > 611965769c..9a4a0c232b 100644 > --- a/app/test-pmd/config.c > +++ b/app/test-pmd/config.c > @@ -2833,7 +2833,9 @@ port_rss_hash_conf_show(portid_t port_id, int > show_rss_key) > } > printf("RSS functions:\n "); > for (i =3D 0; rss_type_table[i].str; i++) { > - if (rss_hf & rss_type_table[i].rss_type) > + if (rss_type_table[i].rss_type =3D=3D 0) > + continue; > + if ((rss_hf & rss_type_table[i].rss_type) =3D=3D > +rss_type_table[i].rss_type) > printf("%s ", rss_type_table[i].str); > } > printf("\n"); > -- > 2.31.1 Acked-by: Xiaoyun Li