From patchwork Tue Dec 14 10:21:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ido Schimmel X-Patchwork-Id: 12675745 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 950C7C433F5 for ; Tue, 14 Dec 2021 10:22:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232994AbhLNKWS (ORCPT ); Tue, 14 Dec 2021 05:22:18 -0500 Received: from mail-mw2nam08on2042.outbound.protection.outlook.com ([40.107.101.42]:10720 "EHLO NAM04-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232977AbhLNKWG (ORCPT ); Tue, 14 Dec 2021 05:22:06 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZlIhvVhS6NYwsjcIdm442j/3NtKGMVz6LexHisU1ko+i4WvxaoQcap0HsY7xv1pOESagakqnwc6Dq1JPztsGXKM8uyoH5CJIa88eCu0RkwYFP7RDIUWTm1qdaqYeAgVNacTxpBqMk0ZqRI3UEJ8eiyDH7oWONdaX2WyBsq5Db14utg2GWV+nDiMQnqvUi1fwr0WyAMV4m0LFtNYTeNbaZVkB+rXYVpBu+7DHb6xe6voPUoOdpson9q4dG7cBaQGLKy+lvfRNptOPEnA/oYPKASVelXBgILYLdfdi/nl26at9799GtwuGWo4rq+kADxtgmEO73TajIretQpA8Qq7B7w== 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=XqBkfTUzJkv+a99yD7Is/ggt5YXEX7tFZUWfNfYKGho=; b=gPMUtD4QozAJY2ELPhGAYO+ThEFnyovQw9J8KN+wq+b5crmPSeLjzDLLogmrbpEXHMpKxWveqeZ0Clc/CW7gyQhN/t5K1jyL7RzlohBjF2WoPivhIuIvl0M9yEQjayjDeLPvhKqbwUF0uC41zmV8y0RltAWJanGrPRF7ugbMGMByzrw6tU6CP6Asbf4kH70I87wpN8YkFCBxEegeDs431itZtrk8ws8PMbIqnB5kZhh+K+heFUdyUKZnHoLC413XZMIpbvmQVAO8rN3JqaET6OS/6XOPHSRur5kR1OAz1ys/WSKIBNQVedFmsgVKbJLxlbCecgI/q5rS0PerAejwPw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; 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=XqBkfTUzJkv+a99yD7Is/ggt5YXEX7tFZUWfNfYKGho=; b=qEj+/xQl8/CzUVYTCz+2iA8k2yUVO6x4QY1Ab4lTtwlVV+sD69ChfskGpCFr7TNTEmwLhaZqe8fjauZ8yhInl5ybyveEWGBN61rUPhY5H5pLvdTiYv5yaoMz5BC/PRZ/UjLKoFSWj1Rui+pCeKtVAZyVxJ7afZ7G++74XxjR65EiRzcMWM+rz19RJmX5pPo/tF3Yrf4kzGLwP4poJHAMxZbUfZqAzUiXsJDw+McoBgHeLRmGu3u4Ku08hv280tV2rxX3tJAbJppS+30rRrDCebCPdH65gHxPUWflmDYmHVyWJK8CBmIsg8NasVgF6LEWTBHAu3aCqtnOamdO/hxYBQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BYAPR12MB4757.namprd12.prod.outlook.com (2603:10b6:a03:97::32) by BYAPR12MB3079.namprd12.prod.outlook.com (2603:10b6:a03:a9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4778.11; Tue, 14 Dec 2021 10:22:05 +0000 Received: from BYAPR12MB4757.namprd12.prod.outlook.com ([fe80::398b:d0f7:22f:5d2b]) by BYAPR12MB4757.namprd12.prod.outlook.com ([fe80::398b:d0f7:22f:5d2b%3]) with mapi id 15.20.4755.028; Tue, 14 Dec 2021 10:22:04 +0000 From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, petrm@nvidia.com, danieller@nvidia.com, mlxsw@nvidia.com, Ido Schimmel Subject: [PATCH net 0/2] mlxsw: MAC profiles occupancy fix Date: Tue, 14 Dec 2021 12:21:35 +0200 Message-Id: <20211214102137.580179-1-idosch@nvidia.com> X-Mailer: git-send-email 2.31.1 X-ClientProxiedBy: MR1P264CA0078.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:3f::24) To BYAPR12MB4757.namprd12.prod.outlook.com (2603:10b6:a03:97::32) MIME-Version: 1.0 Received: from localhost (2a0d:6fc2:5560:e600:ddf8:d1fa:667a:53e3) by MR1P264CA0078.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:3f::24) with Microsoft SMTP Server (version=TLS1_2, cipher=) via Frontend Transport; Tue, 14 Dec 2021 10:22:02 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ed1e9be4-247d-459c-38f6-08d9beeb92b4 X-MS-TrafficTypeDiagnostic: BYAPR12MB3079:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4941; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +RMneDvKdvnlKLd9P2gAw2etauOXfbLbEEP/WokdSgtK0zjIPB4r04S3rcFruPgdVn6wyo2+r3vYsCvMyeyO3Kvk3+2S6tBTLcty4JQ1C43QMBxlxbNkjM6m3abLBXeLD2Icl2nIr8GuLS2Xm0ptbKebNVeOR+LBpAV4Plc3QPoUm/qFI7MPiv33Cb+k2H/+PyytSSBXbtPEQDFFStO9BY9a00EanyhvyaSVUQCHpO3OVq38P8MbSVLwDAX5CANnu5dWKoUVRYMEP1kG3Ao75JE1NqsuMVaCPTYYF/Y97tUwWqpbxOLEysA8MHqJKWwmK4pPN+Jw6jqVSE7NbkQJ4Vt4ABCyjJ+OSdG32fzbMzKWTw+IxgmCKq7U2L+eaaPvJW3RXNl0vNzhjytntW0M29um8J4+HI/KRfq90pjp8X9z/bxS/iqe/nUiDCmroGWbo2ZBRAq3M3cDUm6+gXQ5OdtMUCGTJyUsBYXhyg4HXAd6yLwUP9+P7ztddgT5nLplxZUQv0K8aRuXsbDZqbXSzZGpM0xOJSRC+wLTJtmuY4jdDLaHG5peTagfSp8uYM/aglqNueos5RkU+mmfCumsyJOPQEFJWbhJSTT2wu6kDXAzpHfIb4wEt1JcZJY+UhWrnPTkhuuRa0ah0TWJLo9cYA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR12MB4757.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(4744005)(66556008)(66476007)(66946007)(508600001)(5660300002)(1076003)(107886003)(66574015)(316002)(8936002)(8676002)(86362001)(83380400001)(2906002)(36756003)(6666004)(4326008)(6486002)(38100700002)(6496006)(2616005)(6916009)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: B+CiYJK0DeC+bz50THMR4QhkiiisCuofQT+X6c4uwc9O15yFlEWXr6XdEgB1XjF9NA1bMoVKX/88bOwSALle+ZI2LIFm1ycmZBiSPnJs9O3vXa2tLvfhE+8OuDlKfRs61DkrADJ5+2Vxze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IDeBMFbKl/ldNevcTm94w7qSUKJC6Kpr1rw8yT0SwZHqXGnuOfUue+AEr8s7f2VR8165T7i2q9VlXASo8MBcmpCCBW0vsub0l2STIrJvQcEjIQLVEP+P9lMLg3ZLINCW5Ubp6RzTGM5zP0fGJr7/h1prIHC5YU5k2+Wdb39LhKPjt7hMkcXN5WIS2vwy1yIH+okDUteqF/gcw3NNuSegI3csmyoJbqKuJmadKDNrpOY/Z/LpZ9ifiL4TvXPDQFQUIoZXiJIRzQLgcrIWpv96k2pr5E/PTAfM7mD6aX6OSB5bIv6GLePb3XZQMGTmAP4b/KbOp57DQ/7RqlNPTWqDosugJJx2mfpiyKOfGmguOwV7QKsMdGtJ9m6yFnaz7aWOr5JMPW58CPzIajZK7gNuDaystxKrXN1AOToX6KJU2pt0cE1z3sh7kSqFYTlSW66i5PyQvjQ1wrTIhBKu3Q/WX2c2Uwfx7D+YMjUrYo= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: ed1e9be4-247d-459c-38f6-08d9beeb92b4 X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB4757.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Dec 2021 10:22:04.0012 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UCNLsKef5VbYGEKAGdSNq8ylcYoEDL7xRak9wiRD2/PH3oC+7Daprh9u43rtmfCpke7OrHHnTKl5M3P8e2WN9Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB3079 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Patch #1 fixes a router interface (RIF) MAC profiles occupancy bug that was merged in the last cycle. Patch #2 adds a selftest that fails without the fix. Danielle Ratson (2): mlxsw: spectrum_router: Consolidate MAC profiles when possible selftests: mlxsw: Add a test case for MAC profiles consolidation .../ethernet/mellanox/mlxsw/spectrum_router.c | 3 +- .../drivers/net/mlxsw/rif_mac_profiles_occ.sh | 30 +++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-)