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 634E445CE3 for ; Mon, 11 Nov 2024 07:37:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 52CB140E1B; Mon, 11 Nov 2024 07:37:09 +0100 (CET) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2084.outbound.protection.outlook.com [40.107.212.84]) by mails.dpdk.org (Postfix) with ESMTP id AC1D440E1B for ; Mon, 11 Nov 2024 07:37:08 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wmzLLliSUfgr7U8zH1MjMrXoqm/iN2luutNRTwB9VOSgOxO+sNYB8tmU4mm3oYv6/LFR7okkmW/wZsa45b87ei0JrbEcESieWZ2zOqDTFZBymmKamgQe2YMUPI4HM60dyUEi2/nIT86rFj/osw38mvm7gGy84g9rUGvysgEr3GsRyIIKBgHdZcypX5z0VEPWuCfnTbP7klIx6zZCvCRyMIj/ci9/fesdEM8wPTXYjy9+gQAPs+fuj4RLRSB4/tKZNb5Jrckb27XWbgLETxqj9/Ts7AiNEsWT5A7HMYbKoEADTIpmzOyqUPSBrKLgEEzz9fNT2lup2FbMTY2dwb8w/A== 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=YgJajQUW1QCOfgI3T6QunFYilC1+e/pd5MlydKX16nw=; b=dzM+DtMnX0hrh2c2Kl+TDeNMB6ia8/f4QWVhv32Fojmp0ilX3BmRiM8V3vxU5fUedGBMMp5HQbo5heBry80KOUcWdiNQo89GhfcGl9ehdXJwu2J8/gua++mwaSS/6kbfFzwBkMSbdvoSvmjB+srkru5vt6sqDcsU+YQtGLXGU1oTfZY7zKNzC2l/n7M/keClHvXwVj4XMh7kHyFROsoSon5jbAlI7UEV2lJBIfk0ndVIYG2upybZUStIIpKh6h9+5SyxlKQQ062BkOL6x+9jVXuLxuqjcg35CpCe+CXCXvD3w9P9Hs1uzFQbMtogaDAW0pZVZLSF1BxXlN3msYC73A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=YgJajQUW1QCOfgI3T6QunFYilC1+e/pd5MlydKX16nw=; b=EqcWS5MjQInypulGwemkDUl4lchERo1tGT7apcKmz+jU9TptfCy/txM6KcGBhdYLHKnWwojSLO59WOwNoRNZIXz2jjipgH4lwNbx5u8+lRXxv1BmCZEGpJbkO+1Qe9UjgOJan5AE3pQrZY6C/n4jqp4EVSuv3uz2VMyfUgo7d0RKdvOgDhl8mCKZ43+dM0fwjC1td18ythFtn9YVcTuMQz90+xjiAR7ejkfIvmtWN8fxcpYhrQi+BTOrHMYFQNlgWyhKCOsPm3yfe4xcm1DyBZTmthOCcHsBVWIltaTonK0WsKfPf1nlwJRlFupjZRn5P+dFyjOyUsTHY0U56PzCVQ== Received: from BN9PR03CA0758.namprd03.prod.outlook.com (2603:10b6:408:13a::13) by IA0PR12MB8647.namprd12.prod.outlook.com (2603:10b6:208:480::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Mon, 11 Nov 2024 06:37:06 +0000 Received: from BL02EPF00021F69.namprd02.prod.outlook.com (2603:10b6:408:13a:cafe::d) by BN9PR03CA0758.outlook.office365.com (2603:10b6:408:13a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28 via Frontend Transport; Mon, 11 Nov 2024 06:37:05 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by BL02EPF00021F69.mail.protection.outlook.com (10.167.249.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.14 via Frontend Transport; Mon, 11 Nov 2024 06:37:05 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 10 Nov 2024 22:36:54 -0800 Received: from nvidia.com (10.126.230.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; Sun, 10 Nov 2024 22:36:52 -0800 From: Xueming Li To: Stephen Hemminger CC: , Ofer Dagan , Ferruh Yigit , dpdk stable Subject: patch 'net/pcap: set live interface as non-blocking' has been queued to stable release 23.11.3 Date: Mon, 11 Nov 2024 14:28:03 +0800 Message-ID: <20241111062847.216344-78-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241111062847.216344-1-xuemingl@nvidia.com> References: <20241111062847.216344-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF00021F69:EE_|IA0PR12MB8647:EE_ X-MS-Office365-Filtering-Correlation-Id: 39a2b038-9965-46a3-1a04-08dd021b427c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|82310400026|1800799024|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?aAU1hZOzSFyKRxnIiEXISQqG461eKYd5qeSKvRkhRt9vlxJLfNeq//QEc03n?= =?us-ascii?Q?et17ozNE5R9+tAGAg5CucTKSm/LlPxhA0O5vN46nX6py5OM/3nhDO1y8xKXD?= =?us-ascii?Q?Dxtgmnj07YTGiLD/R/1heHySMHTtE1V7b3xFoCXG67qR7elgNfN+99HiFE0+?= =?us-ascii?Q?FwiAqxo7+xmzyngGXeZ5EKONYRItMGUMF2Yxs5Nhp6u1gSkG4bLb+jRUSYoB?= =?us-ascii?Q?Fg3ak/BLHOwU735Fmk4cFdw1kPXwusTrrdRc+mUpOJD9ZqcOatuoidd+oVHI?= =?us-ascii?Q?DqHZPUTNDXBzUF2ZzE1NlHJlB1fmIhbIvGFd/cVXL4o7Sdvy1lKMQJASAg3z?= =?us-ascii?Q?aQiEEoFcTtnoiSvAFVU/uJS07YT0cW4CX8ShOgN5JlJe/XGRoJc426WCyAbg?= =?us-ascii?Q?uRst+h86lirfLXhFhnAOIzLlplgljr5hUSmaTWkkhMDgEFHIXorXC/6+lLYQ?= =?us-ascii?Q?NT4S/m5Lwq4bGKzedGbZ7fCSSPZ9x+th6fnSfTg0Xr+h+PpYDf2z29q/d1vj?= =?us-ascii?Q?73DOwTu7uuHjxBQaLxH+0v6hXx3/46LY3w0GP4CDgWRxXsljN38tQWn8SWkz?= =?us-ascii?Q?IhzWVzkgcWJayBbjSW2nvb8PM2UtHWvT3097a6vVrHfLuC9G9FGJbeJb/3RY?= =?us-ascii?Q?V5SM+cwt8Yo58eVADYUs4Qogsb8gep9k2UO1cCe721eTX0pzGpveCZeYwJC/?= =?us-ascii?Q?Fuzyix/tLUPbJQEiibit7k7ul33driPbLdJs06Ol6rQUAVlS5xIDwgPDgDHV?= =?us-ascii?Q?xcen6w1+Xv/NyZCeXgYDvVpoEXOmlz3enaWsTVqGNqkzvmQhd2mMbU8TUE4A?= =?us-ascii?Q?AFGlYTQaxlSigR3Y+NOxKeIgaj1x7V4fmx98JqhB5pLz7s2UFXRc8BtVahoU?= =?us-ascii?Q?JO+6YSwC0YjnIPRrK0baedBZix3R6sSooV2K7t6v5cJziBzIyaqsGWgVJjgz?= =?us-ascii?Q?nxGeFpZtYcwtpAcBCxj1s7wtvqPHTMjDLrsyRDWlWVYSUd2aRrEd/Tp1FO+7?= =?us-ascii?Q?RWBUvYhjNUQMVLVbCdO/WHN6NPY78iN2vYVjutiX/WXN/XNnA8gfm4rador9?= =?us-ascii?Q?Sw8KO7jXvPIliFpgQVOT7s+7dDhlQ6MtRksA70nwizeIZHYHqC5xxVTIZOaP?= =?us-ascii?Q?nxnspKNeixjU44JNiA/FARDUi564K5Iv0lvB1RmxeV96GZsNaYbbNZfwqqwd?= =?us-ascii?Q?mdeXILtBYMd+d5xNOesqp9tV+Ka+1owGHfISO0AMGMXW2ZjN4fhOFY53MBsT?= =?us-ascii?Q?SKDJpYE1kIK4uqTEC0ChxVgO2QBphUB24ROCjDKFnBE6MY+Y7WPVJxhn0dO2?= =?us-ascii?Q?8Ud3HPIx+x3Ocz0Nonuuh8pwAPWSPpQirb032QFVQE8BgEbwEOoWJ7jGDWn8?= =?us-ascii?Q?NMv4MHpY5b4A5CYc6pzGgz44WkjEo0uoOrCIgr0viftcDJt78A=3D=3D?= X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230040)(36860700013)(82310400026)(1800799024)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 06:37:05.7561 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 39a2b038-9965-46a3-1a04-08dd021b427c 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.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF00021F69.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8647 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 11/30/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=84123ec794ad3a8c2796fe344030ce8fb9c32e67 Thanks. Xueming Li --- >From 84123ec794ad3a8c2796fe344030ce8fb9c32e67 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sat, 24 Aug 2024 11:07:10 -0700 Subject: [PATCH] net/pcap: set live interface as non-blocking Cc: Xueming Li [ upstream commit 60dd5a70035f447104d457aa338557fb58d5cb06 ] The DPDK PMD's are supposed to be non-blocking and poll for packets. Configure PCAP to do this on live interface. Bugzilla ID: 1526 Fixes: 4c173302c307 ("pcap: add new driver") Reported-by: Ofer Dagan Signed-off-by: Stephen Hemminger Acked-by: Ferruh Yigit --- drivers/net/pcap/pcap_ethdev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/pcap/pcap_ethdev.c b/drivers/net/pcap/pcap_ethdev.c index 9626c343dc..1fb98e3d2b 100644 --- a/drivers/net/pcap/pcap_ethdev.c +++ b/drivers/net/pcap/pcap_ethdev.c @@ -522,6 +522,12 @@ open_iface_live(const char *iface, pcap_t **pcap) { return -1; } + if (pcap_setnonblock(*pcap, 1, errbuf)) { + PMD_LOG(ERR, "Couldn't set non-blocking on %s: %s", iface, errbuf); + pcap_close(*pcap); + return -1; + } + return 0; } -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-11 14:23:08.754897266 +0800 +++ 0077-net-pcap-set-live-interface-as-non-blocking.patch 2024-11-11 14:23:05.202192838 +0800 @@ -1 +1 @@ -From 60dd5a70035f447104d457aa338557fb58d5cb06 Mon Sep 17 00:00:00 2001 +From 84123ec794ad3a8c2796fe344030ce8fb9c32e67 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 60dd5a70035f447104d457aa338557fb58d5cb06 ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org