Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2143364pxb; Mon, 12 Apr 2021 15:56:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgQC3GT1CBpSYIaP4r4IMgjPuYTWkAf/h0a2A83eZOPsDw7geiLlKfvmkH88nPI9T7dFTS X-Received: by 2002:a17:90a:5217:: with SMTP id v23mr1508468pjh.161.1618268164550; Mon, 12 Apr 2021 15:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618268164; cv=none; d=google.com; s=arc-20160816; b=bb/FmXyhRnWO+v+uk5YskZqY2vhDCmxgYkXbWwM4pQ7rbXo5MWXAjD/UkTMPdgTXaI yaEiBUT0T3d9gMYI0HJm4Fs6eu4vz4RGzz7nliw0VooDNkOxP8f+qPvzNsKPkkge/hdt FvgRg2HpxkJs8CM8Gs5ZnYYKEW51U3me6FzvXE0Nhp7IfA+NWYEkm16Whckzm2srqWCo CrS/tgClTibhaEee4Re1eAkVutW02voVp3OeWcXqnP6en8rMPnv0CnRDPnBjQurJGGks RSepVK3EhnsfIQUhUz280EzAmp3/Z46OzmWqJsnM/KSX67LhTb0oeVjmi61KMtO9U9BP IAmw== 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=H20dSDP6mC3LVQiDlbjbLHZxGM+P6vmVfQ46mTMjcqs=; b=D1JWs/WkI/xLdrpUllnX/pj0UKz11d23EPmFY7P8Bk6PmTb+WLYjhkdiqirkOXQ/Kj dIhj4ghagiCsvWLqw5FuGPXNIMyEyTfdzee5PQtFA755VNsFYeo24/yMdvvwnrI9+b+F 8WWvLHHd5RUHqrvGk9489TUs/6KCAcf55oSBHN3OnaQJOU+0EbvMOMcbbYhCGN/7HMKm wOjgYuWD2gVILbzrdoJh8r+l9CDwBOEbj2oeB2tgJwwikGBFzaAn8DOmDivC1BIypNRk 290OAveIt+D0p59ywOGj9LhHrqusSAf5d22YC87WyC36xGZtz5uCrq7C89XjVeov46jU rlRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=T3XYhzZF; 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 co3si830919pjb.43.2021.04.12.15.55.52; Mon, 12 Apr 2021 15:56:04 -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=T3XYhzZF; 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 S243619AbhDLJmb (ORCPT + 99 others); Mon, 12 Apr 2021 05:42:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:36446 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240702AbhDLJKw (ORCPT ); Mon, 12 Apr 2021 05:10:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3C504613A1; Mon, 12 Apr 2021 09:06:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618218386; bh=vzfmAbjUSjumSaENsQ5SfAjPlALE9Mnb4rhh41mrwnc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T3XYhzZFXyuh1NdVz/E3lXz9a5SQp6SZJA/p/BS5rwN2PkAoZOP40aKqbdfWjhQQn UgvvqZ/l3aFYw66NPfo9a8Ko9A4lH6KTOr24fmDorItzkuoHl25TyBNzixLgCloaKf xjaTQqCSvoqczfnv8sR7Z2R77+pvdavhxKu7gSNA= 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 5.11 179/210] net/mlx5: Fix placement of log_max_flow_counter Date: Mon, 12 Apr 2021 10:41:24 +0200 Message-Id: <20210412084021.974665869@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412084016.009884719@linuxfoundation.org> References: <20210412084016.009884719@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 442c0160caab..def58d333357 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -437,11 +437,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