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 A90C6A0C43; Fri, 22 Oct 2021 23:14:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 27D064069D; Fri, 22 Oct 2021 23:14:28 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam08on2068.outbound.protection.outlook.com [40.107.100.68]) by mails.dpdk.org (Postfix) with ESMTP id 9E60140150 for ; Fri, 22 Oct 2021 23:14:26 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WdJFZheQE4bL3hmY+8/oiS88QvE6PsoOj2E+nm0OPJM+u1wKY7Zg9IL+yP+edoNZ9/jq/4R7GgHBdbvx91c1CwzwEGaUg35OjY/GANwhqR9vENHkxkA930Pd5MGwIFLg/jU4vD+2cYS1Ux9wUxLct/bWIAef6giSSYZKsMxeugzdUVPkTGK1KTDJedixILA7yE4jaZoLssFfSGDiNn735ZaCYPThAoXVA/giAHUzw+xAjwRXEHPqNkfIE+LuzcXXwjgTMM9umQEFmAm0Nna/xBPtPkJIlFt45emJ+9fZrZVDzoOR3Ec1o3TdPT59+Kcyq4vNwKaHnvXhZVOqoOp+Fg== 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=unOyPW3NvDY1eV2Z0b7oC/fIQM7HLLLtympeNM+OVHI=; b=ErpSdaZITY3beznmwmX96Nx0Pn34EiUsdZrqVBoS1SEXGZ3xEVKVCvMkvguIEjNFi2tr0m8dY3JRqZN7nCcZBfiAnF7pLb4P+aWgwnYj4K92niXID08GH16eh2ph2t07gKlMFF5Ln1QzvQ6ctpG1Aow3gBiWOBh/XxmgoB3yC685x9+oEvH6tMdm5cR9miQD+/WST3Vl6sWx5UNqfOLFSUIGseDExCpUYGnuCNFSiZMKUCRes8DASnRGFetgByxqEwRblnaTWU8yP1M4AkZ+MzdvXHqsOZgVk8kHlIFfZBwpk6ZaVk2y0JReoqdFM86rhxFzMsqtwcg7bWhKeIFHVw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org 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=unOyPW3NvDY1eV2Z0b7oC/fIQM7HLLLtympeNM+OVHI=; b=P5EOkd3MyIwSFckrArYTyP50/+RFOEEHbqKtDePTgvdlrcYyLQNSFyS8gVqfdAXnBDVkluUsJ6Qq3hCjQmP+uxigUOujPsweaHoy9Z6dlQbNBSkcuD9fkHCjO29t4H1qrxWdoYpPQ6hHDPiicKPLtfIXQ9eu5vtzQzdFnn5Y6BLD7bSy5RHbuhuMtDQvvXYyUCE596B1Bv4TGqTlSZiy+LqdP4QRDmNB6T333l3miE7UVZ6edZst8f87YGtQ4DkDn0aOFvj+Qiukv/MH/gU/bjXMwT1EKPTcBc5OKmBF8oKxO0hv/Xe7yiC4jrzX5sg7fJrJCCrE1uIFXkXTJcbfKw== Received: from DM6PR02CA0152.namprd02.prod.outlook.com (2603:10b6:5:332::19) by DM6PR12MB3803.namprd12.prod.outlook.com (2603:10b6:5:1ce::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.18; Fri, 22 Oct 2021 21:14:24 +0000 Received: from DM6NAM11FT032.eop-nam11.prod.protection.outlook.com (2603:10b6:5:332:cafe::5f) by DM6PR02CA0152.outlook.office365.com (2603:10b6:5:332::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.15 via Frontend Transport; Fri, 22 Oct 2021 21:14:24 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; 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 DM6NAM11FT032.mail.protection.outlook.com (10.13.173.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4628.16 via Frontend Transport; Fri, 22 Oct 2021 21:14:24 +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; Fri, 22 Oct 2021 21:14:22 +0000 From: Bing Zhao To: , , CC: , Date: Sat, 23 Oct 2021 00:14:06 +0300 Message-ID: <20211022211407.315068-1-bingz@nvidia.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fca505db-fc46-4249-41aa-08d995a0ecb3 X-MS-TrafficTypeDiagnostic: DM6PR12MB3803: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Exchange-Transport-Forked: True X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8FQXcYrNdKp1SlNydM7nlIl59yFyHHF4LX7Hdo/4jzlzzLA4GsVs2FH4r1+We4Dw7tpXR5eTCOtlXmsPcpm5GjTBe2CZ7I3MDEPtvhobL8amhVFU5Yg84N0nOzn9McqPrH7/zQ5yQVF5n+ZGa4rVylXM3z7pBbb9JtvIABgBzp1Jx5tiAKEjvlOy6pfTJFOroMBpWgC/SSMglyk3yNAfMN8K0bswos5FG+o7covcSjb/mkXSi/29PxJtG/nezoWMFPmZWdBqVEKuIt7ydZBa9acunSp29Fiio7tsqgWUc0cfa+Xo6Ms8z3EA2MTp/ypkIHBpF27U5jLm1IOp34dyNhVGTIfeBFYLcPzJG2blKqkyoSm0uoDgpr77/LyHAIrbeaX558PsC8/oj9/Y6ZiChimM9feEo3TVucW0Ynh1+j5RRdfIG8faJcID0xPhPSVI9UoPkyu2ioBTrV4uPOh6hoOjsQHUxqmUcTRIdKEYl5vs+PRjz6Sgme6iW0e//SkRWE02Lne2nxuQdy0/NnSJREcIOUauFWkKRhKX/m1g7n26G9v+6LRdS3JI6kg4coRbJQXvt91E65r85rLrWvNLs4tT5Vt+3dAUCZaAFiiooxpxN1IlTqBvH/7PU4PiPLR9hh+ctDvKCf0yTz+SM8CiCq/NFc9IvPP28KDNwsuTUqlvntynuOzTZm+Uo2mJICzx8quZOiznRMWd+iP3U+h99g== 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)(7696005)(83380400001)(55016002)(26005)(6666004)(36756003)(356005)(82310400003)(4326008)(16526019)(336012)(316002)(186003)(54906003)(1076003)(110136005)(70206006)(86362001)(36906005)(8936002)(508600001)(36860700001)(6286002)(5660300002)(70586007)(47076005)(7636003)(8676002)(426003)(2906002)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2021 21:14:24.7083 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fca505db-fc46-4249-41aa-08d995a0ecb3 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: DM6NAM11FT032.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3803 Subject: [dpdk-dev] [PATCH 1/2] ethdev: fix log level of Tx and Rx dummy functions 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 Sender: "dev" When stopping a port, the data path Tx and Rx burst functions should be stopped firstly conventionally. Then the dummy functions are used to replace the callback functions provided by the PMD. When the application stops a port without or before stopping the data path handling. The dummy functions may be invoked heavily and a lot of logs in these dummy functions will result in a flood. Debug level log should be enough instead of the error level. Fixes: c87d435a4d79 ("ethdev: copy fast-path API into separate structure") Cc: konstantin.ananyev@intel.com Signed-off-by: Bing Zhao --- lib/ethdev/ethdev_private.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ethdev/ethdev_private.c b/lib/ethdev/ethdev_private.c index c905c2df6f..fbc3df91ad 100644 --- a/lib/ethdev/ethdev_private.c +++ b/lib/ethdev/ethdev_private.c @@ -180,7 +180,7 @@ dummy_eth_rx_burst(__rte_unused void *rxq, __rte_unused struct rte_mbuf **rx_pkts, __rte_unused uint16_t nb_pkts) { - RTE_ETHDEV_LOG(ERR, "rx_pkt_burst for not ready port\n"); + RTE_ETHDEV_LOG(DEBUG, "rx_pkt_burst for not ready port\n"); rte_errno = ENOTSUP; return 0; } @@ -190,7 +190,7 @@ dummy_eth_tx_burst(__rte_unused void *txq, __rte_unused struct rte_mbuf **tx_pkts, __rte_unused uint16_t nb_pkts) { - RTE_ETHDEV_LOG(ERR, "tx_pkt_burst for not ready port\n"); + RTE_ETHDEV_LOG(DEBUG, "tx_pkt_burst for not ready port\n"); rte_errno = ENOTSUP; return 0; } -- 2.27.0