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 5D440A0C40; Thu, 5 Aug 2021 15:27:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1EA9340143; Thu, 5 Aug 2021 15:27:27 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id EF92640040 for ; Thu, 5 Aug 2021 15:27:24 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10067"; a="213880008" X-IronPort-AV: E=Sophos;i="5.84,296,1620716400"; d="scan'208";a="213880008" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2021 06:27:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,296,1620716400"; d="scan'208";a="668912763" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga006.fm.intel.com with ESMTP; 05 Aug 2021 06:27:23 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Thu, 5 Aug 2021 06:27:23 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Thu, 5 Aug 2021 06:27:22 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Thu, 5 Aug 2021 06:27:22 -0700 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.171) 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.2242.10; Thu, 5 Aug 2021 06:27:22 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JxSNDV2HTZ7lITpqP0B814nim+9slBcPdo1c84Xg9dsBkfYUjXuEtR8qpHn5zYmAbL8pPXDAVkcRrbw17SnaZma6QixhQTDGyt4hflfJEyyhtEpng/oexfGWU2zZPhT/AgIDhkYxvB9w6FMUkAd8y2oSO4a05g6Q9Oxuq1STr0QroAcvkUUQ/LCryq1zUDx26C4GhnPSkB5vKgTRz/GX4IfUo9oqVSvJ/+y2Vbks2f8JtTKNuuxHr/aQAx4le+WRDILjKndWiK4WBmeYJyHemvlAICxryV++DSZ6REddLptjht4Vo8O3lTEa1DmbOFjIjPbmN39oPp5Y52RnzySyZw== 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=9kQVANePOQXWwB/4UubKhx1ovvmvbrCF844Jg6xl77c=; b=mYueGbiwC6I7qQbPoFzizTTJX4wFj/vjrgGZuhMUFWnAyqO5NwI2nilKaODekeztxIpmibE3In2uVS0C7g8su083uSu078QG57R7bNvjkkbgY6ZNqlSz7KxnzEr9ArXg0AiF1fLPhFMWGad2jQYVMI4mIT4NTDOWtgPUsbocFMrPFg2l4qCgORKOkxLEOTPNK7EvUHQK0JHAuCksgiZTawLaYMD+8y3dDjY8oZ01KDdAqoHWq0A/zvQ1Tf6nLseIXidBHWbuTmgzikFMPOzwXlb3hF2SP0A/X9Ql/Wzhn3NPGDREvaVOyBzu8JSCo3ImBPNk+gZqRz0BqMRuUmJ5sA== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9kQVANePOQXWwB/4UubKhx1ovvmvbrCF844Jg6xl77c=; b=DTvQGctm3nXwn/qGo/70aFY3+NGc08QzOzOvn6cLA8mvoNueeq+uSvndrRBxcIbHuUEgy3j2uftE+D86E8723Bx5JabDFxz07jq0Jcz4xTRI3hdVlTUYnTUFIGYYY/NadPOSRSWst6R0NF8YtKYIHJ+V+9FyKtpqdFsXRfQdu3Y= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=intel.com; Received: from CO1PR11MB5012.namprd11.prod.outlook.com (2603:10b6:303:90::18) by MW3PR11MB4569.namprd11.prod.outlook.com (2603:10b6:303:54::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.25; Thu, 5 Aug 2021 13:27:22 +0000 Received: from CO1PR11MB5012.namprd11.prod.outlook.com ([fe80::8dc5:29c1:180e:11fc]) by CO1PR11MB5012.namprd11.prod.outlook.com ([fe80::8dc5:29c1:180e:11fc%6]) with mapi id 15.20.4373.026; Thu, 5 Aug 2021 13:27:21 +0000 To: Jan Viktorin , "dev@dpdk.org" References: <20210805151451.59932409@coaster.localdomain> From: "Medvedkin, Vladimir" Message-ID: <32cb2d90-2a08-ec06-0c71-031b6187c472@intel.com> Date: Thu, 5 Aug 2021 15:27:15 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.12.0 In-Reply-To: <20210805151451.59932409@coaster.localdomain> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PR0P264CA0210.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1f::30) To CO1PR11MB5012.namprd11.prod.outlook.com (2603:10b6:303:90::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.198.151.51] (192.198.151.51) by PR0P264CA0210.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1f::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17 via Frontend Transport; Thu, 5 Aug 2021 13:27:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d63304f3-013b-418d-fe73-08d95814c16a X-MS-TrafficTypeDiagnostic: MW3PR11MB4569: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FEKJYrUgS76Rg5KlqMhkZ57qFbUMeuN5OW5dk0Xg8VDQgg5/kQ96bdv/iVFlXx/eXh98w4XIlJUsjHWoUqQpsaf0ZnzQaDtQ0VqCA/lWra1/J7/FhyBt4OFQJORVk8ShAMalA59ebG/AcIAXPNDWZxHixTc4uM2UG8uuaXSz0DOCVFvtpFFQVL8Z6XuQdEVnHXOmIRTHx079gN1ahl8nmYIVDaxfnVg/WQKVmgivMajaShRBw3smdixi1Hr/YwFJENIIwVvvJFPwraMdrH3KPBHWL5UTbR9sLWsjkrgoeXYVqjcsXbqmvujLvDmoU/EE1k/08RXzYjs63BG12xQRdbgvmg/kV8TXAG2PM4cZhu+VXXNMUn6Sc6BSDxydeHjWIDn0lpPREx7DCMoh6p7MQT1k0OUAC4+WFUJbiMNzhxbHsIad93STbW2m2X+GzrWd/WmnE/1039Escvvl5fsd8jOV462Dr/LH1137t7FeWivBYk5UKQGLWDK2I/UkjLf+FjHE1JRTiXy+VdeIl32p5/o4EFAUiFKCVGAo/yOX8GoH0Ws3on+dJZ6D1MDtjSBLXMhj09V5HAUtnv0geqEVPjHL34icmOlQmC/nRRgC7i1qbQ1G6EEVIUCDUjyexMxifWBpYbhtjO9w1YNIkcXrdnWHDFA5mHyznfO4HeikmYt1eisS5wv6i4z7unnPqmsMsW3bu44b0axZc5CJP1nRWmGjATLi7yLekixoL1JLiVAzbNJ08hKP2hE4ZZOu1xqqB7hwT7d6uJuOpDge1htqmg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO1PR11MB5012.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(39860400002)(376002)(346002)(366004)(396003)(66556008)(31686004)(26005)(8676002)(66476007)(36756003)(186003)(6666004)(38100700002)(83380400001)(31696002)(53546011)(86362001)(16576012)(6486002)(5660300002)(110136005)(2616005)(6706004)(316002)(956004)(478600001)(66946007)(2906002)(8936002)(3940600001)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TWVDNjFmWnpJdldXWUpZWmZrTW1OQk5reFM2QnE2cWsvL29QVG1JeFhrcUhO?= =?utf-8?B?UnZUS0NXS2ErKzBXa2F6T3dqb3o1bGViS1NPYUp3TUtMU3RUbFNrcG4vdEd4?= =?utf-8?B?M2p5N25iUkRvSFp4Ymw2Yk10SmkwMTkyZkQwcGptTkM0bHRmWkFVbEZrYk9o?= =?utf-8?B?Y3Q5Q1lmeGZOR201OXZTRGdlMjRlT093WTdLMjdoRUxqMlJ1bEkzS1BiTEE5?= =?utf-8?B?a3dmNGd3djEzWjJqWVNXK3hNbVE5S3B2dFY1QTdTc1hJdnc5RkFMQzlkR2ZP?= =?utf-8?B?eEh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Z5akZo?= =?utf-8?B?MkpVQjJxVktzRDBGM2w2N2VvT2R0Qy9xUnZmNitxcDMxN0E0aENucmEvTkxp?= =?utf-8?B?VzU1VDVRRmRtUFlyWUtFZDErdnVaWDY3M2dOSGdna3Bxc1htNEpQUkxYaGFn?= =?utf-8?B?V0VOTm5Ta0FQRjY3cS9mQ3RsNS80a1A2SHVaelZSUzU3eVBSZUY2UnBiL3ND?= =?utf-8?B?VENHYXF0aXN3bHd5dnd6MU1nbFVxeGxtT1k2S2pxMzJUZzg4UHVWdFIzNzU0?= =?utf-8?B?ZWRrZmhUbEJ6TWNJVkVmaUZ1MjF3TTRiUEFiQjBJaGtDMjRrL0R5RjBVNEYr?= =?utf-8?B?MVRsN1M5Y0RmTmlZUVB2VXpyWFRVUVZyWFhSUWN2ZkZENW8ra0ZVNWFIVU02?= =?utf-8?B?NEZiZHh1b2dlOFFnMHdncCsrNkt1VUkvc1FkTXJsWUdlMkkzWUtzY2hid0E1?= =?utf-8?B?ZVRjdWsyd3R3WVF3YjZaUW43S1RzeTJWNXRkUmxQdVFQVDlkcGxrUWIzNTdo?= =?utf-8?B?bjkydnBIdStzVHgwNENteDdRazBrTEt1VGF2OTJhVFdlakw4YWlMa2lnajdw?= =?utf-8?Q?QzCuiSPzsCdn9fLDxFbx0ILf6bN3llYvFnJfCGG?= X-MS-Exchange-CrossTenant-Network-Message-Id: d63304f3-013b-418d-fe73-08d95814c16a X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB5012.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2021 13:27:21.8246 (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: ggwheQvWLVpRjiBFvGCDO8bzxFzfpaIp2GqqpLrWf7w+rz/VWS/iq9UHVmQPNNCqqu6DhIp3SPm/XWlzIw9j+JFv9I9Y2wEKBfgAHnNTOaQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4569 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 2/2] fib: announce experimental tag removal of the fib API 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 Sender: "dev" Hi Jan, The RIB is always used as a control plane struct intended to maintain the correct content of the dataplane struct, such as DIR24_8 for example. So it is always used on _add()/_delete(). For simplicity you can consider it as an LPM's rule_info. But instead of keeping routes in a plane array as it is in LPM, FIB uses RIB which is more suitable binary tree. On 05/08/2021 15:14, Jan Viktorin wrote: > On Thu, 5 Aug 2021 15:08:13 +0200 > Vladimir Medvedkin wrote: > >> This patch announces the experimental tag removal of all fib APIs, >> which have been experimental for 2 years. >> API will be promoted to stable in DPDK 21.11 > > Hi Vladimir, > > I have a question related to FIB. I am just learning how to use it and > I found that each FIB always creates a new RIB internally. There is no doc > about this topic... > > If I understand correctly, the underlying RIB is only used when > dummy_lookup() and dummy_modify() are used. But they are only used when the > configured mode is RTE_FIB_DUMMY. Is there any reason to create the RIB with > RTE_FIB_DIR24_8? > > The issue with this is that each RIB allocates a new mempool internally which > can waste quite a lot of never used memory that would be unused with DIR24_8 > implementation. > > Regards > Jan > >> >> >> Signed-off-by: Vladimir Medvedkin >> --- >> doc/guides/rel_notes/deprecation.rst | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/doc/guides/rel_notes/deprecation.rst >> b/doc/guides/rel_notes/deprecation.rst >> index afb599a..58826a8 100644 >> --- a/doc/guides/rel_notes/deprecation.rst >> +++ b/doc/guides/rel_notes/deprecation.rst >> @@ -195,3 +195,5 @@ Deprecation Notices >> communicate events such as soft expiry with IPsec in lookaside >> mode. >> * rib: The ``rib`` library will be promoted from experimental to >> stable. + >> +* fib: The ``fib`` library will be promoted from experimental to >> stable. -- Regards, Vladimir