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 11E2B42368; Wed, 11 Oct 2023 19:04:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EFBAA40695; Wed, 11 Oct 2023 19:04:40 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2060.outbound.protection.outlook.com [40.107.93.60]) by mails.dpdk.org (Postfix) with ESMTP id 8500B400EF for ; Wed, 11 Oct 2023 19:04:39 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PFuAxKdehpRN3H8B4/z6olWOdTFm1OSR9ubLZqc9HpIRPq2J+nmD92jT839L8w9a7fEG1+OraR3qnbAHH0wn7j1dJtdKjEWL7EaAAG3i3Nhkkm8wBfHxAzA4xtWzG1Af5Z9YioNlIiRv5OH/LPQ3ppyBVOPZFXulYOrv6+VcP0DHsRirwA9HwJN7ca+Sk5EWFbl1mkk6SI24c7R12hcqmGpgkA7MVZUE9TBxBH17pO5Bs0oqmyWVoafYBy4SbDvtRBUlWM10t1xKOUxMtq5KLiBsd8/k63eWlQb6LGZBl9T2b2cpDW+ileI/FasjzynlrDgJDQh1As43077DC4O1Hg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hQwA3xUvU5fZymmavkshfbQCpPoBdpIWhbx4W/fg17s=; b=KcdLaaNWPaRmR0NUxSQkiTIBSqTaBFMvwvt7H7+0o3f8AQDlt/2z+iFF8Kv1Uzmy89yU+ic+flwqgJstAmMG95+49qyGF1/2mSNmiHRP6/CDa5MC0sYMd7Ke0EBm5lF0K7y0T+BpjFr2A8MtizWIqRCLaEPGAs8+dvjWVOXFVLGDoL2jLZa5c05C136Rl9zbFE4wHW99oW+8EEwIiQn8RFMkLDaMfgtC3Psmg1UAkAi9q4O8JwuNLS/spnDDQKJwiSuxn473naUWRT/LsKBouuyZqF3f4BGrEKHgxQjtjjYU6jkIJJqEZ1vF/4xFby2Tq4o4qfhkSYlcCUowM5q+5Q== 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=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hQwA3xUvU5fZymmavkshfbQCpPoBdpIWhbx4W/fg17s=; b=zXc6ohwd1WiupOopVHofExqm8FvULgiS1tKIZdd8B7X6fSAqReaCzAD7YxUQkdDIh5JXtSd1MWXJJp1HPFuwTr1Zjq7rxa66gdVWtW3m2Gqskq4DdX1UHHet+TB86yHgGyoql4gxOaWdvEOv1s2oUvTbyFkvGqxbVH6jShi5WMg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by DM4PR12MB5229.namprd12.prod.outlook.com (2603:10b6:5:398::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.44; Wed, 11 Oct 2023 17:04:37 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::102f:c69b:d3e5:7fe8]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::102f:c69b:d3e5:7fe8%4]) with mapi id 15.20.6863.032; Wed, 11 Oct 2023 17:04:37 +0000 Message-ID: Date: Wed, 11 Oct 2023 18:04:36 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 08/40] net/cnxk: check RSS hash algorithms Content-Language: en-US To: Jie Hai , dev@dpdk.org, Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao Cc: lihuisong@huawei.com, fengchengwen@huawei.com, liudongdong3@huawei.com References: <20230908080030.3837515-1-haijie1@huawei.com> <20231011092805.693171-1-haijie1@huawei.com> <20231011092805.693171-9-haijie1@huawei.com> From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFg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bItv3qWTq29dihLYpzd6dqB708k7 4RBz9051oLaFVGkguFw/tXmA17nx+c2uR5jx8wb4j68umG2X++0dSta5eHAVhmtXvrqPW6Ku 3FQ= In-Reply-To: <20231011092805.693171-9-haijie1@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0449.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a9::22) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|DM4PR12MB5229:EE_ X-MS-Office365-Filtering-Correlation-Id: e8a1a15d-398b-4978-2934-08dbca7c26a7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ul1btHjpYkbnd4GN8pYHBMnbq3rmb/jwyKkf3dl0TIGpH9PEkn/Z8xPWj9o+YhpALCpDdyDks5tJy3jiJwoHcJ+n+gpED8sSbJ7cXtrC6KqZc9q3fGctiLP4ze1CrOfI37Wz/0Hpt56TJcECZc/QUFNKKbcHtWhsRdPhUqGRM8opK0Dratz+Ybv6jMDLwqEhInRlMba+g40czWQvOt5Jg8HE5I76ZpkK2DtMRnIit5azFqaxN3v0EDj5uRZh0pzqgsY/k4Tc6X5EUjULgzEpkALgqOWeD0OzrDq+lepCjxZJHI3H4AxGONAyGjTHgHz8lN8H1PvONLUTdTaHyOS6o5X/2qmLz9REAyeYfIxhfulHjwStMWK02O0VwEJ4it5wRr9aMzO3xk8lQnLFLvYVZ0ZApzjbX5pIiaBucNt4V37+1hzEFaqdAt1OcQ/YiNm5UjEas/5r0gMQketuqMgWW8hWk8q5agDWYXbpqdPNzAibacJw+NWhILXZtn/eaD4zE6kJRBmeRhoV0dQYlbapcaquimUl5G4NTmfiFXXVKf72rnSmmf6h/sgIuaRpnXHubckQP+5P+tf+gxii9hIFI5qJnMWZapDOeLOp99tLPtgk0T/jWziaBqOkpiMXFvb+g6/bOsVh1DNIFKj/MQULfw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(396003)(366004)(39860400002)(136003)(346002)(230922051799003)(64100799003)(451199024)(1800799009)(186009)(6512007)(26005)(6506007)(53546011)(83380400001)(2616005)(31686004)(6486002)(478600001)(8936002)(8676002)(31696002)(36756003)(38100700002)(5660300002)(4326008)(41300700001)(2906002)(86362001)(44832011)(66476007)(66556008)(66946007)(110136005)(316002)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bWZaYWJnMWxTNXFZK01Wc3ZqMjR5YktwZ2UxYWVwdWhvSTBnQ0RGZVRhUEl0?= =?utf-8?B?YkJlOThOcm8wc3ZuT0hDZHJnclVLQXQweFhiTGJkZUtLb01semdKVk1HVEFB?= =?utf-8?B?QzJyQ2tNQnFqNXRKRHhBUEVnUHVXUS8vNU5WdDNyTkFaVFFuU0pYV2p0NEF0?= =?utf-8?B?ckVoVjlSOXZNYVlkcUV2Uys2a1NUMU1tVnkvWjlkMy9SZExwOVB3T2Y0TVdk?= =?utf-8?B?dDlTZlU1YzNTY1dqWjNiZ3NOa1hDNkxMTVpKUy9rN28yYzVaLzZPUHFSVlE2?= =?utf-8?B?US85cGhXYmd2dTY3QlZURlRaZE1uWDhxN1lub3RkUmJPeFl1Rm9FWXpBRjJ2?= =?utf-8?B?WHhHNWJ3NTdCN1gxa204RE1vRmlrZWdGK2hIbWd5SDV3bkI0N0NqdlBGbVVJ?= =?utf-8?B?eWpFZysxMFJPSk12VXFUbmtLbUtIbCsvMW5rM2EzWStqRUx3a285cWtXbjFa?= =?utf-8?B?Rj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3Fy?= =?utf-8?B?Mnk3QjdxZlhwZGJqclh6VEVreFdGOHFjSCtWWlk2VFpyaTlGbmFwMU5zWXoz?= =?utf-8?B?RVUwVWZ6c29URndDL2F5R01iSHRFaHZuM2txQkQzU1ZBNlRUSUVVYzVmR1RJ?= =?utf-8?B?YUpJekgxUEVVZllWMlJyZjZJcTMwMEM4V2VuRUdkSG5CS0tpTC9rMVJRK0xR?= =?utf-8?B?NUhQN0JCWW5xbGxtbHJad014WTNxM3UzUURXMjNSS1dPUmdWaEUwamJhVUtj?= =?utf-8?B?ZWdYU2VJUk9lOVBtaElyNTFZaE15aERrUUxTVE1xTU1UY0RSMmQxeFY5ay9Z?= =?utf-8?B?NFhHSlYzejdhSFJ6QUdtd2RzT2tST3R6QzNtandRbFhHM3F5WjIvMHNWdXFT?= =?utf-8?B?KzRZby9PTThvL1dCQURsQ1J3TlMzMDNTTnlOekVGa0xsTEM4cVVQakYza1Ur?= =?utf-8?B?Wjd2a0ZQTXJnM1I3MStjS09YQUdlRDNEMEl1bGoxdkU4NFZNSU5PdHUzejk3?= =?utf-8?B?YjVQT0E4WHJ4VytSMTVGeWFaVDlBeFQ2OHBoRFRGcU9tdFVKSi9PTTRSbHpF?= =?utf-8?B?UzdKeWpIeDZSL1NqbXh2MWFvVUwrck5kMkN3Q28xdWhFV08xSUZDV095TnNP?= =?utf-8?B?bTBoWWlwbTZqVFdneTU5MTN2eC82eEQ3N2hnYThMZ2xHTnZrNk80SENZd0NN?= =?utf-8?B?VVh6Tm5uYnhsZkJiYk8xUThwWVpaMlAyTDJpa2pENk1BS0ZnUzJGRW1DYlFB?= =?utf-8?Q?UI4IfLDHi6aOPJ9yhEepyFIDy?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: e8a1a15d-398b-4978-2934-08dbca7c26a7 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2023 17:04:37.8714 (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: n/BVVAceBp9wErFBZIXA8juwBnUDxhjxXrpGWZde9IescDK6A52dFtqLnykfkk+1 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5229 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 On 10/11/2023 10:27 AM, Jie Hai wrote: > A new field 'algorithm' has been added to rss_conf, check it > in case of ignoring unsupported values. > > Signed-off-by: Jie Hai > --- > drivers/net/cnxk/cnxk_ethdev.c | 5 +++++ > drivers/net/cnxk/cnxk_ethdev_ops.c | 3 +++ > 2 files changed, 8 insertions(+) > > diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c > index 01b707b6c4ac..dc150de745df 100644 > --- a/drivers/net/cnxk/cnxk_ethdev.c > +++ b/drivers/net/cnxk/cnxk_ethdev.c > @@ -976,6 +976,10 @@ nix_rss_default_setup(struct cnxk_eth_dev *dev) > if (rss_hash_level) > rss_hash_level -= 1; > > + if (eth_dev->data->dev_conf.rx_adv_conf.rss_conf.algorithm != > + RTE_ETH_HASH_FUNCTION_DEFAULT) > + return -EINVAL; > + > flowkey_cfg = cnxk_rss_ethdev_to_nix(dev, rss_hf, rss_hash_level); > return roc_nix_rss_default_setup(&dev->nix, flowkey_cfg); > } > @@ -1373,6 +1377,7 @@ cnxk_nix_configure(struct rte_eth_dev *eth_dev) > } > > /* Configure RSS */ > + > Looks like unintended change. > rc = nix_rss_default_setup(dev); > if (rc) { > plt_err("Failed to configure rss rc=%d", rc); > diff --git a/drivers/net/cnxk/cnxk_ethdev_ops.c b/drivers/net/cnxk/cnxk_ethdev_ops.c > index 3ade8eed3626..b6cba99cbb7f 100644 > --- a/drivers/net/cnxk/cnxk_ethdev_ops.c > +++ b/drivers/net/cnxk/cnxk_ethdev_ops.c > @@ -1054,6 +1054,9 @@ cnxk_nix_rss_hash_update(struct rte_eth_dev *eth_dev, > int rc = -EINVAL; > uint8_t alg_idx; > > + if (rss_conf->algorithm != RTE_ETH_HASH_FUNCTION_DEFAULT) > + goto fail; > + > if (rss_conf->rss_key && rss_conf->rss_key_len != ROC_NIX_RSS_KEY_LEN) { > plt_err("Hash key size mismatch %d vs %d", > rss_conf->rss_key_len, ROC_NIX_RSS_KEY_LEN);