From mboxrd@z Thu Jan 1 00:00:00 1970 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 24E31C25B06 for ; Thu, 11 Aug 2022 16:30:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238293AbiHKQaG (ORCPT ); Thu, 11 Aug 2022 12:30:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238318AbiHKQ3H (ORCPT ); Thu, 11 Aug 2022 12:29:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3740A0274; Thu, 11 Aug 2022 09:08:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 61E6961387; Thu, 11 Aug 2022 16:08:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6C82C4347C; Thu, 11 Aug 2022 16:08:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660234135; bh=Qx+jzvtlK8DzpdoUViq1Gbkdtw2PnWDV8WXlS3mdriE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LFcuGphYw+n3Yfeiu+xGb2WEMlbdEi99sg0219zGKJn73gXpIPMOPsgLMDUesHTsi pZbQTt3K1w/B3YFAfsWoIqYluisKGTttdyKGsRXL3wZYYZCjQ2sBDTDa+9mzZwq67m hUVPu+JWgtMhnGj7MjlpjvpcK+wqBnHVck9u0zI/zZ0Spu7wrcePD9wMJzd7KUbyZz 97rlJI3nvJ+D5HReN7+4G1WO4RlP8alOnbUD+VscYnBnXadpJ/2Z/e/aa6HMLV828o d6TK4/YKpMBk1y5/dpfc23dAloeq63Mo3YpPmRci5F9ZFD/C0waXbRnsZ+kAlSiwYv zStRKqrc5Yo4g== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Amit Cohen , Ido Schimmel , "David S . Miller" , Sasha Levin , petrm@nvidia.com, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 14/25] mlxsw: cmd: Increase 'config_profile.flood_mode' length Date: Thu, 11 Aug 2022 12:08:09 -0400 Message-Id: <20220811160826.1541971-14-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220811160826.1541971-1-sashal@kernel.org> References: <20220811160826.1541971-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Amit Cohen [ Upstream commit 89df3c6261f271c550f120b5ccf4d9c5132e870c ] Currently, the length of 'config_profile.flood_mode' is defined as 2 bits, while the correct length is 3 bits. As preparation for unified bridge model, which will use the whole field length, fix it and increase the field to the correct size. Signed-off-by: Amit Cohen Signed-off-by: Ido Schimmel Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlxsw/cmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlxsw/cmd.h b/drivers/net/ethernet/mellanox/mlxsw/cmd.h index 5ffdfb532cb7..b72aa4862cfd 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/cmd.h +++ b/drivers/net/ethernet/mellanox/mlxsw/cmd.h @@ -722,7 +722,7 @@ MLXSW_ITEM32(cmd_mbox, config_profile, max_vid_flood_tables, 0x30, 8, 4); * max_fid_offset_flood_tables indicates the number of FID-offset tables. * max_fid_flood_tables indicates the number of per-FID tables. */ -MLXSW_ITEM32(cmd_mbox, config_profile, flood_mode, 0x30, 0, 2); +MLXSW_ITEM32(cmd_mbox, config_profile, flood_mode, 0x30, 0, 3); /* cmd_mbox_config_profile_max_fid_offset_flood_tables * Maximum number of FID-offset flooding tables. -- 2.35.1