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 E8FF1470E5 for ; Thu, 25 Dec 2025 10:25:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D1D1440430; Thu, 25 Dec 2025 10:25:14 +0100 (CET) Received: from CH1PR05CU001.outbound.protection.outlook.com (mail-northcentralusazon11010034.outbound.protection.outlook.com [52.101.193.34]) by mails.dpdk.org (Postfix) with ESMTP id 4A34F4065D for ; Thu, 25 Dec 2025 10:25:14 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AeD+fdamhWWwYdrldC64IjkE8BU4rHGzdohr5OtCOVqBA94ZNKyPKEw5bgX+XixA1Q5ZthKZCxiVp87Rcrzlbl7wVkYP3n2CvrKUh1EPs/CM3sm9lBhTQlT7AsTDR7aJmNEyODHjdsrOR7ZllxsbyjzClnirFGvkK9YV7CjKU47fvp4muv7RlTE+GvUUZpjDyAO70CXyB6c15Usz6Mb8+RRBJHpZWOgaqpg85j2TNqp7K+4s8Qs1FtgZjlEXVOiuIV7m4Oco1thY8MRGUrqU+Qz+4XTQihWzFZBdU7G4DDN4HUlQ6l5RZJf2xhTOMe9sZoGlCyx+SSSyJVvowE0lfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=VQi/KOqjFsaR8RsIQfn0HYqWqS0yQdLzge62JIJxIlg=; b=lZbLLBOupG90lImEmg/W2LCYlYtl6dz6q+L3DlbPncFxaqGfn2uW2XtGsR8R0dAkIxDC4+lEUUD1Fi9qXnltQJiXPza8cke6rLCD4dqE7Vt5TaPZ6LOisWDBiySTJdKFLPnQXcnUgHpOazti37VTWzUnvwgAZap/O/FYeJXWrbXo7ng+Q/+mA5aZZG1RutRahJWH4HAbVoHWQ9KF4eq9xolvLYWNhUwFVdGcbI7XsSeW8ff4YHGUXoQqvxysD2bUbIR78s52ZAQ0VyMaCf+uffWGsn6nC/9ofUBX/AxxJdNQYXL3bhySpBQ1SssyovX93VOiO+BOC4C+qcflMVgcDg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) 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=VQi/KOqjFsaR8RsIQfn0HYqWqS0yQdLzge62JIJxIlg=; b=EZOY/P1gZv+eIJLqeW0Tro6x1rvyGtOui3IOQyKnpPuR4Ne/0ogx/2tBrxaUqMwz0EmCvgoNrri0Lup2AcrMcbtiF8TES91puATWvooaKn01yqiuLXRQuCTxOSAy+pUPbVylCfR7i9j7Ef85EVNsQBqBUZyCdnw+C0G7vUCF8KqOPmOqJU4xPyImd2u+UCosOH0e5Q/j6hG7J9oVnyMONzmh7yYIyZqG7R4ChUI1NaCvPUo5AJA7I0nnxpGb0esiJHI3u7uB9TP1hFkpsLuz27vsQ1PBSXPG6s5WJ9xneovUws210BqpuEOJWeNqbKeFBxNFFGuxvFKfYzyhfh7ZGw== Received: from SA9PR13CA0069.namprd13.prod.outlook.com (2603:10b6:806:23::14) by DS7PR12MB5741.namprd12.prod.outlook.com (2603:10b6:8:70::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9456.11; Thu, 25 Dec 2025 09:25:08 +0000 Received: from SA2PEPF00003AE7.namprd02.prod.outlook.com (2603:10b6:806:23:cafe::c2) by SA9PR13CA0069.outlook.office365.com (2603:10b6:806:23::14) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9478.2 via Frontend Transport; Thu, 25 Dec 2025 09:25:08 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) 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.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by SA2PEPF00003AE7.mail.protection.outlook.com (10.167.248.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9456.9 via Frontend Transport; Thu, 25 Dec 2025 09:25:08 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Thu, 25 Dec 2025 01:25:02 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Thu, 25 Dec 2025 01:25:01 -0800 Received: from nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Thu, 25 Dec 2025 01:25:00 -0800 From: Shani Peretz To: Jacob Keller CC: dpdk stable Subject: patch 'net/iavf: fix check for PF Rx timestamp support' has been queued to stable release 23.11.6 Date: Thu, 25 Dec 2025 11:18:40 +0200 Message-ID: <20251225091938.345892-79-shperetz@nvidia.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251225091938.345892-1-shperetz@nvidia.com> References: <20251221145746.763179-93-shperetz@nvidia.com> <20251225091938.345892-1-shperetz@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA2PEPF00003AE7:EE_|DS7PR12MB5741:EE_ X-MS-Office365-Filtering-Correlation-Id: 5ae29256-6283-4bc8-daa4-08de43977f1f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|1800799024|82310400026|376014|7053199007|13003099007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?eliTpXUZtr3gtdkQfQNdkY/lh4VDJW551fSM9eUHQUlsh6NG2N1L3eXZ7coo?= =?us-ascii?Q?awC/Jf9GiorjtzCAGp6XBBiApbxxwXk3JoJ/gMiESZJ4k3hFCyYeHM5c05Hn?= =?us-ascii?Q?v87udF2XQmE7NQGv/zwEOJm/rpikAfdVhkzjNeTBbrTKO/T6hN+f9JYZiKOD?= =?us-ascii?Q?qmjbtxvpXmxWlgA3e49X2+KkOAFvLOMDU+FLP6QLNPE0EUK+dHGVrBsRTfLe?= =?us-ascii?Q?ETAwk4ixTA5ixUE9cs/CIpq0nCRFPIiN5scpvI80p8XY33Hy0iqtpe5MKYVS?= =?us-ascii?Q?8x3vx46ekkiANjd0WbN6Ft1MW1N7gBTAWLy8hPk0ZMl2KDlzAjBor0zbias/?= =?us-ascii?Q?7jIB+lW/onJBr9AjPQsZYiII+PYLI1AH70A0OdHI7tvnZxaGcAIkhXbpm7tZ?= =?us-ascii?Q?Z2s8iTte3kGFgi2NVoIIAJRnaW7GaUF2doi1d7jx4hRMlWpO6BBvylEJJ6ek?= =?us-ascii?Q?5NIUJonL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0w93?= =?us-ascii?Q?pTh5bQA7qf+6pG1mm6nVn3872kFJol5mt6vLRqUj/nwr2u6dRG6DRItwNwKo?= =?us-ascii?Q?GKr3kgdBVSah6/gbhldW6WPDIh1u9vYH1Ba/a0xQKcrAFla8XZhg4PKANyhc?= =?us-ascii?Q?y/ILKxNJm7R7SkaJMEiakibJxKacHuPRb+5gk65AL1SUARk/cl/9VIwGzlHH?= =?us-ascii?Q?h5t7epP96YBpDuJ6fV2troFQT6GOGyCN6/pDNXzP?= X-Forefront-Antispam-Report: CIP:216.228.118.233; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge2.nvidia.com; CAT:NONE; SFS:(13230040)(36860700013)(1800799024)(82310400026)(376014)(7053199007)(13003099007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Dec 2025 09:25:08.3584 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5ae29256-6283-4bc8-daa4-08de43977f1f X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.233]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SA2PEPF00003AE7.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5741 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 Hi, FYI, your patch has been queued to stable release 23.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/30/25. 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/shanipr/dpdk-stable This queued commit can be viewed at: https://github.com/shanipr/dpdk-stable/commit/b7040000eaaf428f34ae71092a01ad3ae04060df Thanks. Shani --- >From b7040000eaaf428f34ae71092a01ad3ae04060df Mon Sep 17 00:00:00 2001 From: Jacob Keller Date: Thu, 13 Nov 2025 13:33:44 -0800 Subject: [PATCH] net/iavf: fix check for PF Rx timestamp support [ upstream commit d21c2fe6e5a1ef1e7cc9490f54f359db1cfd5283 ] The iavf driver has support for hardware Rx timestamps since commit b5cd735132f6 ("net/iavf: enable Rx timestamp on flex descriptor"). To enable this, the VF must first negotiate PTP capabilities with the PF by sending the VIRTCHNL_OP_1588_PTP_GET_CAPS command, with the requested capabilities. The PF will respond with the actually supported subset of capabilities. The PF may not actually enable Rx timestamping, even if it reports the overall PTP capability support. If this happens, the iavf driver logic will incorrectly report that Rx timestamps can be enabled despite being rejected by the PF. This is unlikely in practice, as most PFs which support the VIRTCHNL_VF_CAP_PTP will support Rx timestamping. However, there are some cases where this may not be true. Check that the PF actually reports the Rx timestamping capability instead of assuming it is enabled. Doing so prevents the DPDK application from attempting to enable Rx timestamps when they won't actually be enabled. Fixes: b5cd735132f6 ("net/iavf: enable Rx timestamp on flex descriptor") Signed-off-by: Jacob Keller --- drivers/net/iavf/iavf_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index 391ba2c812..83125c5f15 100644 --- a/drivers/net/iavf/iavf_ethdev.c +++ b/drivers/net/iavf/iavf_ethdev.c @@ -1166,7 +1166,8 @@ iavf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) if (vf->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_CRC) dev_info->rx_offload_capa |= RTE_ETH_RX_OFFLOAD_KEEP_CRC; - if (vf->vf_res->vf_cap_flags & VIRTCHNL_VF_CAP_PTP) + if (vf->vf_res->vf_cap_flags & VIRTCHNL_VF_CAP_PTP && + vf->ptp_caps & VIRTCHNL_1588_PTP_CAP_RX_TSTAMP) dev_info->rx_offload_capa |= RTE_ETH_RX_OFFLOAD_TIMESTAMP; if (iavf_ipsec_crypto_supported(adapter)) { -- 2.43.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-12-25 11:16:40.268609303 +0200 +++ 0079-net-iavf-fix-check-for-PF-Rx-timestamp-support.patch 2025-12-25 11:16:36.138888000 +0200 @@ -1 +1 @@ -From d21c2fe6e5a1ef1e7cc9490f54f359db1cfd5283 Mon Sep 17 00:00:00 2001 +From b7040000eaaf428f34ae71092a01ad3ae04060df Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit d21c2fe6e5a1ef1e7cc9490f54f359db1cfd5283 ] + @@ -29 +30,0 @@ -Cc: stable@dpdk.org @@ -33 +34 @@ - drivers/net/intel/iavf/iavf_ethdev.c | 3 ++- + drivers/net/iavf/iavf_ethdev.c | 3 ++- @@ -36,5 +37,5 @@ -diff --git a/drivers/net/intel/iavf/iavf_ethdev.c b/drivers/net/intel/iavf/iavf_ethdev.c -index 15e49fe248..3ef766de47 100644 ---- a/drivers/net/intel/iavf/iavf_ethdev.c -+++ b/drivers/net/intel/iavf/iavf_ethdev.c -@@ -1177,7 +1177,8 @@ iavf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) +diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c +index 391ba2c812..83125c5f15 100644 +--- a/drivers/net/iavf/iavf_ethdev.c ++++ b/drivers/net/iavf/iavf_ethdev.c +@@ -1166,7 +1166,8 @@ iavf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) @@ -49 +50 @@ - if (vf->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_VLAN_V2 && + if (iavf_ipsec_crypto_supported(adapter)) {