Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1594094pxb; Mon, 12 Apr 2021 01:45:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyk27Xn1bKeHcvI98tNvm+1c8A1bOktK4hnY5bSVfOeH1jIsYSnFWVD9d71eZlRAyGhJop4 X-Received: by 2002:a62:1e06:0:b029:24b:6b23:a72c with SMTP id e6-20020a621e060000b029024b6b23a72cmr6347918pfe.42.1618217149443; Mon, 12 Apr 2021 01:45:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618217149; cv=none; d=google.com; s=arc-20160816; b=xR+Dhcp4mwB0Fg753wDALNVPNtuzSlwUlBjbhZfa0OSNfI+Lya0u85GvlV1MwXAhYf jhjrQ/1fvZCYfz9FEYIoIuhm8uh26h6cK6kr21bRpJfezBE5nl3/AiykT+ytAwDHDeME fUnzG3YCHXZIbyc//wtf+HYxhtne1ryCjAtB9DdRJY3ECiILH8QGExPKopDGdr0o+ffo TnKYM63yWPt3VZbup6/9Vz/aYOPEwftHj0nP4GJmekMrn8RGzcYl2NLTtvIt7BPiz2mv c7GHA98kji/p9DYpGjbTXJVo4YzSSBKyUsL9R+5TGczWEf1Hm7IL9UqPrAlpyesy+Bpz l8Nw== 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=lm0Vf9nmNOl5kJc4qZoKabNeMDmZOX2p2S8Qhgjg8mo=; b=IhXjTbFVoza0vnOoRjYAHxlv7umjlDS17IPCb6nqS6aK7FLEFYMUILY/G0CwuDjTtd i0P3F71hlspGiKTak/ZRVCP0Ko3818qKqGwvPm1RUEnhtnka7LWE4OVt6Zmz8LkZaiop Zw+Kgj9ca4CBim1sNhQOOhE5mD6KUbpABV2ZMlrg1AFEiOZF4joioRg2+7l9OpQEX3ot yH+03tJPJH1O+j7kBKrXCyjo4RWJ0Jqlbm2U94MiiaZCE2ofnE/3xGrJ35q8g5VOsUS3 01xcr00i7x8Hm/Hj5Km0oKoPaqJkvy19m0vTj+NBLWaGR2DIR8F/+vpWVywKkCPUacN2 3Qmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EzbADeQQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b20si14183745plz.134.2021.04.12.01.45.37; Mon, 12 Apr 2021 01:45:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EzbADeQQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S237671AbhDLIo6 (ORCPT + 99 others); Mon, 12 Apr 2021 04:44:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:36296 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237654AbhDLIoS (ORCPT ); Mon, 12 Apr 2021 04:44:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4E67B611F0; Mon, 12 Apr 2021 08:43:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618217039; bh=Rvser5nBZu0n1ukwVtrV5BB+sdjYDnwU+Z945/8SkyA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EzbADeQQh7b24uGEZdxvI49AOItWmbQ/6IeYo1TIqWCvFCHYI8Xu2zJ2vDSTB7z4N A8+QsaNSVBkUeletkHYFAvkikmjhagsASWY8CXgJxbeQivfS8Lq5m8SxzLE4NmoBsA JKF8IGqxHr5gB3R5jx2Sf2FcOSdEAZUspVL9gKnc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Raed Salem , Roi Dayan , Saeed Mahameed , Sasha Levin Subject: [PATCH 4.19 48/66] net/mlx5: Fix placement of log_max_flow_counter Date: Mon, 12 Apr 2021 10:40:54 +0200 Message-Id: <20210412083959.675696108@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412083958.129944265@linuxfoundation.org> References: <20210412083958.129944265@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Raed Salem [ Upstream commit a14587dfc5ad2312dabdd42a610d80ecd0dc8bea ] The cited commit wrongly placed log_max_flow_counter field of mlx5_ifc_flow_table_prop_layout_bits, align it to the HW spec intended placement. Fixes: 16f1c5bb3ed7 ("net/mlx5: Check device capability for maximum flow counters") Signed-off-by: Raed Salem Reviewed-by: Roi Dayan Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin --- include/linux/mlx5/mlx5_ifc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index b87b1569d15b..b8cd93240287 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -357,11 +357,11 @@ struct mlx5_ifc_flow_table_prop_layout_bits { u8 reserved_at_60[0x18]; u8 log_max_ft_num[0x8]; - u8 reserved_at_80[0x18]; + u8 reserved_at_80[0x10]; + u8 log_max_flow_counter[0x8]; u8 log_max_destination[0x8]; - u8 log_max_flow_counter[0x8]; - u8 reserved_at_a8[0x10]; + u8 reserved_at_a0[0x18]; u8 log_max_flow[0x8]; u8 reserved_at_c0[0x40]; -- 2.30.2