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 92938A00BE; Tue, 8 Feb 2022 14:08:18 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 27047410FD; Tue, 8 Feb 2022 14:08:18 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id E5A38410FC for ; Tue, 8 Feb 2022 14:08:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644325696; x=1675861696; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=dQYp0kQL4wNR2MwWKcWJxnqw0PmTGYdQN7b9tq28Oio=; b=fBeRwVYem3DPgTiSPJFKuYNo+WSe+u0CsnI3l96MA0mTZtGB/lCF57qM 0DAnIebeu1CADRXzHKMxTcu4ob2b9XaR/qRwP1OujW6AJq6YudOFJ5xhJ V1zAs+6/vbeBkxgLMgLUKU6Hv3JrgJHESiQ1NjVYAZmWoimbJjmt4nhfA GixZ4tcTllGuZfmSl2cQ+el3NAFkcdyaVm21wnG9wilBdmLRx41WXldPw 5OS/bwpw4E3X0gSnpr5GM4CtNH1ni3+rvr3YuYnBO9UYWuhkgPR7/PTB/ GLgeg/p+IrZE0HrSdqIvY6y+ShI6IuLmCRMJojFTFL5lD8XubBQpvLChU Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10251"; a="335345430" X-IronPort-AV: E=Sophos;i="5.88,352,1635231600"; d="scan'208";a="335345430" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2022 05:08:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,352,1635231600"; d="scan'208";a="540587682" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga008.jf.intel.com with ESMTP; 08 Feb 2022 05:08:07 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) 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.2308.20; Tue, 8 Feb 2022 05:08:07 -0800 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) 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.2308.20; Tue, 8 Feb 2022 05:08:06 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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.20 via Frontend Transport; Tue, 8 Feb 2022 05:08:06 -0800 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.40) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Tue, 8 Feb 2022 05:08:06 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LtBZIewEh4f5p8GyZlPlveQFYref6eQzJO9WVwjwpkBo3eJ5XwC+b8foBYA2dFYZbpiLiWGye/sWEkqYE1/McJhyUfoIZ2BPDniEloupHgrGGgC7NJMV1sB1bck+tPpuIDpf5BC1y6u2FxARIMHTqxsyKu6cxzOyLRo/ues3ykNUIeWZHK8WlTEMf8/KTYRvheUScHh0ONr+jko9NkFmZl1T47VvElyidQIpwd47Wv9b+BTxNtQNqLN8AaLTYpgFbBtalbw/lCBRFcbO2jgBFqPXr5PiND5szltTRO9uuA0NYSSHKTEyny0cvegYYYuPi8oHHVeKWdxwZlAPogCAaw== 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=vYgVrx2OAZwzJ38GKhJoBExtNdYd6RpH9iJ0aGY/yqQ=; b=MdpafRzNK1jX2I2DryYvSW0eh0fFskKZhI14EkyxZocU2+AnNKCF+6OUb4DCL7IbcKMAkVp79ZtnK/buFINSZ3IY0GZIOUPJLC3WVZ3/n6yYpjUIz2q0mzPdVkaxNNi9H9ck+MrPzfJfs55pv1vMJb1BePte52OVjCpIAXfxCAQW9KPqLiH8cYNkktO0/5uTwKvJx4m/PpcMFrrPguMmP/gZz3wXCUO6OwmglpfOzYPvXic4EKZ0wR2vMlYHF/5E1FGu3Tpi5tOzMw2QbxxgSGTE0uczNg5fsmw05Tx8VEdI4Hdbg9ciDtg15GMmGGhbtOB/aX+M8CtsBPqA6iJuUg== 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 SA2PR11MB5098.namprd11.prod.outlook.com (2603:10b6:806:11c::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.11; Tue, 8 Feb 2022 13:08:01 +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.4951.019; Tue, 8 Feb 2022 13:08:01 +0000 Message-ID: Date: Tue, 8 Feb 2022 13:07:45 +0000 Subject: Re: [dpdk-dev] [PATCH v5 1/2] ethdev: support queue-based priority flow control Content-Language: en-US To: , , Thomas Monjalon , Andrew Rybchenko , "Ray Kinsella" CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <20220207135511.3012285-1-jerinj@marvell.com> <20220208085049.3248053-1-jerinj@marvell.com> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20220208085049.3248053-1-jerinj@marvell.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO3P265CA0009.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:bb::14) 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: 2aaebc38-d54b-4147-ccb0-08d9eb04087d X-MS-TrafficTypeDiagnostic: SA2PR11MB5098:EE_ X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4941; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: W3h3Im3h7TmVFeLzn0Q1hMeBTAwWRMaqPY10FXXOywqNgimMoHgrrqpih4jThMpXNv0ZVhY+sHGD96Lh5sAoFzyj3EUyjTmtlrrMWBtJt80n92BysCRl46bZdL1fkwNXNmCdcmTtMUjfKyGONnPolvFUvBi0IziTpXdsjmBpLE65WhQKaCHusXi3FZ2wJRgbHQdAB4mHGHorsBvUkDGgzo8x0dOIik+qYPDNV9JNKxQ/9lqxqaAkFU+yW/25EWie8O8ypbL4sdnhFAGCmNm7vGFQ6O6l7Do7qf0HfdnBo9EdWDa0hLlexhx74jvAY031JgQ4sbseh2YAWfPGnKy9QMmeZyTx9BuvLSh3KnnqZoEvfm1dzBxePNKe1WbKjvB3obp6otmBsXgXXctuU54PFLaEfbN9hIVsvXVKhlihtDRI+e0r4DTXMYnp7uh4VFl81cBdUPcoFedhPF16QMI2oMsO064BUlYecWqDXsNI1uwFooKLtkr/ae7MX7XRYPA9BU2tow1XlqY5tmxsl61dfnq4LD1dcbVpzO8+kHpnGi9RuCScPbqqpqzhSGzy2vFy/iiW2y3wE1qBMBzYlI8R0w/Ktz5NK1Dg58B/R7xlfZULGWqVkT3VizFbPTBcBE3QX5i5LsWchFR+3DFq71cWxSPnsMuMkKZh75uwpXFZIXCxPBy1PMSvcHqSqmrqN42A3Nt81oVIWk+xjxyv2xn2eg== 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)(316002)(86362001)(31686004)(186003)(26005)(2616005)(110136005)(36756003)(55236004)(31696002)(6512007)(6666004)(6506007)(6486002)(82960400001)(53546011)(4326008)(8676002)(66946007)(8936002)(508600001)(66556008)(66476007)(38100700002)(2906002)(44832011)(5660300002)(7406005)(4744005)(7366002)(7416002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NUlaeERlQVdvQ0JZL2RtZDhMRi9zM29pOGc2N00vMElLSGdXYTRqenVxNXFI?= =?utf-8?B?RXpkMUhPalpFR0FjQlF4SUhUS1I5QW5ZcUN1YWhTcTJKajFyZ1Q1WStIU0hI?= =?utf-8?B?bFR1UWJwZkJtSi8wK2JYUkhYTklVVkZWZG5GeGFCNTRRUUo1YTJlZnd1cXcv?= =?utf-8?B?SWp2WVFxVUhDTm9mOTRhWW9HSTBKNzdwT1BLM3U5ZDZwcUFwL3d2WWx6ZkJC?= =?utf-8?B?YldqZnNvUThjN2pSQmRLVG1OaTBDaWRVcDRKQ01IS2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clN0OUhGZkk2aS82bmV5ekFtbzd3TTZrVzVGS0I5?= =?utf-8?B?ZFVWaGk5b3l6aE9HeUNIT0JCMG9zUG1yd2U0NWZ1QzdQem9la0hnVnc5RVBC?= =?utf-8?Q?MpgLfHzzFarQo1LO2Huec2o=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 2aaebc38-d54b-4147-ccb0-08d9eb04087d X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2022 13:08:00.8556 (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: zlI9CI4wcFiPnh2m0gwa1V0eynA7XI0C4tFKXy5ZZ9/qQjffirgAaoICSlV0MWEo0eM5QGVAzZE21AqKzLWJIw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5098 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 2/8/2022 8:50 AM, jerinj@marvell.com wrote: > From: Jerin Jacob > > Based on device support and use-case need, there are two different ways > to enable PFC. The first case is the port level PFC configuration, in > this case, rte_eth_dev_priority_flow_ctrl_set() API shall be used to > configure the PFC, and PFC frames will be generated using based on VLAN > TC value. > > The second case is the queue level PFC configuration, in this > case, Any packet field content can be used to steer the packet to the > specific queue using rte_flow or RSS and then use > rte_eth_dev_priority_flow_ctrl_queue_configure() to configure the > TC mapping on each queue. > Based on congestion selected on the specific queue, configured TC > shall be used to generate PFC frames. > > Signed-off-by: Jerin Jacob > Signed-off-by: Sunil Kumar Kori For series, Reviewed-by: Ferruh Yigit Applied to dpdk-next-net/main, thanks.