Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3607716pxp; Tue, 15 Mar 2022 02:20:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUaSscWY1BITLnt4mrquxW9mkHD+GpfAii8wPXAclfSqMFnPNCr+Y4l+H1AxIjg7tepkh3 X-Received: by 2002:a17:906:688e:b0:6db:20f:30a5 with SMTP id n14-20020a170906688e00b006db020f30a5mr21304411ejr.243.1647336003188; Tue, 15 Mar 2022 02:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647336003; cv=none; d=google.com; s=arc-20160816; b=VJ1LiLpFpBoHeNf5/IMmg9kqA4HaaxFHlajE68KeoieJgFXYu1f+pwF7d8ZCYgvHNJ lvNKvwarfvWyJVOOzJXm4flDCski5+siWUko0Gz8YQkDkiyRxv1uWU5xic5pw266CiJz shbhJgEy7lg+m/q3blg4lYZLvojGx2Mq2mVsu+XO3QxrI8XljfcYEJqCiq5VkqgY7hft 4FYhyInH85rLvKHXGhHmHTT21WfAYexhJuY55QEW99KlqLmBckU8Y/6RkulZLZE6KNxE U8o4HjrOYg74lngAUiU4A8wMk7v2HmZpaSMjZZ89++AZR3LsKY9yMwQX1srwbk2ZvkQC 48NQ== 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=arX7gaiuakrB0MhjJCI9taKfuqvPj44YudgSXLeCvBY=; b=pF32Q03SfU1vmKPwEoFgx2xxxRdkqK0RfpTelaJmwoEridVGEfzTcocIc4fUUur8qH vHZFuRRuPVzXgXhPiXWDcoBJgzgCFqtroqEG4f85vIVsWqK9pNlTllGr/PGbVaanUaxq FJPnMhJQRZs8P2XUaduYrvdQVzLToprS4Gnyh8GgqWxBs/27BfKndLPllmhNW1EwyL+G 3s0JM5VUYErlS/908biQaGI+Mn5+R6N4ebzaDLpynHFJNB43+Ux0JpGYX5ElWvJWoBUB W7Qea8ZmPc1wUG4WDu4DWuj8UPTGkm7f+wuXVcKnQ9Qdl1OD1CpP5kFy3tKbqIC31zjW GnHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="UhzY/vnZ"; 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 s18-20020a170906501200b006ce8c194831si10073946ejj.904.2022.03.15.02.19.37; Tue, 15 Mar 2022 02:20:03 -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="UhzY/vnZ"; 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 S241209AbiCNMNE (ORCPT + 99 others); Mon, 14 Mar 2022 08:13:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242635AbiCNMK0 (ORCPT ); Mon, 14 Mar 2022 08:10:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A20F72DAAE; Mon, 14 Mar 2022 05:09: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 ams.source.kernel.org (Postfix) with ESMTPS id 52A64B80DF3; Mon, 14 Mar 2022 12:09:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E8BDC340E9; Mon, 14 Mar 2022 12:09:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647259753; bh=xJ+KYWSxLIKSGGFBEs/vHnUXou4aY8bd6GyVJYnNmZo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UhzY/vnZ6AgnanGtRV3BwxZ4Fv6bJFMoeYeHBVDy0Tgmdg6L2J2wqldz5JWSTdl7e O5LM1D42quguC2OYfJEtNO4btHoZkkjecwAzTJPcU1ltTkv7VYECQiXjbruJKaHS1y j+q6wESRfKJo+6yApwsux1F3KYCfBOYMbj05eyrk= 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 5.15 040/110] net/mlx5: Fix size field in bufferx_reg struct Date: Mon, 14 Mar 2022 12:53:42 +0100 Message-Id: <20220314112744.157043431@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220314112743.029192918@linuxfoundation.org> References: <20220314112743.029192918@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 25d775764a5a..fdf4589ab4d4 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -9508,8 +9508,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