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 42E8CA0093; Mon, 14 Nov 2022 19:21:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2EB7842D1E; Mon, 14 Nov 2022 19:21:11 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2087.outbound.protection.outlook.com [40.107.94.87]) by mails.dpdk.org (Postfix) with ESMTP id 84B8340150 for ; Mon, 14 Nov 2022 19:21:10 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kd48K7Sl9Ran7NtllVS4XOIBV9vUf/z2gqhFPMDnA1uEoXSK/p4F6Jjci8rwzWMYAL3EOllVlK9iuDGoK1qjjQmkg3DLsseq0oVUX/FTfjuL384JLopDslGIUCQqEpa6SMy3yBljMFjRIkzvQHkXotcBhuWpZbg0C23C25HJNxcVCQkKSMFL5cTdIPulpSoIdeUqj7E2k6c/GNx/QJnz9lnB8MhiTrLDHDZxIE5Y2RYgAEQzmkTcU5ngbSre/yo79O+fyGhowL953wVlpNALQWY+vSdB15xAE7Ln5PcYF4emDFiDxk0YIf0Vsdc0aKLIE4GOOC4pdWpV1656REl1iw== 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=DjJO49GQyTw+/nPy8HuZqk8gMWitkRfXnHRSiUWeFbA=; b=YWqbOzIwQry5igR3QQUxQdGGz+BHvX6LbltuOUeVMU3tvu7dLXeodcoRAvmt9m3kGX7OdURaT4bGyrGw7ynvgNtK5KFeiguxGKvlOR+pt9k301BgfbdKczxYb4TVfQT5JTNxAx/Cbar4PANXG51Le9lAsvsDAw9Y9jsXwA75JXO5A/KiGhsyqSeJCBYqlV32ZbNxP+zGBnmWhtIXzgYm49ISOsgwM2JOZGXjzzwUxAhBKM2UsvLJMsHkohTMpmunj0a2+Hm9xml9siBns/hLCBEBm6oF2v3VpmFzJRExt5IWcf17a3Tiv8ed2jWYD4TGIpyYQzQu/yYDNaAS+ySsiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=dpdk.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 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=DjJO49GQyTw+/nPy8HuZqk8gMWitkRfXnHRSiUWeFbA=; b=dlKmKC+Ir21I3tOt8Qxt/AxETOet8bQgK6V+Nm5Bo6zRD0OKkUWg9m2H4gT54jyAR16bJGvVgQpw2H8X949mFDUx91KD/NJ94rf4vstdbca+SMYnD4x5BDoHyD9RiXDVrpkuoGeeAyUtC53kZlh8vdL+DneBbiTjc/NOgBPAO72RZdD+iFqTZl3S38Ij2C3c+k6I7QGuaMSCqCvY9Y7DbeDtNQxSazBkNeZHJ5vhQpgWdoFzboUt+mA/TpZPev+Lous83LrTXiH97EgIYto2i+9ZSmvWPbdBzH4CooYz6XSll0YeCkJXEOjURGCJwbDwkUnh8sbeTSewgw0v3BMxew== Received: from BN9PR03CA0468.namprd03.prod.outlook.com (2603:10b6:408:139::23) by MN0PR12MB6032.namprd12.prod.outlook.com (2603:10b6:208:3cc::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.14; Mon, 14 Nov 2022 18:21:08 +0000 Received: from BN8NAM11FT038.eop-nam11.prod.protection.outlook.com (2603:10b6:408:139:cafe::2e) by BN9PR03CA0468.outlook.office365.com (2603:10b6:408:139::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.17 via Frontend Transport; Mon, 14 Nov 2022 18:21:08 +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 BN8NAM11FT038.mail.protection.outlook.com (10.13.176.246) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.12 via Frontend Transport; Mon, 14 Nov 2022 18:21:07 +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.986.36; Mon, 14 Nov 2022 10:20:51 -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.986.36; Mon, 14 Nov 2022 10:20:50 -0800 From: Dariusz Sosnowski To: Matan Azrad , Viacheslav Ovsiienko CC: Subject: [PATCH v3 1/3] net/mlx5: fix log level on failed transfer proxy stop Date: Mon, 14 Nov 2022 18:19:54 +0000 Message-ID: <20221114181956.1052159-2-dsosnowski@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221114181956.1052159-1-dsosnowski@nvidia.com> References: <20221114181956.1052159-1-dsosnowski@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT038:EE_|MN0PR12MB6032:EE_ X-MS-Office365-Filtering-Correlation-Id: f4c5c468-f9c4-4149-a388-08dac66cfffd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sZe1vAXiiI556FAEzJhfEkJWq4/dsSHCMyecBcwLZO82UnKtBMmhCDse71YvfLqM94U7JrT2uKF3gO6xM1ogRVbkCFe8wF9JVFO/MgKwkOpxowuW3nDQBX47ae+CY4qD2jUX5nN4jsRtqwsSvMNv9iTXfoVX7Z3IGeH7H7C/Dpde1U9jjSYJidfadoNRnMMLJSiFQ4Sn36HKCHn7QZaoul9jhXGIxXLCZxF5YisMoE6yG+oULPQKjFcDQjjybWT5mBytP6pf5TzedF9wn/jGdgd5VSAfeo+/1T0vtQwpB7ByYtTe6etxgYSdE6QWNe5Ls5Fs8zBL3NhjfYwUB2Wp61aoAkY121cvCx938GDGU0xbC9LNUkGHI1i0d5OjnS1R0Oins5+5GJmQoI0BVftgkGrLixcXltqMxfHNasTMBqpbgRQYb3zXxwnTJtaaiEHgzapjcpkCJpA6xB20gxPh3WH0V0cpMP8MqeMmqw6E1CFi/tvrmUxej3driTDIl4P8N0CbHvEzLkyYBpW6dy8CVZKDsDneOug/IQ+/IR4HEoPd7eKiGb6aPQuW+N8qKKoJI/VPdoZkHLdtIpTBawTv+DOGbvuXUTzQ8sTHrp7KwVGmHksBuIOl5HNxHLXkGsrs0rycPq86bQ8IHbD136zr5+3s/4K/N7fT0q9pkQRW/NuIWu+Lzst8/3DW2lq9NcfFNhMXdjF1PniNcYVuU63KXyPCOS8GcSHg4HlPYmZ0KB+CXdews9j5RIu2sIcLuEQ5xd4PUfyt5CNjSDIcbYzj/A== 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:(13230022)(4636009)(396003)(346002)(376002)(39860400002)(136003)(451199015)(40470700004)(36840700001)(46966006)(1076003)(8676002)(4326008)(70206006)(186003)(336012)(70586007)(110136005)(16526019)(316002)(6636002)(2906002)(82740400003)(6286002)(82310400005)(36756003)(8936002)(40460700003)(5660300002)(41300700001)(478600001)(86362001)(40480700001)(55016003)(2616005)(7696005)(26005)(47076005)(83380400001)(356005)(7636003)(36860700001)(426003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Nov 2022 18:21:07.7739 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f4c5c468-f9c4-4149-a388-08dac66cfffd 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: BN8NAM11FT038.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB6032 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 This patches increases log level for error reporting when stopping the transfer proxy port failed. Stopping can fail with EBUSY when related representor ports are still running. Fixes: 483181f7b6dd ("net/mlx5: support device control of representor matching") Signed-off-by: Dariusz Sosnowski Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_trigger.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/mlx5/mlx5_trigger.c b/drivers/net/mlx5/mlx5_trigger.c index 9854df828d..fe6359908a 100644 --- a/drivers/net/mlx5/mlx5_trigger.c +++ b/drivers/net/mlx5/mlx5_trigger.c @@ -1377,9 +1377,9 @@ mlx5_hw_proxy_port_allowed_stop(struct rte_eth_dev *dev) representor_started = true; } if (representor_started) { - DRV_LOG(INFO, "Failed to stop port %u: attached representor ports" - " must be stopped before stopping transfer proxy port", - dev->data->port_id); + DRV_LOG(ERR, "Failed to stop port %u: attached representor ports" + " must be stopped before stopping transfer proxy port", + dev->data->port_id); rte_errno = EBUSY; return -rte_errno; } -- 2.25.1