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 A5DC9A034F for ; Wed, 10 Nov 2021 07:39:11 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 993DC40142; Wed, 10 Nov 2021 07:39:11 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2088.outbound.protection.outlook.com [40.107.223.88]) by mails.dpdk.org (Postfix) with ESMTP id 00D4E40142 for ; Wed, 10 Nov 2021 07:39:09 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HzEouirkZD7NsbxCujQZGhAF8X7zNrLHKP/4qtfXuFXN7yciRsfFlXMz8e/gQtQ9mPSjmRUBkCpwkRNNhsEkltJt+/Ul+WT4bzz0i75i4RaEZdpvMUmLTm3k1rkiyE/rCWOXoc3LyxjXFJg2K5QufAGWoLUHUV+N5pjjUUy+x4rvkIfytIaDPLQFPqr90T5eaYs/fdx8MKD5pjq+o86J6Ai8CW26jzpFoAPIg54Ucc4oExFRL0hQSRX//hFhHYW+M3njM241hwAz9Gr+Ep1X7dEqkzR1qsMUUilSzpw6VDJjyFM9bje1zFm2x62zOO5O10foDJgbIHXH+rbPq4L65w== 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=1Bzneyc0TBOjTIQXDukHmSceBDjkIBPZiPdFvXTq3VA=; b=SDNAF/5twzigg7SuzPd9x359gRwEqQZ3suLnKyp7Zhc/v+ldVPF41VB3NCROQFMm3/18mdOlZcFDRwEJJVnsvfxx+rEFBQFHArr6DW4401cHCMU2nIWVy3a/KYsycM60I5y5kR5u45cpJ7HIREy2r/0ik8mx3tgvBgmgSn0fSAR/6yjgijynmifetlE3MEpfVHFm6garlCbdvo3aZXaf4lhTb/4L85+952r0A1R6nG2+E/OONxhafNF622EzkOq8JaR6NRebAOY0FpUyLZ4yulsgq9uBEe4hzhPKkW3B9poEnwfhAVT9hCbm8Z7U+iI92KG8MoYbeQgiHo08MLHRww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1Bzneyc0TBOjTIQXDukHmSceBDjkIBPZiPdFvXTq3VA=; b=NqA3jJWPY/4PXWDNGsfgjyop2L2JZkQI3KpR0ZKEFrlAlh10dnhL9IR1ldph9fyE+FP8LLCt0waRmt1X24J6jaYo7MMPOeGb1RdGbBbf32HkHuyQ5Bch59g4jfoW5UAuyx4yEo0XpXGOT8ozxt4l2Uai+1X6DGXn/O/4lPSFykZipQGUoG3o7QXqRgpfGphR+txesp3Y09K+FlN9p29/mMZyFzZzlm6dwtAleu1D0jP5KASaj5TvGmH6ufU9lGRvRlviP6NiEE6d5aqOJ9qKGBb8ObHiteKci7leT4Uk6s4Rt8xyew0aSTNZ3Gwg8mGifyEvI43CoedrL1/Xlkucow== Received: from DM6PR04CA0024.namprd04.prod.outlook.com (2603:10b6:5:334::29) by BY5PR12MB4966.namprd12.prod.outlook.com (2603:10b6:a03:1da::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.16; Wed, 10 Nov 2021 06:39:08 +0000 Received: from DM6NAM11FT014.eop-nam11.prod.protection.outlook.com (2603:10b6:5:334:cafe::14) by DM6PR04CA0024.outlook.office365.com (2603:10b6:5:334::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11 via Frontend Transport; Wed, 10 Nov 2021 06:39:08 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT014.mail.protection.outlook.com (10.13.173.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 06:39:07 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 10 Nov 2021 06:39:05 +0000 From: Xueming Li To: Dapeng Yu CC: Luca Boccassi , Haiyue Wang , dpdk stable Date: Wed, 10 Nov 2021 14:29:04 +0800 Message-ID: <20211110063216.2744012-61-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211110063216.2744012-1-xuemingl@nvidia.com> References: <20211110063216.2744012-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 29d84df4-840f-43c9-67ee-08d9a414cbef X-MS-TrafficTypeDiagnostic: BY5PR12MB4966: 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: 4PIy3jagIdbBS5ErQWyBUblmL2WAkJMjWsa2DlLJk8b1tQI7WdlQifqC2tXo49TZDzteiBWJMzgWBUUicyboWeAaZN9+jx+QshqvKwKLPX+yD3F5gg00DRAedC3ePFFNV6/vPD2DPwDC9yVsxho4R3QoLxjr/2nOwRxIKwgtgBCjAp5q4CWqlvf06AjniY7xSyk8Po0eiuxlNXSsnpBwqmFOTPHXhgU0ydZZJo3cLjqtcb15kcjUHdXOPRBU6klgHmg8UUt9sKaBGQEADieCGafjfi4RUnLFsI/7DvzAeHWYo7gnD482px9+5Ei2yPTkZqKO+F/UqkERt+GdH8qEMZwO+m/A87xDCmo3lqgH7NAfDWfLcOOp16197nPxuF5C5BJCCQEwRhkzgrdLh5H0e/7F3Dxpi6exEw6hIZmUI41fg0sdIHmw+sCReRW0BqGTdWaEKaqvnI1VXGnJRQvisQ09o7Byd51mbETCjxknjnRbKFdMjrjvusWPYdKWobqK2MNkT7vVExbm36U6W/CQ3uFx87xYSd+x4aN5hZ1GLOQ3NtGfOR5LyFCOL7XJtqli3QwYI7ZAWMrfjjAZkVndlKNPPqdGvndeBjTKfzgsP7ogiH+FIufC5gnwZG2DisxvsvRyrbWH46ySWOCLYg7l5ePg+sB4X1pUBEy1gUhQqddR2qjjMSK3yIxoI+AEu1gSIOJkV8QSu9dgLyOWI4iSTEb+YolJXeWwJXKiL8/8D007BMhTf7ygOeI0etMLwbdc1RJdhvyuDcEyzHBZZ9gMAaLUYKh5eBJfOv5o+rN4lK4kav6BPUVr22trmu0PyZQp9P6OtJjXzgr+qYRmEqKtGg== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(6916009)(82310400003)(316002)(86362001)(4001150100001)(5660300002)(54906003)(36906005)(36860700001)(19627235002)(36756003)(356005)(70586007)(26005)(2906002)(6286002)(16526019)(8676002)(4326008)(186003)(7696005)(70206006)(1076003)(55016002)(47076005)(966005)(53546011)(8936002)(426003)(508600001)(336012)(7636003)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 06:39:07.6222 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 29d84df4-840f-43c9-67ee-08d9a414cbef X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT014.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4966 Subject: [dpdk-stable] patch 'net/ice/base: fix PF ID for DCF' has been queued to stable release 20.11.4 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/12/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/af659df64ec34bbf534d7c6bb68ac15acf32b297 Thanks. Xueming Li --- >From af659df64ec34bbf534d7c6bb68ac15acf32b297 Mon Sep 17 00:00:00 2001 From: Dapeng Yu Date: Mon, 13 Sep 2021 10:40:02 +0800 Subject: [PATCH] net/ice/base: fix PF ID for DCF Cc: Xueming Li [ upstream commit f979702337c69c7b73a78a10cbfb700c74b3b508 ] In original implementation, if DCF is created on PF1, the PF ID is still 0, but not 1. Without the right PF ID, the ACL will not work. This patch makes VF to get its parent's physical function ID. Fixes: 0b02c9519432 ("net/ice: handle PF initialization by DCF") Signed-off-by: Dapeng Yu Acked-by: Haiyue Wang --- drivers/net/ice/base/ice_switch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index e6ea04183f..95400dd315 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -2936,6 +2936,10 @@ enum ice_status ice_get_initial_sw_cfg(struct ice_hw *hw) ICE_AQC_GET_SW_CONF_RESP_TYPE_S); switch (res_type) { + case ICE_AQC_GET_SW_CONF_RESP_VSI: + if (hw->dcf_enabled && !is_vf) + hw->pf_id = pf_vf_num; + break; case ICE_AQC_GET_SW_CONF_RESP_PHYS_PORT: case ICE_AQC_GET_SW_CONF_RESP_VIRT_PORT: if (j == num_total_ports) { -- 2.33.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-10 14:17:04.768425534 +0800 +++ 0060-net-ice-base-fix-PF-ID-for-DCF.patch 2021-11-10 14:17:01.820746500 +0800 @@ -1 +1 @@ -From f979702337c69c7b73a78a10cbfb700c74b3b508 Mon Sep 17 00:00:00 2001 +From af659df64ec34bbf534d7c6bb68ac15acf32b297 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit f979702337c69c7b73a78a10cbfb700c74b3b508 ] @@ -12 +14,0 @@ -Cc: stable@dpdk.org @@ -21 +23 @@ -index 9179f66c20..93cd79e8ef 100644 +index e6ea04183f..95400dd315 100644 @@ -24 +26 @@ -@@ -3471,6 +3471,10 @@ enum ice_status ice_get_initial_sw_cfg(struct ice_hw *hw) +@@ -2936,6 +2936,10 @@ enum ice_status ice_get_initial_sw_cfg(struct ice_hw *hw)