Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3665410pxp; Tue, 15 Mar 2022 03:54:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHKQ3iUXM6sKvG2I+lw2Hx4QxE1qR2pV4UUNIwQKU6pqaeF9Qr4sxamVDbqI8UJto/Vaun X-Received: by 2002:a17:902:da8f:b0:151:d433:83b0 with SMTP id j15-20020a170902da8f00b00151d43383b0mr28204665plx.22.1647341642588; Tue, 15 Mar 2022 03:54:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647341642; cv=none; d=google.com; s=arc-20160816; b=U3CuOURNZCo3SKIqaU8pXWIBQddZmTlWtt4/xM9hl+8+cde3tVGDD/pmeG6ZXrCGle O4LkxS9TewMEercXUiy3gwPs/1MdZxjCsowCiBFGKZ1u3NG4Ce/ncLUB0fy7mTL9QIZb 3nRE7EggERASbUGD/gZRgBAvG3KTg8ztIIB8SZ/ksc0K4N/VvWyjtvinTEVjEaJ46Img tW0PW87qZC4AjybJXqnQE+1IPpEgKRFMVzCkzDbXR8TU3fz7CIoi+fHyIy6Gf5gPj/q6 GAWR/3JyxPbmiwaFc2tdrKNDMrmfJFdTkdZbeMurEc/ttVrnIl3ovs/6ABC/2JyUXZTT 8lXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nVZ+sXU28rrZt0HUXoZkSxAegCUITWdjKOM6h1kIEBU=; b=ox3QYS6g4x1gYkwB2edBfSgr1O+nBWZuCDnkiARQ8o00rSSBLYFG2va4rJQUwl7+VD +wL346VGaTEV63Sxc9G7DyGl/eAEynWSsTElb87vBNT13Xk+Jsjzap9VYwM5fJDjxCEh ozkVnVXDlIf1Xh74VdhLE6MggU1f9K0BrcYrjzB52BD/66Qt3DEJsDhJ/xlVb1zcBtab LtkSsYNOj2d+uQ+SRpEx6zvX3OOv90QwPcweM5IK//VCTEEWHgcuRmtkebIS4t5573p+ BuF8R3SOdhZZzBxTeBIcrIOJQ+QP72J/bWaRGDSE6XXTallxNJVIIYDInze0Y6n5IL9c vnBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RkvNX4f4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x9-20020a17090a530900b001bf4e57a5d4si1044452pjh.35.2022.03.15.03.53.50; Tue, 15 Mar 2022 03:54:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RkvNX4f4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239564AbiCNLl7 (ORCPT + 99 others); Mon, 14 Mar 2022 07:41:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239580AbiCNLlc (ORCPT ); Mon, 14 Mar 2022 07:41:32 -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 604CD49922; Mon, 14 Mar 2022 04:39:15 -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 5E74E611A4; Mon, 14 Mar 2022 11:39:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BA1CC340E9; Mon, 14 Mar 2022 11:39:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647257953; bh=2fKH0gbagV5yGWiK37yDXFSKEx+IL4iEypRmgO9621I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RkvNX4f40zF6PIj83yeU2Ycr1agEitT1lkbft0r7i4Lkr2OOCet1YlwQN7AWWoHU0 3mmLYVRskIZhLKQw2TEbcoa+6oX8TrWATHRtC5gPTTOaJNdycXyE4O7/4BENp7Lwlm igMaVmIGKp/n4U+2y3FegZqzuj82SeuMXhKI5jTw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mohammad Kabat , Moshe Shemesh , Saeed Mahameed , Sasha Levin Subject: [PATCH 4.19 07/30] net/mlx5: Fix size field in bufferx_reg struct Date: Mon, 14 Mar 2022 12:34:25 +0100 Message-Id: <20220314112731.996293474@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220314112731.785042288@linuxfoundation.org> References: <20220314112731.785042288@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mohammad Kabat [ Upstream commit ac77998b7ac3044f0509b097da9637184598980d ] According to HW spec the field "size" should be 16 bits in bufferx register. Fixes: e281682bf294 ("net/mlx5_core: HW data structs/types definitions cleanup") Signed-off-by: Mohammad Kabat Reviewed-by: Moshe Shemesh Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin --- include/linux/mlx5/mlx5_ifc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index 5f711b2983db..af040fcd2c5a 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -8287,8 +8287,8 @@ struct mlx5_ifc_bufferx_reg_bits { u8 reserved_at_0[0x6]; u8 lossy[0x1]; u8 epsb[0x1]; - u8 reserved_at_8[0xc]; - u8 size[0xc]; + u8 reserved_at_8[0x8]; + u8 size[0x10]; u8 xoff_threshold[0x10]; u8 xon_threshold[0x10]; -- 2.34.1