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 87B86A04B0; Fri, 7 Aug 2020 19:49:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DEF1E2C39; Fri, 7 Aug 2020 19:49:29 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam07on2076.outbound.protection.outlook.com [40.107.96.76]) by dpdk.org (Postfix) with ESMTP id 8A2912B87 for ; Fri, 7 Aug 2020 19:49:28 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=asM3FRL9cvBZzO7Kdeqc8Xepz467lZNChT3sG0C9Y8Skqvkh8syRQhYGwUxBnNWLCdcNAZlHMtPeXdw+u8BPC4SLYFiwsznYeaC4KGqkqRTx418jObKo20ywI04Es4DtzplngH7sLwjbizQZsJpA6UdrOjPddqKsofyoOZtLjKVK1nvisSDVyLGOIqvPxV+e9pmI380PDgVkrBTnWtzt0x3NRJIN1yPx5S6tJURjk/P7DU7VDjPcoV9/LFGHQBk3SudF8/vCEcbNXwsxc9hVn5/FZnCR4tk7N3YlOTu0ZDtt2xNctOseM8UC2y8zUHYfIpp6tOMDNpPi1mBRGeZ4HQ== 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=1p4zUjT/jKKjvkjrBcreHQL06uK336ukd+TCZ7NrPFY=; b=NHe0LfCs4lkItknM1L5B3NYjfusX12xsDI2+EEzb0VkVvjVBOLJ7ngR4JFqcJfc3WSYtKu4UXVLlmIfl9rcwlMYN0WZq/WCqC5i8aJO6oR+35uL++HEaXaNOQjCXItZhPMSeicmWvTMp41RH7EDsRQNXEPfe7lU9btmPCX74ight9gKX5gngdNW6BRJ19L/1kJV0GVJv2FOqkzz+M6m7gSSfoibr2kxxtiwbMfuqaoaYLtGDjG0RrlAT6XthpmyofrqgUfbG4Zwhpj1XIxmrAKeYVt1RMhaHs2tga1vDfIch9GbEjss9J5GuETSs88HtZqNl1v91sRRv+Zramg+fDQ== 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=1p4zUjT/jKKjvkjrBcreHQL06uK336ukd+TCZ7NrPFY=; b=ocuww2htHHfL6ytwSfEB7U73asn6li3TfVZFTdJCf9F+cwq6u31cAqnJVnaxImlq/YkGT83m3ZmCVLvgBz+1oLqxmvw/+fLUR2e14kyrDvYgrDkKMpbxsNOJuUmx8Jj/MmDFN3lX1bLOwd0cIKeX9ouqkXsphH607LY99O94/9M= Received: from BYAPR12MB3367.namprd12.prod.outlook.com (2603:10b6:a03:d7::32) by BYAPR12MB3366.namprd12.prod.outlook.com (2603:10b6:a03:db::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.20; Fri, 7 Aug 2020 17:49:26 +0000 Received: from BYAPR12MB3367.namprd12.prod.outlook.com ([fe80::38a8:c0a5:6e9a:c315]) by BYAPR12MB3367.namprd12.prod.outlook.com ([fe80::38a8:c0a5:6e9a:c315%4]) with mapi id 15.20.3261.020; Fri, 7 Aug 2020 17:49:26 +0000 From: "Somalapuram, Amaranath" To: Ciara Power , "dev@dpdk.org" , "Sebastian, Selwin" CC: "bruce.richardson@intel.com" , Ciara Power Thread-Topic: [PATCH 20.11 04/12] net/axgbe: add checks for max SIMD bitwidth Thread-Index: AQHWbNS5XufH8yHCFkqWfi79t9nUF6ks7ELI Date: Fri, 7 Aug 2020 17:49:26 +0000 Message-ID: References: <20200807155859.63888-1-ciara.power@intel.com>, <20200807155859.63888-5-ciara.power@intel.com> In-Reply-To: <20200807155859.63888-5-ciara.power@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_Enabled=True; MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_SetDate=2020-08-07T17:48:29.9438758Z; MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_ContentBits=0; MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_Method=Privileged 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: [49.37.196.165] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 2d729040-f667-44b5-c0cc-08d83afa3a37 x-ms-traffictypediagnostic: BYAPR12MB3366: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2657; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qyGCb9/tzvhs4ktcAodjPwq58RGWNuXbS4SDAa8SwZXEWyaGiC+HZpwqGCM+cN5lWWAn4DhPDioS6OwheCecKd42aJsMPzCXBtTHF+z7ieaJQOq6ue6CJwNrGNi09dFUjc9PUExsBh3iKfUBGo4EpuA6Rj9a4QyyX12zsxQxV/vn1PXWv+M1iWfKh1Y5lCygn2xmGQdaUG4kwIT7KrL5zJva5IyzBrQfkM+Q5z0k5wn95jC96tz2iC9awBlUyojZz6tsShY733sb8zXJkhh5AZlEKDpKfjEaDaZHOpQZmXlY1/ok2lvOlG08l6C+1u3/dSYBibE8sR6+G4sbXgXaOc846DLwZsj45+KQuWCSd9EyxuTiHS8YxnSK3EZ7LqFcenWkSE2aEoDJYgR/wYGHsQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR12MB3367.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(396003)(136003)(366004)(346002)(376002)(4326008)(52536014)(5660300002)(45080400002)(66556008)(478600001)(76116006)(110136005)(66476007)(64756008)(9686003)(66446008)(316002)(54906003)(91956017)(66946007)(55016002)(8936002)(6636002)(8676002)(186003)(2906002)(166002)(26005)(33656002)(53546011)(6506007)(83380400001)(7696005)(71200400001)(86362001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: kxalF6x0K3yogzXIwIyVckopCHMShKd6OEiLNr4d9a9c/oeSx5a4f2qTEuKz8MZlkpIaqmLH696p4evOgp/7oloaF8qxJCBQzw7E37176i8l7zHMaQHcPH68yVpThZPF4baXfDJZ5xJ+8a0c50POOcBvFvdetotJULzABxT2Y6UaoGh0ZKMfujJwNS63Hh8q65L6K7qhWo0tdm1EbwSiJ3NvhPxY30UMCxuxTGr4CJaf5ONGWetoW9t+eFlFBgjfwjVaQJpxsRiU6xdYPQR21nWwrVOAWJRxHOimO7Yopg85CREUGlWi6FFTRJZ/DfslZlmZq54st1SMtZF5FBkyYksu/80+SiAITTKGPmT6B3elpvgaRp6TqCVjuJqoP9wQiLbOvE2tMwCc1YRO7oG1WxDNxMvv6uJCRn2jdtwrnb4TTebf+jaELcP/bYCAH9kEENDQXBbqKXFdGOMVWijUnyrRhTN43Be71kVUeNw/clTaXe7mtaGsIR0Mp+P6NjsDzh/pWSHy1LOVF7JtHOi7t7DEnUiB0ODFZtz4t74iWFU6Xs/PGOp1ews7yCYnKeoDH+g4JzHvlGIGitykkiKNLHmPT9BLAIN7fTTVS041DvayCTdqJ7j2JFAV1CysqkanZ0t04VM550fxNGtz+Harsg== MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB3367.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2d729040-f667-44b5-c0cc-08d83afa3a37 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Aug 2020 17:49:26.4123 (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: bYZ3QnpCD8RZwBH1KZxRajhQWf33SM5rSWNk0xZHExXucJqITcJGKKbdwYWYxFNZTauoCSqyhJ/Aa6+4z15e5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB3366 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH 20.11 04/12] 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" [AMD Official Use Only - Internal Distribution Only] ++selwin Please check. Get Outlook for Android ________________________________ From: Ciara Power Sent: Friday, August 7, 2020 9:28:51 PM To: dev@dpdk.org Cc: bruce.richardson@intel.com ; Ciara Power ; Somalapuram, Amaranath Subject: [PATCH 20.11 04/12] net/axgbe: add checks for max SIMD bitwidth [CAUTION: External Email] 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. 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 30c467db71..6200954caa 100644 --- a/drivers/net/axgbe/axgbe_rxtx.c +++ b/drivers/net/axgbe/axgbe_rxtx.c @@ -553,7 +553,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