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 DF75645E41 for ; Sat, 7 Dec 2024 09:04:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D6CC340E5E; Sat, 7 Dec 2024 09:04:00 +0100 (CET) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2053.outbound.protection.outlook.com [40.107.101.53]) by mails.dpdk.org (Postfix) with ESMTP id BB1D840281 for ; Sat, 7 Dec 2024 09:03:59 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=i7hCDkHV1UbrjtCs4rggjbAiMSxv0MilbZxGDkoE6dnb713jEl+wxHARvuUGdd4KheDkvZ+wAh9692F08StLO4UdGnPUVrF3tXQzmEf60GxLmV+r3aO6b9KXwvhzB7hDPKAvtOOE0Pyl9zsSvC9gh4yVzqJoO1Ti2G7WHis9KTbZXY1Ar2Ao2XGiRfyGbxi/Uo602mlZn1c5XiTo5nyYmAV2DKzPn8THvLVF5nJrSZg9RNltFa6suu0JoIoWZ+e/6jhT1HzRgQ8i2i8t+VWJG1AsHSryMKN7yQhqNOeFA0u77TtOGBWtrnzmMANkio2U8aiNOlDSYbU6Kh4eMbWK7Q== 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=RjGcz37ke5Q/Ys9Lp+uYDM1vRzVr3TFRUZKU8rLjaa4=; b=l75Xi92YcPcldi8ZSYgBodQbg0tZ+/hytl3bpYqcUXIU41rx67s7UqwKEcRUWEdiqADW7ZcW7JSDaKsauEJH81Ugr0XIXvwvHm6r8N2BpTS87AwnBkGQMG0GDcosvxHoOP3j+qOObcB5K3yLPyqgYbXXuzi2UXcCYwwjpKfjD4Km2ZCUQ28dpTiYUB7sv8PibMfY9itGzO5E/EX0xRWnJ6opmXU3yCZhycgjMX9XM36eHqsIzO8r3kebb8fFJGLCgPSLPTMruHhmSR7/z5+1PexM3/9Imk6jggE4W+Cwp22oCkVzqO6Xz/bZSLxRIZFaKUwTMt4pro05wwAnoAjFiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=networkplumber.org 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=RjGcz37ke5Q/Ys9Lp+uYDM1vRzVr3TFRUZKU8rLjaa4=; b=R/e0b67edC4ZqrkEFkgQvC3HKJOrCv+zOtouP1cBYVPHtsaHHI9+zEbzLoyxEaAseX8g3pIET65eL9AiD7tbbgW7ks2Y/NAj2AxdrCK1JLeVndcjYV1Dh/vqAfXLCBvGnHnRGieICIIZMVRMuK1KpB5jpB89ItB0OJrjNK/NB7LVXIcnRPZEnD5/o/4yEbneOLnyDRhgJrP66QeJ1AjTd3GgoxmWkpUDntTrWFACHZKjS7vZ0gTRxiyH6z6y/Ytlzrz6aoXKW6p+NH98d0bAKsfKzjWjBie+QhrQNeVxNAWdnYv3UQe04uvTre7/a7Sf+4EQqzvv92nXhgJ4fvIcvQ== Received: from PH7P220CA0173.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:33b::6) by MW4PR12MB7168.namprd12.prod.outlook.com (2603:10b6:303:22d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.11; Sat, 7 Dec 2024 08:03:51 +0000 Received: from CY4PEPF0000E9DB.namprd05.prod.outlook.com (2603:10b6:510:33b:cafe::7b) by PH7P220CA0173.outlook.office365.com (2603:10b6:510:33b::6) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8230.12 via Frontend Transport; Sat, 7 Dec 2024 08:03:50 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by CY4PEPF0000E9DB.mail.protection.outlook.com (10.167.241.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.7 via Frontend Transport; Sat, 7 Dec 2024 08:03:50 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sat, 7 Dec 2024 00:03:38 -0800 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sat, 7 Dec 2024 00:03:36 -0800 From: Xueming Li To: Stephen Hemminger CC: Xueming Li , =?UTF-8?q?Morten=20Br=C3=B8rup?= , dpdk stable Subject: patch 'examples/ntb: check info query return' has been queued to stable release 23.11.3 Date: Sat, 7 Dec 2024 15:59:45 +0800 Message-ID: <20241207080055.488538-28-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241207080055.488538-1-xuemingl@nvidia.com> References: <20241111062847.216344-122-xuemingl@nvidia.com> <20241207080055.488538-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9DB:EE_|MW4PR12MB7168:EE_ X-MS-Office365-Filtering-Correlation-Id: 01b7c6e0-ce0e-4ef9-acd2-08dd1695af6b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|36860700013|376014|1800799024|7053199007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?eFpoaytHSVdtSFlyQXlWU09IMmR1RFdjOEtRYmVsazJaQXM0THpHQXJpbGls?= =?utf-8?B?ZjQ3eFFLUmdrcitwT0IrSFBPaVZCYzE3bStuYWdLNEd4dGwzUWxmajc3ZEtQ?= =?utf-8?B?U2xMOEFrWlFiTUErTmUzc2FvSGFxWmVrK2hvSitJZlZYbldkNkgzVGtLOXBM?= =?utf-8?B?OHczcWVqMjN4aHNDak9ZK2xMeVk4alYra1RoQk90Mlo1eUp5Q3BWZFZWeDlz?= =?utf-8?B?S09MOVVKN3VCSm1mNGtsT0R3SWExNEdPSGQvbG12SkdvNUgxdlZhYm5xNXll?= =?utf-8?B?K2FFUGZvQUdDSnk5c2U4U3BwZlRCeVpzbXZqZ0ltR2FhWmZWMjh5RE90RFlo?= =?utf-8?B?MnRNTE1vVnB2bjVaOE5tZWhrbjBRMzd4MGVGQzZYbkordG1DMUFTN0NtdVBs?= =?utf-8?B?TUZWK1NqQUthamxicndoUXlNVXhXNjNQUlNjK2RSTmFXajUzUFhIdVhGUFRs?= =?utf-8?B?Q2Ezckw5SHJXVGVzNkt6TXVDRTV2cjRveFhGdDF0VWdMU3orZD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THNmdC9oSXBFUFRyaGxkY3R6SVlPaEMyWm9z?= =?utf-8?B?aWtLQlc3T3pyT1h3amdLdkRXYlNKaUJHY2pyYXJlcnpzcG9vUStZbHdIdW9L?= =?utf-8?B?cWpzSXJwampaY01hdWQyZlN3TzJJTWVBZ0N4MUI0KzA4dkhGZFI3S1VuZGlN?= =?utf-8?B?OGExdHluanJyZWdEVkdVUVg3TFJWR20xSytNdkxqbW9TaHdkc1NjUkpwd05k?= =?utf-8?B?L1JhZnhLZmxOM1NZQVkwaEJSWjViSlpZSG1ldDdjYnlnd08rMGRVYmEyT2NM?= =?utf-8?B?SWJvdjBkNjlzSXJTb040dEZRbFJFeTFyMzBDRGlrdUdFenBiVUo4U28yKzEv?= =?utf-8?B?cVZPeWIxT2R6RXhYOUU0UHNBek56Sm85eHF1SllRdjBoRW5MblR3QzZUaVR5?= =?utf-8?B?UXNUN2l0bTMrTTlJd3RqMmgxTmR0MUswZWlnTkdaMlVLTllqQzRmcU5PMnRn?= =?utf-8?B?ZzlxY0hIc0ZSU2xnYW1kV3FYVjB2YTF1M0dpbTVudXhjL2tRT0JvdnJWVkZC?= =?utf-8?Q?uznGGDa5dJyzAPWedQtxGmvzThC+ZFbD?= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230040)(82310400026)(36860700013)(376014)(1800799024)(7053199007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2024 08:03:50.4861 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 01b7c6e0-ce0e-4ef9-acd2-08dd1695af6b X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9DB.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB7168 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.3 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/10/24. 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://git.dpdk.org/dpdk-stable/log/?h=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=0dbc598e787dcfec98d53e4ede9d941dc24646a0 Thanks. Xueming Li --- >From 0dbc598e787dcfec98d53e4ede9d941dc24646a0 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 4 Oct 2024 09:21:53 -0700 Subject: [PATCH] examples/ntb: check info query return MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Xueming Li [ upstream commit 07e4dc04d99a99699d71a0a39dd2a7034049e663 ] The ethdev_info is only valid if rte_eth_dev_info_get returns success. Fixes: 5194299d6ef5 ("examples/ntb: support more functions") Signed-off-by: Stephen Hemminger Acked-by: Morten Brørup --- examples/ntb/ntb_fwd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/ntb/ntb_fwd.c b/examples/ntb/ntb_fwd.c index 95a6148c82..fcf0ec9b56 100644 --- a/examples/ntb/ntb_fwd.c +++ b/examples/ntb/ntb_fwd.c @@ -1285,7 +1285,10 @@ main(int argc, char **argv) eth_port_id = rte_eth_find_next(0); if (eth_port_id < RTE_MAX_ETHPORTS) { - rte_eth_dev_info_get(eth_port_id, ðdev_info); + ret = rte_eth_dev_info_get(eth_port_id, ðdev_info); + if (ret) + rte_exit(EXIT_FAILURE, "Can't get info for port %u\n", eth_port_id); + eth_pconf.rx_adv_conf.rss_conf.rss_hf &= ethdev_info.flow_type_rss_offloads; ret = rte_eth_dev_configure(eth_port_id, num_queues, -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-12-06 23:26:45.023563616 +0800 +++ 0027-examples-ntb-check-info-query-return.patch 2024-12-06 23:26:43.913044828 +0800 @@ -1 +1 @@ -From 07e4dc04d99a99699d71a0a39dd2a7034049e663 Mon Sep 17 00:00:00 2001 +From 0dbc598e787dcfec98d53e4ede9d941dc24646a0 Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Xueming Li + +[ upstream commit 07e4dc04d99a99699d71a0a39dd2a7034049e663 ] @@ -12 +14,0 @@ -Cc: stable@dpdk.org @@ -21 +23 @@ -index 56c7672392..37d60208e3 100644 +index 95a6148c82..fcf0ec9b56 100644