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 825CCA0351; Thu, 3 Mar 2022 14:02:55 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0D9A440687; Thu, 3 Mar 2022 14:02:55 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 642E240141 for ; Thu, 3 Mar 2022 14:02:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646312573; x=1677848573; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=r/tptI3YYhJkqaLWnit4ql66dGUl0DQzzucEdSXaCfw=; b=bOt0dyzH80opTcgI0DMZpW2ARb9EI5qJEwlpljYjD99g5zM8YVbPxUEx Mk2ltrWVbLEeHCWIAcyZJa5qmvYTFS29x9mezNT2FUAj4GKkxLnUIOnwg kfLGHUVr6yvWzLKfiYelevssqON/tb25IZUPALxoXK+tKLkpTyQVmpDcF pUUu3dDv++MBODLzxk5BuzY4SkVmWzTQosCjmUinJo5vaO1ojaNa5RaHi EVn1rOnivDowp0p+7BgJlvaybMbP2gC6Bpk+fmT+NCd/kb3R6kxCpR54f V9NYTP1qsIB/hTl9Xs4u/QaQ2jVLeaKQRdtf/TkUss9cVTiIG8A9lxEHt Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10274"; a="253400057" X-IronPort-AV: E=Sophos;i="5.90,151,1643702400"; d="scan'208";a="253400057" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2022 05:02:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,151,1643702400"; d="scan'208";a="686495427" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga001.fm.intel.com with ESMTP; 03 Mar 2022 05:02:51 -0800 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 3 Mar 2022 05:02:51 -0800 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 3 Mar 2022 05:02:50 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21 via Frontend Transport; Thu, 3 Mar 2022 05:02:50 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.175) 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.21; Thu, 3 Mar 2022 05:02:50 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UEoJCobBoFONlhubdq+aeV3hbGG1pW5sKOGB5MRIpduHgqf/rE1e2zuHaBTgXr9ZEhRMHvJ+VfQE0bO6JLj5OL/GK6r+vD3XvoLXRWAiOoGPCh9OIAg/rA9uLOXwjw97eYemiJYTDa5W5ec97ABsfgf1h24yBl8IotM3s770/fACJ5KHqr9oendyK3xPZrqlfeyYlC5GF05iLDUKjxHa40NvirbeVr5PCoDXR6jM3PzIR3SrX577z0qSwm5/2t5r33aHVfMP0EKtueldHErUDZUZU0MLk69oAPggbiis2BEKLqaInzbhycNI8La+hNEi6czyLy/x/oG19IbEu3V8+A== 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=cypYQqvi5gUyTDLxqb10J1G+TNC/9WMyr1onUpzV4XM=; b=dzK356OVXTT/y5YCY5MiHkp9AbPYWgjuXpwB0IfH6KFAZeJMTvEYrHmlTehOpkqTKIx7YYSFaVlriP6ywr7ptjZ+Y5t6wrP+tnBTUwLJC8L4yVRTKLCpGTbcVKWtVWmZk8ufgV+UnjVjMazjUNnsC0CDb5CZOX3DjmgS+0/xnOOmLllL0UlD22zVaOF3kTy0b3Ul1XkD3thhPWKeESVrX3sDUP346YEyBVSzoUGu5ROq2SRjLRDQXbCWGanfp0gx9jIYoYUFoJxnkOZyPwXxOBXEVHdJE7DNAncn13cL5jpkxu3+ZQiM8lnjbAaJflnAPe/ln4As9q4oKcr8d1GBtg== 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 DM6PR11MB3659.namprd11.prod.outlook.com (2603:10b6:5:13f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.25; Thu, 3 Mar 2022 13:02:48 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd21:6fbe:8308:2ecf]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd21:6fbe:8308:2ecf%7]) with mapi id 15.20.5038.015; Thu, 3 Mar 2022 13:02:48 +0000 Message-ID: <239a6a99-1b9d-c343-e79d-6e6d67dd6901@intel.com> Date: Thu, 3 Mar 2022 13:02:23 +0000 Subject: Re: [PATCH 2/2] app/testpmd: add test for external RxQ Content-Language: en-US To: Michael Baum , CC: Xiaoyun Li , Aman Singh , Yuying Zhang , Matan Azrad References: <20220301202615.4103972-1-michaelba@nvidia.com> <20220301202615.4103972-3-michaelba@nvidia.com> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20220301202615.4103972-3-michaelba@nvidia.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0357.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18d::20) 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: cd062d87-877c-4809-b0e3-08d9fd161d95 X-MS-TrafficTypeDiagnostic: DM6PR11MB3659:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: k6dLC9IG7uWBqMJIZajcHdHuf+w69NMPiLLw2moYnscM22l0EfOaLR/I60IENH3BuuDCQziej9jtCJPTenFEuOgQNobgLbWxDza13/pGf3ZsMQM6VloOLiFcSAKbtoSuZtjn3XnAaM4X2ZKvz2QxPfHU7OQWrZcmRxRB+WXnp7xTB4sgXUzhnPln6Tuj4DujJd6/6+In0s60fMemfMZ/hSOTHV2wsMf/XZ2maOhw1JsQoCrtllsWxW1BVNUGt3HuEEgdUyoO/kVg0zkmGpysZ9C8XZiR48Bw16+vTeCl4tUq9+D0qgYoR8eh8iPTT2IBSIMq/GvFOP69S3BgfDQIL8GewoGDtBiL7iuJ++N7FjxRk+7oG8tENRAgIDb23N5FwwPr51i7XNcqjRyb1MIPZV+v7iD7Yd5I0qqSlwmbnqm7fnIaNhxGs6lWrmR8lnWWQ3YbuHIV9pBvvstCxU2XxNnWGYFuYPaDoqre2d5QuQEk27jrEHsHs8eFC4G8Q7emRtJ6+2q/rWONMtGvYGMv2Ea55VTl+BZS7Bj6FCyA9OWK+srE8L++6tRrw5SBuYzMoeV2vpI/OF9EHsJcHdHW/ctkYiHmuEtyDdARf0JA665kixODpaKn+dBhpFywWaCrZ0aJC8y9oYRc5lI+S41pQamp8QkHrCYeGT2qVAtV2yaqckP8krrbfmy58o+kq/uZ5d2WrRrWpTPG3kSyuBs9QQ== 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)(82960400001)(5660300002)(8936002)(54906003)(186003)(26005)(2616005)(66476007)(66556008)(66946007)(36756003)(6486002)(31686004)(86362001)(508600001)(6506007)(6666004)(53546011)(38100700002)(44832011)(4326008)(316002)(8676002)(2906002)(6512007)(31696002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bEwzOHd2MVJxVHpYMGhOM1VPSVo1TEhUa0lLQ2pjZjgxM212blpaQW83Rms1?= =?utf-8?B?VHdYM0RERzdQUDYwRTJOa3JIa1ozVW04V1hkMkVjMFFiTGU3dkZNL0R5YndI?= =?utf-8?B?STJvd29yOHZWVXFnS0VDZGZvZmJlOWtlNWx4WVo2OS9vVG5Fek44ZHBQRHA5?= =?utf-8?B?N0JFOXEzcTVpRGxndTVKQ2VnejA5ay8wTU9VMHlhMmpVU2JrRE9ZcS8wckxt?= =?utf-8?B?bmd6VE5oSzh5Z0p5ZmdFRDZGZllQTVhlcUE1RTRmQlNCSlpQN2pWVmVaRGt1?= =?utf-8?B?QmozMkJadlJEL3hVY1JXT1lGSC93MTRINW1IV1dxdDhmZDlUR2tQOUZySjJV?= =?utf-8?B?ckQ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SkNH?= =?utf-8?Q?D9M9EJ0W544eX5vkcZmTfHM=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: cd062d87-877c-4809-b0e3-08d9fd161d95 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2022 13:02:47.9867 (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: 7Yb3ahT0ubM/YugNN5zkKg0g8VBDGMW/UKl9D0RbioIfNqmE6BwyxwdZwnsJxsNqfatYLCqoOCdYIpXMCyx5+w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3659 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 3/1/2022 8:26 PM, Michael Baum wrote: > diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst > index d6490947c4..de5665c886 100644 > --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst > +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst > @@ -2502,6 +2502,26 @@ To cleanup txq mbufs currently cached by driver:: > > If the value of ``free_cnt`` is 0, driver should free all cached mbufs. > > + > +port map external RxQ > +~~~~~~~~~~~~~~~~~~~~~ > + > +MLX5 internal API for external RxQ mapping management. > + > +Map HW queue index (32 bit) to rte_flow queue index (16 bit) for external RxQ:: > + > + testpmd> port (port_id) ext_rxq map (rte_queue_id) (hw_queue_id) > + > +Unmap external Rx queue rte_flow index mapping:: > + > + testpmd> port (port_id) ext_rxq unmap (rte_queue_id) > + > +where: > + > +* ``rte_queue_id``: queue index in reage [64536, 65535]. s/reage/range/ ? And range looks odd, is [64536, 65535] correct? If so does it deserve additional clarification? > +* ``hw_queue_id``: queue index given by HW in queue creation. > + > + > Device Functions > ----------------