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 CE19CA0C4D; Thu, 15 Jul 2021 06:53:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6938E4014D; Thu, 15 Jul 2021 06:53:36 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 2F33340143; Thu, 15 Jul 2021 06:53:33 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10045"; a="190847368" X-IronPort-AV: E=Sophos;i="5.84,240,1620716400"; d="scan'208";a="190847368" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2021 21:53:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,240,1620716400"; d="scan'208";a="488845466" Received: from orsmsx604.amr.corp.intel.com ([10.22.229.17]) by fmsmga004.fm.intel.com with ESMTP; 14 Jul 2021 21:53:32 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Wed, 14 Jul 2021 21:53:32 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Wed, 14 Jul 2021 21:53:32 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Wed, 14 Jul 2021 21:53:32 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.176) 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.10; Wed, 14 Jul 2021 21:53:31 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aJhn/fsKk9cNkHHkEB76XIhuMkrov4q+LIS6FQ/+GujfQ9gU7Sz6xjklI5fpQN+de/Lpn9NrW+KPKGyqal0nO74xn2GNdvgce3Q9UGu5wiGcbvDTMaQ3ptBo76IijcoEhqY+OM5+KWA0OTs1KOPL9l+cJd0DVrbQnbM/k9GGGtuL2MMScHQ+nPb5w0Bd7JxU56WS8JOPOeA3uCt7ruEtXG15XlITeWzvWUxYraOYisE2vphbcE4azqs9LXZfigKx4fvnV+45Nxtb9hOtO69xxvS7KgeBQwp+7SkqSvyGi776ssjQyz6G/ej0377yHFArHyipn4hAXqkQnO9XyH8wtA== 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=3i81zVg6ak0OBow7WDwK/uWdpt3tnH+FzsfqiVwEe/c=; b=TZdcSyaBVib8vt75BHbhJGaRHbTO3i0iVdPkBSZ3xhrHnmZS0TqRuv9QBcuzYFfv9oNYdujkKY/5LiNCqVfovqE0HCKwAYlsZXhmP2v3mPLGXJCtAjV9C3Cz2Jc/KPQTu3ymnP5SiDiL91LK7cGO0dMozZIczRBiVD7wY8V4wQvJaF7FVX8KNvDkoVUTVWrOtU4TFRLy4ZSa/v884wPg62ZJAKffoVpArZukUb0lHsp5vrbuSHcTMmUbGSQ4rwoM9BL7mgZmAMNPGRfvA0DKney4YycPt4A8ucwIMfDuY+uf0lVsoml4I124OA3UCQyODjx/YwqUfhfIkkpYuD202A== 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=3i81zVg6ak0OBow7WDwK/uWdpt3tnH+FzsfqiVwEe/c=; b=fMjvtU6vlwbSZOle8ANVxaWA84W4rwukUKzTSiXIgCTHSejVzdTeegBds7HdXITbhbj0/E8yUFlzGLnxq27eVIz4w1+JG5xIAYa8++AQ9MG+2tZ2J/t3bLJN4t6vPLThGBQA21y1OkiqJ2d/3tCTyyjKsMXoxA7wSpF4qxP5YiM= Received: from DM4PR11MB5534.namprd11.prod.outlook.com (2603:10b6:5:391::22) by DM6PR11MB3689.namprd11.prod.outlook.com (2603:10b6:5:143::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.26; Thu, 15 Jul 2021 04:53:30 +0000 Received: from DM4PR11MB5534.namprd11.prod.outlook.com ([fe80::87d:1217:a7cc:dd72]) by DM4PR11MB5534.namprd11.prod.outlook.com ([fe80::87d:1217:a7cc:dd72%9]) with mapi id 15.20.4308.027; Thu, 15 Jul 2021 04:53:30 +0000 From: "Li, Xiaoyun" To: "Wang, Jie1X" , "dev@dpdk.org" CC: "andrew.rybchenko@oktetlabs.ru" , "stable@dpdk.org" Thread-Topic: [PATCH v4] app/testpmd: fix testpmd doesn't show RSS hash offload Thread-Index: AQHXeS7puSPND5vqtU+bJkR2YAbtX6tDd2Kw Date: Thu, 15 Jul 2021 04:53:30 +0000 Message-ID: References: <20210715113314.8837-1-jie1x.wang@intel.com> <20210715115720.9981-1-jie1x.wang@intel.com> In-Reply-To: <20210715115720.9981-1-jie1x.wang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4fba9e20-24da-44f4-3f3f-08d9474c7e26 x-ms-traffictypediagnostic: DM6PR11MB3689: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:883; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: XWf/nKLKYobJwEagge6KU2RLexhusztaYZh+2H7oLKelqLyHnH0Gh0H5LcxduK4v2APVUc7iyTjjAM7uIv/k/5Re5D3kp5vgzApRVEmGUrxXZt5wxV6xZcLktiPsvw1IdZ4RkTfaDxmHeHtGrxLvoG7104ZMZX+HQeAEZuSUUAFzFgLr294YD0f/8zLp1frz5O7LGIepSxcLH6/qWkoUOdZcYq3gCmIF7dFJ+9f+wxSVzcANw8ieiCGPgp0aqpGcwYD6Tleh5TBNkakChAgmxb66GU7UVxynJJ+p9Bejq6Bcb0Ln2rrRxadBfoaP4VU8qMxj6LJUSdWlhIMz3A0SpVA6cepz6S1uRq9ZEmg9NlFIPCMllkOl3ZJxp+sH4qg55DaXG5WWApmLi0rtwV2KMsbRtKQL6aVjJBuM8xSP1OJvwEMunuHGImlv7RZtceFBwi9JHUUatBZUqA1ZTFKQKwqLWEe164v+rwvttzu6oTo+Nhp1gQMFgRAOgJjGzlVfyeuzwlaNfCYe+FjO2M8D6GJbuSLhw0P7ucSrdBEPDIag1w61tg5238yM3A3Yx9sBLj0fMkOZTo4ZrCFOonuweM86gS52fP45REI2ou5tOzVUGw/UXJQ6arnORmWXFVawd6oBHK+v2MJTWSi/u19V3zuStgon2S96iLnHAx1iyhAL51uZaAN7AL7X8ZFAsWK0vVNo7475kk9Aj4luVVWYZg== 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)(346002)(366004)(396003)(39860400002)(136003)(376002)(9686003)(186003)(55016002)(8936002)(110136005)(2906002)(26005)(316002)(122000001)(83380400001)(86362001)(52536014)(5660300002)(4326008)(478600001)(66556008)(66476007)(66946007)(64756008)(76116006)(33656002)(66446008)(7696005)(8676002)(71200400001)(38100700002)(6506007)(53546011)(54906003)(38070700004); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?2d8PbkAL7C0M9Gzl1jCoKvu8kC8pgQr8I5izQRPwoNTDyBBF6ex6cZIa4CO4?= =?us-ascii?Q?u811cApyIGRUycAB+9emMwzHnVxZf/BcuAwlJbV1+hfDKy3YgNg4+vpnYWcj?= =?us-ascii?Q?F/PrlKqjGxJ0YnjWHfyFD9zhWGAHoWmtibORrt+hXnt4GbzJJf39WFAkrpnx?= =?us-ascii?Q?eSh+ew/ivfaul8/TGipjzwyXgYwK8fr1VTt1O/1TivI5iPMud2x1hbPes93s?= =?us-ascii?Q?n/gAP/GHCYXA2zyudfOWyp8N9/NLW06QtCElKS/uSghGPKR/WSafkUvOYIod?= =?us-ascii?Q?lNO/8Xn3tao+PD/poHtrGiaPh3UirZHC3aXzgkjEeRY2tRfIcHSultCXpNPW?= =?us-ascii?Q?whuW/fQ+nSZyaladYWxo0jdR9BQe5ey9CvBglhRCCFhBp5jhnJDvxGTG3a+d?= =?us-ascii?Q?w89Qf3lTYnbiir0BWMMiK+swMMiGgZpNXkeADZQ/GX4J8oIIXCk4vUJoCnAl?= =?us-ascii?Q?BIyk45g4GWfm+TMBykdVyh+AC9IcLpz93aG+swREPx0q7Oz3hwNqWG9+NPxp?= =?us-ascii?Q?29+EGkAJ5IBXEHA4AMJ+Fq+uCfvs5Y2T95fJu5nGyiGmC9ub44TnglUleTqh?= =?us-ascii?Q?ibVe5CZKZxid2SFXs3NH6CzGv89i+jWqvPoXJWQkxrhRYPAXhf4nlYwA8CuS?= =?us-ascii?Q?sng1J/rnkfQhbYmgIm4owCN8aLktI5OA4z2/uBbMjCgwaZ9+oEUZSuKj0LD3?= =?us-ascii?Q?KP89ds88nhvwbymja+FZN1j/cwe1OkuHAO+4kdMq8vcGKfiy0+sedSg+ZGEB?= =?us-ascii?Q?52UZN5sYR5zmI5bmPRnsRvG2as+Fhc6PuLMmS/62nIYZnVBTmeF5cxPMRQMP?= =?us-ascii?Q?4OBqoE9eh+6HAHQANke19HxNJtR66JN5bg5M20RJ7whhtCfdF/7erk7BshKb?= =?us-ascii?Q?qjfvFaTm/aZPqOt8j7ax0xPjsroKIew1plsJugHk2BQ+r7iIlt9NY7bSNIpN?= =?us-ascii?Q?S98ExbqHAql4CJ8U69zXBsyHtfNR5kWgwV0mhVFTBaE61tuGmMQ6iH5VssXZ?= =?us-ascii?Q?i9cmetUPM9xVVzWC541Cy6juDJv4e/rrXXA/+ith/KL5K5SzBXHTRQf10mgr?= =?us-ascii?Q?4z21qnbAS710QxSkczXrhZyZz2LVXtaUmEiDRM8oFv7FdOWiFAR4hxGDoe1d?= =?us-ascii?Q?8tAhuPRaWjDyyBj0DAp4Z8ocFyqSe7gR8VD6DRzLPUfdesj4MfaBqS5qbzwb?= =?us-ascii?Q?GV41kDHiv0m8QT8E+h62FISWo21eyl/T8PIJuW1HSKjcIFetEkK41eSLDz9D?= =?us-ascii?Q?n9OmV7bOY+vm/ph9TqZxZm+w2NwHNDPQmUSJtulCEcQF/vXOjj0eimwtsXEh?= =?us-ascii?Q?1M2NXj2S4CoHDAfjNG9kCgeT?= 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: 4fba9e20-24da-44f4-3f3f-08d9474c7e26 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jul 2021 04:53:30.8003 (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: xAB/N80XPbkfjzvIy7K+XRVyPz6p7YFRt0PSwT0SQEetfppDcfoedijFKAJc+/zqPH8PckrJ9AHoA60Fe2xsFQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3689 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v4] app/testpmd: fix testpmd doesn't show RSS hash offload 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: Wang, Jie1X > Sent: Thursday, July 15, 2021 19:57 > To: dev@dpdk.org > Cc: Li, Xiaoyun ; andrew.rybchenko@oktetlabs.ru; Wa= ng, > Jie1X ; stable@dpdk.org > Subject: [PATCH v4] app/testpmd: fix testpmd doesn't show RSS hash offloa= d >=20 > The driver may change offloads info into dev->data->dev_conf in dev_confi= gure > which may cause port->dev_conf and port->rx_conf contain outdated values. >=20 > This patch updates the offloads info if it changes to fix this issue. >=20 > Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings") > Cc: stable@dpdk.org >=20 > Signed-off-by: Jie Wang > --- > v4: delete the whitespace at the end of the line. > v3: > - check and update the "offloads" of "port->dev_conf.rx/txmode". > - update the commit log. > v2: copy "rx/txmode.offloads", instead of copying the entire struct "dev-= >data- > >dev_conf.rx/txmode". > --- > app/test-pmd/testpmd.c | 27 +++++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) Acked-by: Xiaoyun Li