Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp661023pxb; Fri, 29 Oct 2021 17:57:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwU5nw7jBZ36S4HF2QB6TWyPS6aKKxtOokiZRR7poOsaUAdmDW1eUhpD9bAqUgVwIlo9ZI8 X-Received: by 2002:aa7:c501:: with SMTP id o1mr19282276edq.99.1635555441736; Fri, 29 Oct 2021 17:57:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1635555441; cv=pass; d=google.com; s=arc-20160816; b=pYKXBMTbW8EvATV61ZxFbkMCKKCZ4m4JHRLZPkGzg5yUZH9/bsjVtNp+xNTIj+bwEK 0NKjoOopmq7CPxXQ/F/9wRHws/iaHCRPlDQOJwo6CGcujZ5SLjCTBAeFrwlg+rFrD3Jq F9+Kxu+j89OZALfDEfoHneAKlWEbAmWMR3LY9GO66+C7I6khy2XQaJoTtdU4i86gq+xc CST5aK24r3WZt/DkWwWEXN3RkFtWF0ug7rDANQHZ9YrMny9aSapfYmkzDvr64XH5jYCc Y2tlYSbDaLbSLUkxipy9EO+2n9tb4aIC7XN97TYudbGqtOCFC9PEVoQ69w2uvWRIIzyN NYjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=tCSF9oJ0wneBcePeooOP0wgTGzUn2QDAqbjau00PpZA=; b=Mj+tDAmfpPkd+KHF4C+ktkkS+RGAEYepCONcxEyKkHNO7qeLUxEAeQCcnipM3GBR2/ PkNCkFvKyGvMXXGwHS7Pk8hQlxH0/yERR4ZPEryKnc+UOeonG4xfwKljDEMqtaYKdp76 0QTEyUsiKyhvef3LVCKXoZ+QpmYlPW2MnjGpnn9eVAt2pQU4c1Ig3R9orRTM1/bLZuj/ UVYch1u000mXAslVEvjWzKNjgOJQsX7Y44dHdAt+nOvm5AyA8m5iweQ8y+VzS9zjN5tX yxAAAK4EpcFGBAJS/V9A6cj/qGR261ZpVaGUacN2v/r94pfYFEL4/+0ZO4hef+MJABFF dRvw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=FXD5EQrB; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mp32si13537101ejc.351.2021.10.29.17.56.57; Fri, 29 Oct 2021 17:57:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=FXD5EQrB; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231522AbhJ3A5L (ORCPT + 99 others); Fri, 29 Oct 2021 20:57:11 -0400 Received: from mail-cusazon11021027.outbound.protection.outlook.com ([52.101.62.27]:23128 "EHLO na01-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231286AbhJ3A5J (ORCPT ); Fri, 29 Oct 2021 20:57:09 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bzgUtaHDrsq6q7+3Mle8pXp1G3iViv52HHLywokl2lKe4qYT0fJscWxKjOgQ5waAU186JWlwa4f39jjusxa32t+kqgcLSZXMemQgVBrsrPhqCSSKuJpqEYZwHOLbCe8xaIoddMU9uPSu/XQvfz2a206epqeQbyWR/QeaYu+i0nJldNel+Chb5SJ2PKE/gFtWgRiQ55ilLy+MlYdY27vGAnLAbS8g6sZyN3HUpiGq+LK0qH0Luy6aBAH6/jtZ7skdu3zPbfKB8MYIn3OSy1tz8lEexlDy0xajDN2fpAP5GTpU7E95NKLmtHmB2/HAFkxxxODNDfEmkrF5Tm9eQVOE+Q== 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=tCSF9oJ0wneBcePeooOP0wgTGzUn2QDAqbjau00PpZA=; b=Nn03XZZ29dVwsBfpOaOMprMwfEmFUvYV1OsVC5jaAIB7hwcO4XFikv3y53n4scEFRwSb4KTd6Ukj60re0XGTUX3TsiL3LIbOLtdGcIJG959YR5C8N9Tft+exeHJqJIq60U4rYNPqA47RMrO4Kj0m3A65jW7rT9gSXpUSZKcFKFwnPOEPSyKHnr9Mhubo4DBvBcfnvgWS7esYcAEHK9A5jAjF101Z2CAfrFexHNzF3D+VbAk8122Q4RTqZFTfmX07vbbX4z09UsJA6MVil0kInw5EZWeH30QgNXLlm4D3kctB8g17enml4NAUHoPUjpKN+EhtHbCkcMWXzFgnncM2Og== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tCSF9oJ0wneBcePeooOP0wgTGzUn2QDAqbjau00PpZA=; b=FXD5EQrBRVORih3erEIKesz9iPy0n8JHfdZdPY8TLrGqK9S4cDsJEbuwob74A7ldqE8/RBGudYSQjdNWZQ5g2rVuWfqPLnneZjpcwRJ+mlz5yyfMljFT4fhlGwfAtYq4gyq/1iN5VdE00Cnz+SGrGt3NvE7WqCLo08afd8HK6eQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; Received: from DM5PR2101MB1095.namprd21.prod.outlook.com (2603:10b6:4:a2::17) by DM5PR21MB0827.namprd21.prod.outlook.com (2603:10b6:3:a3::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.6; Sat, 30 Oct 2021 00:54:30 +0000 Received: from DM5PR2101MB1095.namprd21.prod.outlook.com ([fe80::c0b9:3e28:af1e:a828]) by DM5PR2101MB1095.namprd21.prod.outlook.com ([fe80::c0b9:3e28:af1e:a828%4]) with mapi id 15.20.4649.010; Sat, 30 Oct 2021 00:54:29 +0000 From: Dexuan Cui To: davem@davemloft.net, kuba@kernel.org, gustavoars@kernel.org, haiyangz@microsoft.com, netdev@vger.kernel.org Cc: kys@microsoft.com, stephen@networkplumber.org, wei.liu@kernel.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, shacharr@microsoft.com, paulros@microsoft.com, olaf@aepfle.de, vkuznets@redhat.com, Dexuan Cui Subject: [PATCH net-next 1/4] net: mana: Fix the netdev_err()'s vPort argument in mana_init_port() Date: Fri, 29 Oct 2021 17:54:05 -0700 Message-Id: <20211030005408.13932-2-decui@microsoft.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211030005408.13932-1-decui@microsoft.com> References: <20211030005408.13932-1-decui@microsoft.com> Content-Type: text/plain X-ClientProxiedBy: MWHPR22CA0002.namprd22.prod.outlook.com (2603:10b6:300:ef::12) To DM5PR2101MB1095.namprd21.prod.outlook.com (2603:10b6:4:a2::17) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from decui-u1804.corp.microsoft.com (2001:4898:80e8:f:7661:5dff:fe6a:8a2b) by MWHPR22CA0002.namprd22.prod.outlook.com (2603:10b6:300:ef::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.14 via Frontend Transport; Sat, 30 Oct 2021 00:54:28 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1bf7f011-8c84-4d92-ff04-08d99b3fd426 X-MS-TrafficTypeDiagnostic: DM5PR21MB0827: X-LD-Processed: 72f988bf-86f1-41af-91ab-2d7cd011db47,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4125; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gAPhdp5rdgDRoEals4jOkiK3BFjgKx0+ogcHuDyhQMKom5FY7yjhElJoKH38K3Y+h69x4ppezr2xUs+g551rzPgF0vNL6VeHjFqBkO/0oImqNgrS7Q9tgjWnL8AGiaDh+voQvMISt6JrgCBPX8/2lgNeJrdK70iugLO2MNGOvfFaxLBqDLwAQxswiFuwM4jr+RK7tcQa2Boq9OmssmzQ68Y3wtLL6lNVLuDI3jwCC3KpHWBpjbmyKjYygOmEnbDfTAyj8I5hGiPjSHQQMVMM306ESUK3Xen8pF9sUZY7cIsNnWAyMtwuNrSZr47V9TTUtQRkeA/1Fu6CtBus8yH5TkDTYzWYT3D9liTWetu/mHC0grvVR8oSftE5jMbrvAoVhRWUp0pPhI7Yp8da5t0U9mBeMZwJ75sl0V/JfrZFbynRvT/vC3/aDv+2Gl7aQ4y6BmLGoEO+ImYeqdIoVtdRV7/TnXqtvUR52hOxmqLZVMGKS95M5AFO7z4OiLYLijgkW+ygsIx7LQpFu1uVDMPy7gDYwzsULRbao77fdg6bD9EPsjuMEidFwr1oaSzJRp+gSbJKuA0YqH1YsZzNLsr7xObSMxdVk/izgWAMfpOyzwOdDuEOvqvDrUTCqa8NxGVtNJoHO1cByAE5J/hdeR28JA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR2101MB1095.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(4744005)(52116002)(7696005)(86362001)(6486002)(1076003)(83380400001)(66556008)(66476007)(4326008)(107886003)(66946007)(8676002)(2616005)(5660300002)(6666004)(10290500003)(38100700002)(82950400001)(82960400001)(7416002)(36756003)(316002)(2906002)(186003)(8936002)(508600001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?WGbHwOOiD/VljS9JMNBOlg5pNM6Wh3oknzY0FLg/y6TUzCR27C0IpcYWOm6O?= =?us-ascii?Q?umkcGR/d63wOxUliZdBCHoAIeybrt/NDeRMOf6XE0BhmWbfBwBfAZRz5dOt7?= =?us-ascii?Q?rNoZflaDsd7ThVUWyPW5NXq1172mm1DVZWj2PXf0n9G2UmKm8TRCChDZZPa5?= =?us-ascii?Q?oi9ihUrnkdTEr98AU9cka0Q7NUIrHo9I3Zpq2WzSEPrn5d+Ss10EPUj3/W7+?= =?us-ascii?Q?QxCL4SmBZUM7SiMwKEgnSZynSxO1tukxLeTcXVb80Z6XVxsPYh9y5skNcuF8?= =?us-ascii?Q?M25ioVzpb92y6Zyhnbc5eUYuRXJJ/nbQt1e5n/5hEk3tDMHcFkyv3oBADAwU?= =?us-ascii?Q?Y5CBd8u7JpKIt6wDiUJIQwibGjfqcKgtLm4Pujh/xslvIk0wUYMdympmL7/X?= =?us-ascii?Q?EUwvtZA9owB9Kg32DT/UFkOXlDLa9FDaXx1wwAMy4kzRxvRaiNKDPye+0iia?= =?us-ascii?Q?cXA3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MKx7oyPgLx6WEOVVB7wjhHO?= =?us-ascii?Q?nxGt0Bsa6ARYucta5w0D7apnDIFJ/D2DoqgGCS5PeCe4lL8cr9BoEuYyFCTL?= =?us-ascii?Q?5P+Nx4wYruf2PkK5gq+64Gp52Bh29/i3BXhf08Li8siF59Q1ZES7c1gKQYBT?= =?us-ascii?Q?dDSSyTTVSAXxpb/vLlZ7f6FOXeW+Pd1bul2zrk4THRyPWd0Hv2nab8WpphF/?= =?us-ascii?Q?bqWIb3ngjcwNzt45vAYv4vjSDS22hzeMl1FCa0RCOlrXD+RZ4/7nect+2snh?= =?us-ascii?Q?05E+6YhrsNbVbwG3mQKh8m1y9Yxbw0L23xy1VnI83T70++dv/LBCPSdoFWLa?= =?us-ascii?Q?bgoj2dtwgsZX3l21kmqoKQBqCOk=3D?= X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1bf7f011-8c84-4d92-ff04-08d99b3fd426 X-MS-Exchange-CrossTenant-AuthSource: DM5PR2101MB1095.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2021 00:54:29.8063 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: qJxM53+vnT+eAeJjMNdy+jdwf2lwV3xdRPgV1qy7rgqK6QlqKL57T66c5x2hhAA3Q6mES9+I89hVAQ92jX/Jew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR21MB0827 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the correct port index rather than 0. Signed-off-by: Dexuan Cui --- drivers/net/ethernet/microsoft/mana/mana_en.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/microsoft/mana/mana_en.c b/drivers/net/ethernet/microsoft/mana/mana_en.c index 1417d1e72b7b..4ff5a1fc506f 100644 --- a/drivers/net/ethernet/microsoft/mana/mana_en.c +++ b/drivers/net/ethernet/microsoft/mana/mana_en.c @@ -1599,7 +1599,8 @@ static int mana_init_port(struct net_device *ndev) err = mana_query_vport_cfg(apc, port_idx, &max_txq, &max_rxq, &num_indirect_entries); if (err) { - netdev_err(ndev, "Failed to query info for vPort 0\n"); + netdev_err(ndev, "Failed to query info for vPort %d\n", + port_idx); goto reset_apc; } -- 2.17.1