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 B3F42A04BC; Wed, 7 Oct 2020 02:52:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 911E61B5E1; Wed, 7 Oct 2020 02:52:00 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 5FCD3E07 for ; Wed, 7 Oct 2020 02:51:56 +0200 (CEST) IronPort-SDR: ceIsxlBa3ao6nAJRj99b24OPpSyYbNjFa2SimoGYaSrp3CkpLiMgMS5VIcyiBu8P6dqWGXC2op MoyVkL9eG3MA== X-IronPort-AV: E=McAfee;i="6000,8403,9766"; a="164834891" X-IronPort-AV: E=Sophos;i="5.77,344,1596524400"; d="scan'208";a="164834891" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2020 17:51:55 -0700 IronPort-SDR: dBBQtCpeXUcYbzhTbSXfrm1ikJjWsvB8T+1BfnUgoUnNXHciNlMmrj9z2L/2tLxvjHSiW2rc1a bRRcVeAVUU+Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,344,1596524400"; d="scan'208";a="297393387" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga008.fm.intel.com with ESMTP; 06 Oct 2020 17:51:55 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 6 Oct 2020 17:51:54 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 6 Oct 2020 17:51:54 -0700 Received: from NAM04-BN3-obe.outbound.protection.outlook.com (104.47.46.53) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Tue, 6 Oct 2020 17:51:53 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K1xNPKnrUC3CKnZa14WZrP9BIwcuPxIzZH9Fa+WH0irQEUTWdJ5WVTNuuUGGFnClrPJTHYe6ZrBqS+Xz5FfEIvWMgO3UTd6FNu3fD+/78gcjTvj9w8xeZ/G/DiGvAApcD5Hf05TvyoMjsSgyQkDDnS0BKJBdU1FCRmPjlb3xcR6vdpC2k8dtNv8XDCcUhirbi2GtMVTkjc2p3frrxeoj2hGk8EbToZdwgDROz4dEvAuj7LXmsxH5fgs3lbaAFGy1uULyop11LT4rigG5vNUED7Zre2JY9luqa28YKnOb4WxvGBYRoHh8rWBfzLl7wv3bXKoMXLN8LlXNoYdnYn261w== 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=eRaBbZQjeyILsc4KBkzBOXA7V6I51K6g+HQNihHx+qo=; b=bFtA8NVmBXWF2FwyhwHZWHtX0rleA+5imamFVPLKubQvqwjyfzWI+pbXFTKGHO3Jv8fBZZAgLOGas5oprKODQWOu6Lo60jWNPFNnx0qAcZNH5pWZg3vyqhf1ef+jfJhnr1TxmcP5gNm8Es8uTpTKB35ESSmMxlxskaJ6AGz672HvD5KsqveDnVok6qOel5UokBkcGZcfM9fh7Bnn3m2be1U2CzaP4AIN1p4IER0AFVNBM37fN5xL9ppkvEXXb5Olqr3Xr1nVLf9ZIbftoZkR8q/tHGI+/4B3H4AWUZBelN1IQQUOtWmJ9rMlEMz7ikQbk7AKv021jnCyJRinqgkMgw== 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=eRaBbZQjeyILsc4KBkzBOXA7V6I51K6g+HQNihHx+qo=; b=pxGMFyIBL4JcsQmdeCEVYkn6bXjN7/NMx7kW0bxb9CIv/BI+ZYo8TdRKiQmdGvE3+sdlj1yIWXdGKvoOvfhzmCJUawAbaDdJsBz5qmXQzQqcQVDUFPdXWPlLFHbWMnAQpYgj1xBfnJXh2IlxKO046lzKQkt4pXq79NfU+gsxZAw= Received: from BYAPR11MB3494.namprd11.prod.outlook.com (2603:10b6:a03:86::15) by BYAPR11MB2984.namprd11.prod.outlook.com (2603:10b6:a03:8b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.38; Wed, 7 Oct 2020 00:51:46 +0000 Received: from BYAPR11MB3494.namprd11.prod.outlook.com ([fe80::5886:71de:a26f:8060]) by BYAPR11MB3494.namprd11.prod.outlook.com ([fe80::5886:71de:a26f:8060%4]) with mapi id 15.20.3433.045; Wed, 7 Oct 2020 00:51:46 +0000 From: "Wang, Yipeng1" To: "Power, Ciara" , "dev@dpdk.org" CC: "Gobriel, Sameh" Thread-Topic: [PATCH v3 15/18] member: add checks for max SIMD bitwidth Thread-Index: AQHWlyrQY+L8hMsiqE6hPbTrqbk4A6mLWZ4g Date: Wed, 7 Oct 2020 00:51:46 +0000 Message-ID: References: <20200807155859.63888-1-ciara.power@intel.com> <20200930130415.11211-1-ciara.power@intel.com> <20200930130415.11211-16-ciara.power@intel.com> In-Reply-To: <20200930130415.11211-16-ciara.power@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [108.161.24.24] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fc689fe8-18ed-44e0-cd85-08d86a5b2b01 x-ms-traffictypediagnostic: BYAPR11MB2984: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2582; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: X/jhHYBARAabKmBTK6WTnpG2lLwkYCMGqrvq/Gm/kl5c9uTdyv52KqJxc+3GYIEiQnof5pl5mn1iMeAuBLSWcf73IKNDmTVpdwDhZWLLZzyFmNeWAas+HSHdAkpwow/pTnw1xq+SGUQNJBhUJoNP48xKrls3MxxNb/hmbH0RtDayybf48tHOXa5O7cVawiPIGizOflRBuURfa8EI9mf5tWKlkZCeoPajCO+VoFZ4eOvAy9j/WL+260j5wqVwb5vKrUqZGe4yImSg6aNflbi4ISNyqo0df3SxwvvdJn2zlIsUVf8JHQJU4mFx8PMA4kXy x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3494.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(136003)(396003)(39860400002)(346002)(376002)(33656002)(71200400001)(66446008)(64756008)(66556008)(66946007)(52536014)(76116006)(8936002)(8676002)(107886003)(5660300002)(55016002)(9686003)(66476007)(2906002)(186003)(478600001)(316002)(110136005)(86362001)(6506007)(53546011)(26005)(7696005)(4326008)(83380400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: SMbb8l6uhWdDw/ZTJmcQ415UJiDNqvkTnjUn4l/YfevN0EPFPTDmQ+oFJtPm+XdqfJYjo8JNWCygJxSOdE2504IU9/WzQl1E2iRz6BidQljWTSHQpgdcHJBYx2qW7SIQrTh2wzr3UxWUJenJcLFay+ji2JVrGRl/a+4Tndjdg+e/MyOH7m8ceiUrHTWFdv/7wddhspcIEDKMSAsEq4p6CanpzaQ93GBpOMQcqM3apVgdu8U8pRoBiUktsWmjjtXvLeHt2C4YEEzWS2HmIoOORb5vVH/nSG7Dw78LPU9etg0sTJFmJSzOmo44aCF66o3d+xbkqLnFti39AjITLq7nb0cPy/JKdC7MohO1TAmIWztgQDaaY3F7z9He5Rzf+o2TUEeC3pA3luuFM+bATsVN8EeRM3ciBEYsVGhhsc4c6BhimgLVPY+rp6CzU7J1v/Ygh+ejAkvIlvcnickf6EvX8CsQk40FIZkggZ7Sxa2eIaft1Cpmw+wlEGFA2T7WnCWKOhXtkmRP2ve2TQyvan+3ul76ZXTa2uCCqCLBKcaOHcZR6AfC1EgwiNdTcPRlAQtGazjX6msGUyphhI73fLxvAwX9x6JXeLoj2n+ABD/2yEZRrcQd55P3eW7bRNXXRfT4W/HhjSBxpYbOMbHXrAmKRQ== 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: BYAPR11MB3494.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fc689fe8-18ed-44e0-cd85-08d86a5b2b01 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Oct 2020 00:51:46.7172 (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: b5n41sW/yLvtbgZ7YToJwIB0ko00cfl2JlEOfEJICST4EJBmMKf8Rsc3rYiD4gSxFtCIgkBQ6gluNa5EFKq85Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB2984 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v3 15/18] member: add checks for max SIMD bitwidth 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: Power, Ciara > Sent: Wednesday, September 30, 2020 6:04 AM > To: dev@dpdk.org > Cc: Power, Ciara ; Wang, Yipeng1 > ; Gobriel, Sameh > Subject: [PATCH v3 15/18] member: add checks for max SIMD bitwidth >=20 > When choosing a vector path to take, an extra condition must be satisfied= to > ensure the max SIMD bitwidth allows for the CPU enabled path. >=20 > Cc: Yipeng Wang > Cc: Sameh Gobriel >=20 > Signed-off-by: Ciara Power > --- > lib/librte_member/rte_member_ht.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/lib/librte_member/rte_member_ht.c > b/lib/librte_member/rte_member_ht.c > index cbcd0d4407..71e3cf7b52 100644 > --- a/lib/librte_member/rte_member_ht.c > +++ b/lib/librte_member/rte_member_ht.c > @@ -113,7 +113,8 @@ rte_member_create_ht(struct rte_member_setsum > *ss, > } > #if defined(RTE_ARCH_X86) > if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX2) && > - RTE_MEMBER_BUCKET_ENTRIES =3D=3D 16) > + RTE_MEMBER_BUCKET_ENTRIES =3D=3D 16 && > + rte_get_max_simd_bitwidth() >=3D > RTE_MAX_256_SIMD) > ss->sig_cmp_fn =3D RTE_MEMBER_COMPARE_AVX2; > else > #endif > -- > 2.17.1 [Wang, Yipeng]=20 Acked-by: Yipeng Wang