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 D9F71A04B5; Wed, 30 Sep 2020 15:29:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 37D361DAD5; Wed, 30 Sep 2020 15:29:16 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2078.outbound.protection.outlook.com [40.107.243.78]) by dpdk.org (Postfix) with ESMTP id C3E5E1D6DE for ; Wed, 30 Sep 2020 15:29:13 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N0ByseuzTMItBKLK//6S2Vqouv9fB+Q6/W+ojh/+SmCqLH9/KIuTYpfaFkQU15gLHqrZK8sNad4Hkgpgr6c/0oCTU0X26Klx8cbkHavj32KG9bm1ufyNUaLUifn06tfT9K6CewxAf4lqI6Kf1ZX+nLk0pycY7pSzsAmTQVTGFIWYnB1r5Anq+KkqG0wau7ShKvdNq2+nNX5AC5TzTQflFDTdSyOHIaZfiPDtrRLb8hp4rI/OrqOd1xbUGCQC6AGOQC5nLaStdapnQNyY+1e6l/BC40nFrB9VZK5PwW6zDGTkjMbOWVIMU3MwUyaMO3CGdmoceQiOWC7Lc4iDzSq4fw== 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=ytp+PaZil735j9kMaOFhCoqukIIU9YyBkj0mot2tLAQ=; b=nTGwi24yoH7H3drGcHUnz9cqNZzs+jydoxirwp0SvN+SQNDFnYYJFApm64BPfJZFdhe4sGsyaCODP6JFjsSfCBQKQRVFg9OVbl0k7iMOn5ZCb2Prmi2ZP8APu4pNv5G5/7vlkcxT21VU2T4q0EkcCcWMOAfe78ie/yDM9SvaTYceYbcuDFoBTqt2QKdCYVY5czxNT7VPGPeWZ4ayrr/XEBqlTS/Q2iXEdj2A4f4AtC/N/8t4tekhEUo/Sqaz2msW1UeQtxMXmjBRCE76WGNE/OLh1ICZxhO65SA4nbnJizQ0c/5jackCNjBQF/BXo+wpyGNVqOuD073LafhyyCU4pQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ytp+PaZil735j9kMaOFhCoqukIIU9YyBkj0mot2tLAQ=; b=y2AbMmdmcDIHvBRrzopFQ2lZFTOEOzow+Sl3TVsAEOhAlRzJk27FgrujFZRd+lg0ilUvkoRy9ukXZCNHprlWDf7Wfwpa12pUh/+jrhopBn6MD2qViOTe+dQo+31Lq5K29sL+1fF5U2SmxwMJdMbKiWGyjKglbAEWNwUv828mohg= Received: from DM6PR12MB3628.namprd12.prod.outlook.com (2603:10b6:5:3d::26) by DM6PR12MB2684.namprd12.prod.outlook.com (2603:10b6:5:4a::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.32; Wed, 30 Sep 2020 13:29:11 +0000 Received: from DM6PR12MB3628.namprd12.prod.outlook.com ([fe80::b4c1:f392:7acf:c322]) by DM6PR12MB3628.namprd12.prod.outlook.com ([fe80::b4c1:f392:7acf:c322%7]) with mapi id 15.20.3412.029; Wed, 30 Sep 2020 13:29:11 +0000 From: "Somalapuram, Amaranath" To: Ciara Power , "dev@dpdk.org" Thread-Topic: [PATCH v3 05/18] net/axgbe: add checks for max SIMD bitwidth Thread-Index: AQHWlyrBHxQqcauD+0uyyJDzB66BS6mBLDrw Date: Wed, 30 Sep 2020 13:29:10 +0000 Message-ID: References: <20200807155859.63888-1-ciara.power@intel.com> <20200930130415.11211-1-ciara.power@intel.com> <20200930130415.11211-6-ciara.power@intel.com> In-Reply-To: <20200930130415.11211-6-ciara.power@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f2ed062d-8486-4f50-a4f1-3cce0dd00d64_ActionId=a61e75ff-1855-4b66-8f01-46ecfa67728a; MSIP_Label_f2ed062d-8486-4f50-a4f1-3cce0dd00d64_ContentBits=0; MSIP_Label_f2ed062d-8486-4f50-a4f1-3cce0dd00d64_Enabled=true; MSIP_Label_f2ed062d-8486-4f50-a4f1-3cce0dd00d64_Method=Privileged; MSIP_Label_f2ed062d-8486-4f50-a4f1-3cce0dd00d64_Name=Non-Business; MSIP_Label_f2ed062d-8486-4f50-a4f1-3cce0dd00d64_SetDate=2020-09-30T13:28:32Z; MSIP_Label_f2ed062d-8486-4f50-a4f1-3cce0dd00d64_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=amd.com; x-originating-ip: [2405:201:d805:faa:1188:9818:5f34:9da] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 69e7e382-f506-40a2-20c3-08d86544d0f8 x-ms-traffictypediagnostic: DM6PR12MB2684: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FchWk+pDJQ/ddBfRzJ85cCBRqAiGrHAgoUVVadTzX1y0nNR5NZpBoYDJ2AG91iMAFenudNMiEDl+dJVbURZnDvr58qHrAoybqEVZdWO84M8sIKd2JRVICaQulLfftbf0SZFiV6Q/WmLFOUMXtWoyEn2DQmvjXNmE0iLchQgvOhy6Pw11LzOQ1+19UGBWGslKVybo2veWwXEkY50w6n6C8Edhvucn8vyCpXnoNA18cYiJ7XdJHGeUyitKLCFv/5cI5bGzxmMygWqPzzpAeX2cFlAmskpjOfsrW3XGTIvRgeQOuIK1uvLw727xsZ4Wdvk0 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3628.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(346002)(39860400002)(136003)(376002)(396003)(5660300002)(86362001)(478600001)(52536014)(7696005)(186003)(66476007)(66946007)(316002)(110136005)(66556008)(64756008)(66446008)(83380400001)(8676002)(8936002)(76116006)(33656002)(6506007)(53546011)(9686003)(55016002)(2906002)(71200400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: peqeNG2/1f5uha+G6zx9Bl8uT0xOMgFPpjib/uQFtMwWtaVv/FRs3gl7o6jmSlZHkjreBe/8dkEITxV+dwDqrbXNEzI6zLVSlH3OLL+uUt6n75N3Ko2B8PHuvvlM67rRDPLETLgJFQek7Wl/wuqhdY4idDz6SJSwaFW1TuVUv1dXVgGckTuxuETpm1JCPvVNFeHmBWLThHJgzADPxx85X71NwOaHEGBEHLf6hc/w52atRueKdpQ28La6z5V515FkG12V/A4t7YCVT5FHJl9nca3GchLu2eLY1KcpQlnS7yO2IXiYchf6LMvQdlOB59Z47IUnbX9+KOPy1clKFZ+MMwGFU9arIY86Uk+Q0d7kbkicgYtqLadLNcH171hOOxZoGnLV6PQLkAMwijGYTEu+QKcSQdhJquzymTcz+Z68IWr9ef9QCiYnDRzr5hZ1ivnbD2vpgxLp291wHqefazs758dz9DdVEBvU3dm2p7Ef6JmRTT4TdndqXWaNLbkaOiHg/r96EXy/hGbR5zcD5HKUNwyqUM7Y7OhdFq4fhP/MLRlDM7i5b0CjM1pCvKSA1xJ8isQi8CAYPYO+SXOj+ajG14uMpcPDugmFLgkBm54ccmNqai0l6GLe6gjuOTH9mVPU/+WGIsjGtdQgaSElZ2HlD/ermcuBLsCesQb6HCLwULLRceNvC5gVZWC3ZDvSVkpO5nWl9TD3TG/CwBDe6rNfIA== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3628.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 69e7e382-f506-40a2-20c3-08d86544d0f8 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Sep 2020 13:29:10.8060 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Zmwok1k+gyLBY7RWa8otCQ3S3O6uNBH12KnHBi7zFxaw71GAFTyYr0fZRM6As/VU2dj2M04r5ofIVH7vmpXD1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2684 Subject: Re: [dpdk-dev] [PATCH v3 05/18] net/axgbe: 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: Ciara Power =20 Sent: Wednesday, September 30, 2020 6:34 PM To: dev@dpdk.org Cc: Ciara Power ; Somalapuram, Amaranath Subject: [PATCH v3 05/18] net/axgbe: add checks for max SIMD bitwidth [CAUTION: External Email] When choosing a vector path to take, an extra condition must be satisfied t= o ensure the max SIMD bitwidth allows for the CPU enabled path. Cc: Somalapuram Amaranath Signed-off-by: Ciara Power --- drivers/net/axgbe/axgbe_rxtx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/axgbe/axgbe_rxtx.c b/drivers/net/axgbe/axgbe_rxtx.= c index bc93becaa5..6093ec7279 100644 --- a/drivers/net/axgbe/axgbe_rxtx.c +++ b/drivers/net/axgbe/axgbe_rxtx.c @@ -557,7 +557,8 @@ int axgbe_dev_tx_queue_setup(struct rte_eth_dev *dev, u= int16_t queue_idx, if (!pdata->tx_queues) pdata->tx_queues =3D dev->data->tx_queues; - if (txq->vector_disable) + if (txq->vector_disable || rte_get_max_simd_bitwidth() + < RTE_MAX_128_SIMD) dev->tx_pkt_burst =3D &axgbe_xmit_pkts; else #ifdef RTE_ARCH_X86 -- 2.17.1 Acked-by: Amaranath Somalapuram