From patchwork Tue Jul 27 23:20:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 488491 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B4FCC4338F for ; Tue, 27 Jul 2021 23:21:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 63D7A60F57 for ; Tue, 27 Jul 2021 23:21:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233939AbhG0XVP (ORCPT ); Tue, 27 Jul 2021 19:21:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:35374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233434AbhG0XU7 (ORCPT ); Tue, 27 Jul 2021 19:20:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E614760FDA; Tue, 27 Jul 2021 23:20:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627428059; bh=ZWZB/Z+94FiUdrPhGmWsd1M01Rl6qD1zZOgv6vO+xkE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m987wROoK0O2/X1TzedWSB2F+/vFJYb1CPmKHGC9FxhG2d3giqNs17sJbUqFLU4hp yUC9kp3Xhu+/kpj1HDS75wUfUmAYfjeEpgZTvDinEUG46LWTcYGdPSs3Ragn2S5tJP Px6lGs4Kldjo5V5pxjQqUlkJTld6OnMDFw1KGihCGNMziHf4JXS/8ok+NzYfikVYBX oclExFQrnkczDGFeC0nudSog9SCjxBJFVRB7GlLHK+uha7sLrlw8rB9uX3cq3mJMIu Vou+VvzAxCPy5Si+Zkn5CyA9oBPJ/ZwMiLImOA5nSf85JBKZ+OlO5h4gIEiE7i36Ec CJ3TgaqNdLzZQ== From: Saeed Mahameed To: "David S. Miller" , Jakub Kicinski Cc: netdev@vger.kernel.org, Tariq Toukan , Chris Mi , Ariel Levkovich , Roi Dayan , Saeed Mahameed Subject: [net 12/12] net/mlx5: Fix mlx5_vport_tbl_attr chain from u16 to u32 Date: Tue, 27 Jul 2021 16:20:50 -0700 Message-Id: <20210727232050.606896-13-saeed@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210727232050.606896-1-saeed@kernel.org> References: <20210727232050.606896-1-saeed@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Chris Mi The offending refactor commit uses u16 chain wrongly. Actually, it should be u32. Fixes: c620b772152b ("net/mlx5: Refactor tc flow attributes structure") CC: Ariel Levkovich Signed-off-by: Chris Mi Reviewed-by: Roi Dayan Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h index 48cac5bf606d..d562edf5b0bc 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h @@ -636,7 +636,7 @@ struct esw_vport_tbl_namespace { }; struct mlx5_vport_tbl_attr { - u16 chain; + u32 chain; u16 prio; u16 vport; const struct esw_vport_tbl_namespace *vport_ns;