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 BAC5BA034E; Fri, 28 Jan 2022 17:12:00 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4E7A442788; Fri, 28 Jan 2022 17:12:00 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id DC10540041 for ; Fri, 28 Jan 2022 17:11:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643386319; x=1674922319; h=message-id:date:to:cc:references:from:subject: in-reply-to:content-transfer-encoding:mime-version; bh=1i5PHtj/jDm2GqpzRpFxqUrkv+D8zhJPgp3PozFgt1k=; b=MyzBgP6DjIvj2NG6EL0X2jemUOuCBYFiAYotckVbV2hroC0qMScv7FUM elAj5JyIHa4j3IoEavUxOgHKHn7M+JlQ+DqOajA6JZ3W6Dgk5/Qup+Yxe QET+ZoodsPqOSXHoQTUp2JMCvdrP46PeD82fCjnMhZMHTb1YaKu5+PL/4 GrhSZUcV1XOTklZ3fU3BkH5LqePNSaFGeane38R4sGDbF0vf+OdzsQYH4 g3YgDQUeE08nwErdH7nxwMPf5QCE6Ps2JUumho2Ly1tUmsHBDqIzIvAJY E9ye7AiVFP4p/tvJwnQ2bqO17zpo9RCH0i/5gVwsAx7Kr6uIvTDbzWnhm g==; X-IronPort-AV: E=McAfee;i="6200,9189,10240"; a="245989486" X-IronPort-AV: E=Sophos;i="5.88,324,1635231600"; d="scan'208";a="245989486" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2022 08:11:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,324,1635231600"; d="scan'208";a="533547111" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga007.fm.intel.com with ESMTP; 28 Jan 2022 08:11:53 -0800 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Fri, 28 Jan 2022 08:11:53 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Fri, 28 Jan 2022 08:11:53 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.175) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Fri, 28 Jan 2022 08:11:52 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AkNbJPUt0pRhQe8PUcEGDMQ2Q7DeV/LydUUeryWkeSB4r4GSSvoUqYbCkncbJGRik+k29o1It83nS9Da1iWSI45VxiSyvQ5+RZUAAtAqmnjl7JeLFPXijsFFZxg47ZArwhSOR7ZsPN9Ylge2FCz/qdckUpHsfQV0KNUz3SSKtq+V3eT3Wkch7AlXfj7NJzWicb1L2RP5IY5YJZQYxqYqkKyfoQdDsDuQ11qPkE/vcicXB5ROsSFJm96hWWqSOLdURm2Yg1mt61DUIYnFY3H0BY8mLjbdjM6Bytvfbzv/5cHRT0Aayh8D6XUS94jnqSWAniyfJQeq0eYBfVrwELy8yQ== 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=meM61w5mlM+Jj4QlPVaJfF2KYd8mWIQorj/C39uzTLo=; b=fbjD8nCZYwD/G7TNEya58qqvr9bf7tnxJCIZt09rpQJfFyCM+EXX0+mBi2hcrPQXji4X+7BMl4bwizRUUx/Nyp1GysMwhc+6+8l479Gvbm2H+v7alLjlbfHU8V9hNVbhuzP/oA+qm/6d7ENzARiQOYf7DkUFa7N8uGLJyAuX2JRgftCEFIT7/eDGgAtLWdiw8EECu4+1QRvRe8D6lxurQg3TJ9lei/OKbod9cr2kLp7yQ35+fhXiMjV01yrFEQdHnj7T6zqdc9XUbWHWyywDNjXhwcjHRXCCeVk2UPcww2PMdc+qdOZECGcZooQSVZfN+Ux1cfvvHAVkpnrm5Mg3Rw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by SA2PR11MB4891.namprd11.prod.outlook.com (2603:10b6:806:11e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.15; Fri, 28 Jan 2022 16:11:49 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e%7]) with mapi id 15.20.4930.019; Fri, 28 Jan 2022 16:11:49 +0000 Message-ID: Date: Fri, 28 Jan 2022 16:11:42 +0000 Content-Language: en-US To: <20220124065613.2197436-1-jie1x.wang@intel.com>, CC: , , , , , , , , "Jie Wang" References: <20220126063016.2384393-1-jie1x.wang@intel.com> <20220126063016.2384393-2-jie1x.wang@intel.com> From: Ferruh Yigit Subject: Re: [PATCH v2 1/6] ethdev: add L2TPv2 RSS offload type X-User: ferruhy In-Reply-To: <20220126063016.2384393-2-jie1x.wang@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0463.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1aa::18) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: aa13eff6-0a5a-44dc-ebf6-08d9e278e32a X-MS-TrafficTypeDiagnostic: SA2PR11MB4891:EE_ X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iUIxMzkMtRVzGcinlNvxacc1xXjB+ao6aRzxUgfno48Ndg9DFOrl0ouYJAmNXbf31Ww9Aw3CUUq2MuVGATNq57FuPQHXNu7nPpupbVwyXZBe2xkNALhDGhLeFoCqkfS+t0VupYoV85mxUZQBj4zb7opY0e8CBS1V2MCNZDAP0VNuM203FSrQvcT5k3QCsynUz9GacO2+oEaQulyCasFqF62KJLwm/LIbXp5a0wPSfwoF+LdkLy585+fBZPmSJ3DqlxkHph17WSQNtrYl5bvTG/P6/U9TKG+QlK9bT7TnCJGv6qzJi2JrNRfce8mamMQtd5u1K7vYjmWBkAUD6QTTpFIKfkDXtzqJueNQvMvCUvW/dwFZ25c/rVjSCAAx3iqqgfX9HmjdwYhI9imTjJIiRR4qwEIHRuJdKnS+rlgwBZdz8lZH9aoZdCouDqTGOavVCLMQAMo1CxPgRuS3UWnuo5U5LVgmkCKAFBy+zmV0nCoWYWBuN2gdiB3XiDv4eBOG6L9X/f2XgJqJbrj+n7RgEJHY/42BtxRpqmlBILs9kd9I04BApLQscOvkv2QLozCmd/k/sxVSUcUcPRtLqKJ6RNqo47c/gVlxsCU5AEX9jO6eW3I8BqSqqszzOpbfa7BKn4an2wO4702tiABwBrTG1S5YmizVqUaUS9/4dc/rImHgDxLSVULd1KPnR1Xs5+LM05C5t2gmr/d8HBqqbxiIrA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(6506007)(6512007)(6666004)(316002)(86362001)(508600001)(53546011)(6486002)(31696002)(66946007)(8676002)(36756003)(44832011)(31686004)(186003)(26005)(2616005)(38100700002)(4326008)(66476007)(107886003)(5660300002)(66556008)(8936002)(2906002)(82960400001)(45980500001)(20210929001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?anFYeW9HMjhOcm1nMmhOb3VDM1UxdEpwWlR2S1NnbmlDQ2c2SEIrUmx2T1BG?= =?utf-8?B?NHRRcC8reVd0aXd1SU43bFZXM0ZDSzZHWFNybjRBUG0wYklydm42cVJqR09K?= =?utf-8?B?bVJzUzY1NlFDSGNXaWhMWklNWElGYmtDSUhSWTZaZjVRN0p6dWdoV0xXR0Nx?= =?utf-8?B?NVpSMkpoZFJzNHkwanFRTkVDRVlHS1pwU2VJNU5lMGlEZElGekVHSE43RHRY?= =?utf-8?B?cjhKWkV0ZXBDTlY1a1Y5MW9pWGNwdFhWUDhsei9vMTNiZ0ZKbERMSzd5QnhY?= =?utf-8?B?aGxrNU1NazVvWWpEa2RHVGtIT0F6OS9hNzI5S3cvUGh5VDdOMVlJUUQyQkgw?= =?utf-8?B?UnAyanFqUnBuYzlGclB0SFlIVmQ0NTVxUTBpcVprZFE0VGJXYlNzTG1WK2ZZ?= =?utf-8?B?N1ZVTzZGL3dsN3BSN09jVzIvM0FMM1F5UlloQVR2ckdzL2xleEtJbHJj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ebf6-08d9e278e32a X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jan 2022 16:11:48.8735 (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: HWjJSAyH8t0OAszxsn2HgIbL2F43T7+9LOiEEIK5KuarYeKX6jICp0W4u7CrSCmDTMH2+PMMVpGSiKiqXU4aGw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB4891 X-OriginatorOrg: intel.com 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 1/26/2022 6:30 AM, Jie Wang wrote: > This patch defines new RSS offload type for L2TPv2, which > is required when users want to distribute packets based on > the L2TPv2 session ID field. > > Signed-off-by: Jie Wang <...> > diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h > index 147cc1ced3..1e493a1e33 100644 > --- a/lib/ethdev/rte_ethdev.h > +++ b/lib/ethdev/rte_ethdev.h > @@ -651,6 +651,13 @@ struct rte_eth_rss_conf { > #define RTE_ETH_RSS_L4_CHKSUM RTE_BIT64(35) > #define ETH_RSS_L4_CHKSUM RTE_DEPRECATED(ETH_RSS_L4_CHKSUM) RTE_ETH_RSS_L4_CHKSUM > > +/* > + * Below macro is defined for RSS offload type, it can be used to > + * fill rte_eth_rss_conf.rss_hf or rte_flow_action_rss.types. > + */ > +#define RTE_ETH_RSS_L2TPV2 RTE_BIT64(36) > +#define ETH_RSS_L2TPV2 RTE_DEPRECATED(ETH_RSS_L2TPV2) RTE_ETH_RSS_L2TPV2 The RTE_DEPRECATED is for old and deprecated macros, please don't use it for new macros. > + > /* > * We use the following macros to combine with above RTE_ETH_RSS_* for > * more specific input set selection. These bits are defined starting