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 BABD9A034F; Tue, 11 Jan 2022 12:56:25 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7C4E7426E6; Tue, 11 Jan 2022 12:56:25 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 6B1EF411AE for ; Tue, 11 Jan 2022 12:56:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641902184; x=1673438184; h=message-id:date:to:cc:references:from:subject: in-reply-to:content-transfer-encoding:mime-version; bh=UCb157y/sckMpj42i7ZXNxop0MBbXc4LScebbZsnlDE=; b=NRGuPwokxYpX9t2AdPMCKO6FbMrJVItQYjAZ9f4lLhPKHrvFRkBnIlNB iIPIzfZ/ei7wTN2Lrz+zOl6WwNFByFLiP3sYsFXryFjn/8D38SB3COGPA SMB9Hy05B8wHEqzv2doxnBAeh4jJvED6kFwf0j5hc+Nizhe4VkwWpKjBN jxSzNH/MmIXVPm1hfl47ayuSDidH1anjVWP4skZxLOKCs4mmAzJa6z+AE nfcEOeRs1BCeziIkd0v8uoy4Hzg/w1b4FcpqIl+zBwKiaOceuSJBaTm+m z4Zqo8eCNVXUEMEIBrKKYIy8JEk3fGY5bOz4uElDhtv8Y4E06YA6POXbW Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10223"; a="329811276" X-IronPort-AV: E=Sophos;i="5.88,279,1635231600"; d="scan'208";a="329811276" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2022 03:56:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,279,1635231600"; d="scan'208";a="528716159" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by orsmga008.jf.intel.com with ESMTP; 11 Jan 2022 03:56:22 -0800 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 11 Jan 2022 03:56:22 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) 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.2308.20 via Frontend Transport; Tue, 11 Jan 2022 03:56:22 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.174) 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.2308.20; Tue, 11 Jan 2022 03:56:21 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LdpHp9g+3pERwHQgs2WAR1kh2HKUQnYXncvvYN7zRN4K3G3snzLTJwilLVO8onqLeOxnJ+P4RHo8xxIGOXkOoQho/3DjrZ1eaXcw+d5Ct/XREwS2ERJru0jAoTppDydx/XYqz9Cu5WDI4d2Gkmz020VlNk6uz1AZiukIV1qOUBqYp31GGAWH9xNUPQUCbIVie4IKbhL7rmEgDk1CwROqtZ/MUICl/ggXGax4U7PeNG7Yxho6OiVcqJL7/vLzdO1hYaDFxJIAkK5wJl1Twn0sPRMknokoeLoYN087ylRJCK+OYFOOlG4hUHKFe7r/1teMxPKWnlBV8eLtgUVZTDf1oA== 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=tWlbdnN7cT6iBhso7Cv1mZ3Nw7TkqjHdE4YAC89i0YE=; b=b9Gfi2WlF7w2FKrubQlThfH9semH7SF6SoINmE2eMh38ZoPgYGkRyIB/2eJiO3U3cpwqKLiIkpcvPHf0AGSrw4oyf9CrIdhzjnNxPRZe72hUa5MVpKuBG5VIuC64IN3u0DDWHAhJ/TD+zOhW7r1PgfALmnQ7qU2qvmiB/YLcz+mkv6+Ef+m1k7vMYBRcrkoH2MrjaZN0t7HzZPh+7usSosTUAkhLUbPDPrBuMjs25dLLmzB+Zw3PzI/Snr296Favez+rPpKXc14/ENYrVE4xn09SRC2/xr9GXCAdFfteH0aeQIjf2Xg6SAYlSlfcHMkBpUPw4z02iCNZpHjyoBi5zw== 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 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 PH0PR11MB5158.namprd11.prod.outlook.com (2603:10b6:510:3b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4867.7; Tue, 11 Jan 2022 11:56:20 +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.4867.012; Tue, 11 Jan 2022 11:56:20 +0000 Message-ID: <27efba59-e991-9f50-69f3-d4df7e2b7823@intel.com> Date: Tue, 11 Jan 2022 11:56:13 +0000 Content-Language: en-US To: , Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , Ori Kam , Andrew Rybchenko References: <20211109094204.2343402-1-psatheesh@marvell.com> <20211109094204.2343402-2-psatheesh@marvell.com> From: Ferruh Yigit Subject: Re: [dpdk-dev] [PATCH 22.02 2/2] net/cnxk: add devargs for configuring SDP channel mask X-User: ferruhy In-Reply-To: <20211109094204.2343402-2-psatheesh@marvell.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DU2PR04CA0352.eurprd04.prod.outlook.com (2603:10a6:10:2b4::23) 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: 75985ee4-b365-4b7e-06f0-08d9d4f961b9 X-MS-TrafficTypeDiagnostic: PH0PR11MB5158:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RcbwnQsnxWIT1kIu5wzvKFLfTT/7/7lwB/CoI+aoLo+/ul727VABa0GPaEQrlVN4fp9QE/eP6fLWFve03ZhMOlyWqiMnoG2nuveX1J3gfeGCfdPEk+FFDfXpvOD9MnUtvG28LOMWSQBJUQz0BKzSmjTghHFyeogVm/OgQIdRV7ugcwWNNDUNY7xkLD/rjdFNbxN/E3Uk0sH09WyaSz9XcEuulJWrH4Zp7kjiwZ52Yp5y44ulCceUDGU9oLyKSnMVxq4hGQD8eE14g4OGzqrFmoQluF4bseaROgBBRErLXhtnAwpiMtxBzXFDgwMU/AcLngL8xqqLGHtD5K0leo3a1ApXvZCTpTLNYymILKPcimR8Avry3Es5astdFwA57TiLHhSJj4hgPE4KCub3EGJB3wNHl4kRcG9vARCUbR/doqOQ1ne5hs7iEFgO7n4Snk2joyJjC7s8rIGPytdXstbcTcwpwa+eRMTlW1RxwlXeQUdVIDhufB3roJb+AoUPnmp63tsFbMyGy7HxtE/FuQtLYAeoAjr58WHVYksRpAvsxG0yjhz2DF+mOwu57Cmhire4cSZEx+p2QsqKMbYqzc+2RVgd7D/Fc7RAQt4Wc81FuF9zIJJ5gYGvXugAEkftMC/ELAxLJxElPYlP1wtmCFH6yTsGxfuzBMsBC+d0RaMTyD4h2AVdzM2hkc5R5hvB8DNAFGpo0nXDhwj3kcMwh5v7QQ== 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:(366004)(2906002)(6486002)(53546011)(44832011)(6506007)(36756003)(8936002)(31696002)(6666004)(66476007)(508600001)(83380400001)(66946007)(66556008)(110136005)(4326008)(54906003)(8676002)(82960400001)(6512007)(86362001)(5660300002)(38100700002)(186003)(2616005)(26005)(31686004)(316002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SW5uMk55V2NEdXBpb25DcUpyek43czRXV01Vc2xxZ1JUaXZydVpLSnZ4SCtJ?= =?utf-8?B?L0YvUmtQSXFlLzhiQldYaFRTOGYrcisvbm80ek56YlZUWjdFditWT1VUdU15?= =?utf-8?B?ZUl3ZFo2SnZhOEdsTGlYUkQ3VjJ2MXYwMmt2d29JWFZ5eWI2QitreGcxQnZo?= =?utf-8?B?UjFvbnMraEo1UWhOSUxKcTNkbElhdWVoeWdSYWVtOCtPcnBxaTRxTmltNmtY?= =?utf-8?B?OEs3MVhxZW1mZnRML3U0MHB0SVdwU09sVnFTVndIYXEvM0ZqMkFwSEtHQk9x?= =?utf-8?B?eFZNTEFMQXFSalhTNWIwSEJkYmJUQ3dwelRSeG9mL1Q5R0dSZnM1MktvSCtC?= =?utf-8?B?UG1BVytyK3dPM05haXg5cmpoV3dQVm40dVhDdSszWHJCMlhvb3RSOU8yZ3JF?= =?utf-8?B?NW9GUHlWVm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ossTenant-Network-Message-Id: 75985ee4-b365-4b7e-06f0-08d9d4f961b9 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2022 11:56:20.5158 (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: DhXcUXLLsLT+9lly0r88INa09IXhT2qemgiHqShNdaELGfNw5/49dhMv8q9VuyQxeqVMo7qX392PpS8I2l8H2w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5158 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 11/9/2021 9:42 AM, psatheesh@marvell.com wrote: > From: Satheesh Paul > > This patch adds support to configure channel mask which will > be used by rte flow when adding flow rules on SDP interfaces. > Hi Satheesh, + Ori & Andrew. What 'SDP' stands for? And can this new devarg be provided with flow rule? Why it needs to be a new devarg? Can you please give a sample of the rte flow API that will be used? Thanks, ferruh > Signed-off-by: Satheesh Paul > --- > doc/guides/nics/cnxk.rst | 21 ++++++++++++++ > drivers/net/cnxk/cnxk_ethdev_devargs.c | 40 ++++++++++++++++++++++++-- > 2 files changed, 59 insertions(+), 2 deletions(-) > > diff --git a/doc/guides/nics/cnxk.rst b/doc/guides/nics/cnxk.rst > index 837ffc02b4..470e01b811 100644 > --- a/doc/guides/nics/cnxk.rst > +++ b/doc/guides/nics/cnxk.rst > @@ -276,6 +276,27 @@ Runtime Config Options > set with this custom mask, inbound encrypted traffic from all ports with > matching channel number pattern will be directed to the inline IPSec device. > > +- ``SDP device channel and mask`` (default ``none``) > + Set channel and channel mask configuration for the SDP device. This > + will be used when creating flow rules on the SDP device. > + > + By default, for rules created on the SDP device, the RTE Flow API sets the > + channel number and mask to cover the entire SDP channel range in the channel > + field of the MCAM entry. This behaviour can be modified using the > + ``sdp_channel_mask`` ``devargs`` parameter. > + > + For example:: > + > + -a 0002:1d:00.0,sdp_channel_mask=0x700/0xf00 > + > + With the above configuration, RTE Flow rules API will set the channel > + and channel mask as 0x700 and 0xF00 in the MCAM entries of the flow rules > + created on the SDP device. This option needs to be used when more than one > + SDP interface is in use and RTE Flow rules created need to distinguish > + between traffic from each SDP interface. The channel and mask combination > + specified should match all the channels(or rings) configured on the SDP > + interface. > + > .. note:: > <...>