Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp568196rdb; Thu, 2 Nov 2023 11:21:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGdjEey5h31Xs0OZDGfOYzJdYoUT123kg9/5fLitWEO8bN/XojWHMkcgApHZVtY+aeMiaNY X-Received: by 2002:a17:90a:d994:b0:27d:669e:5a10 with SMTP id d20-20020a17090ad99400b0027d669e5a10mr15876542pjv.13.1698949286388; Thu, 02 Nov 2023 11:21:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698949286; cv=none; d=google.com; s=arc-20160816; b=TLLISi8jjUodT766PmMkdj0FlP7YC2NuTABTfZGhdLsZEhN6ZjuW6DS9p/8eqrr/4R n/GnuDf403RID4LcVTSVY9p5XKofER6/Gq7oIZOyiwJsPxZ0i7niihYujCP90Sbak4Sc YIARn6TERbDsie9v3Yuzd1RGFQmMvccE8P2kwn4CKnP/Kp6yO2ExIcauIRDb0TKHW3Di 9WA2KGSrRaFoDQeQeOO6I+hhB5Nls+BFRNe9+qtllq6FDyc7nZIP46+jvz61wPEdri1y UjkD/XaS1oTxLFAaau9FEny5GeWEJtSY5STdwcRGRElCVutggFIwRn6HkYPRJigslwH1 23kQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Gig07QzypHDKUAtN3VIP4ZEKDMeYMFZcSK33uxUhTYI=; fh=Bl7RAzpd5A8mZRAwkjA1yXhnI8alZd1urg4iBcTH6wg=; b=ZI78Qr0B4GU31wZ4G5t7scvWk5Jgm7GNoOWncZv4I4DsAwVO2Jo9K4PbsaEnEGbcy+ Eo2CRq/6oydtF9s37CtpJViysyQiLi6xVm/4R7TIn6VBlaugzBHzQFPUnfuBH8IHTNxG wb+BtUFCHNkq+Mok2rVh3axk3ROi8UzYyVoBTpd+FMPW8ThKpehLOGaUXT9Mkf1AApDW Dw8j+MTaIImUwAeR4eofoSm5+AMtcUejV5OR9dJTinaB/aJQfQnh1ZNHF+9+Ph553zvX tivMAhw+P7Q+3ZmS5b4a4eeKe6a8klEA8rByHRcDobAxF7YD2PACwOvEGZCJPdjIOFyz kCdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=bTsAZnQR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fiberby.net Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id e11-20020a17090ab38b00b0027ffcd44adasi117956pjr.133.2023.11.02.11.21.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 11:21:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=bTsAZnQR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fiberby.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 983A282C121E; Thu, 2 Nov 2023 11:21:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229703AbjKBSVU (ORCPT + 99 others); Thu, 2 Nov 2023 14:21:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbjKBSVS (ORCPT ); Thu, 2 Nov 2023 14:21:18 -0400 X-Greylist: delayed 357 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 02 Nov 2023 11:21:09 PDT Received: from mail1.fiberby.net (mail1.fiberby.net [193.104.135.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93CB2FB; Thu, 2 Nov 2023 11:21:09 -0700 (PDT) Received: from x201s (193-104-135-243.ip4.fiberby.net [193.104.135.243]) by mail1.fiberby.net (Postfix) with ESMTPSA id A8555600D4; Thu, 2 Nov 2023 18:14:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fiberby.net; s=202008; t=1698948911; bh=AcXaQ5Mec4Qx9/dmv68cZ2ZdUnNa3zc4PD95GHCF8M8=; h=From:To:Cc:Subject:Date:From; b=bTsAZnQRIEq47akNHVGYep1cZF6YUUu9CXHWGPZajC8zTxTqTXi+ydmUMRrfvyAnd pWcS9jRDBeGKNmtA+UIj0nfa7OMap2TeYeozQwdEVKg0FGsCccNb3XNHTdfPhQnga9 o9B+ozjUrYFQCNYeEYGk5E8LYymfYg98rWFH9NzhzLb1ZrB7fwtaxqrWXwuhWutE+E zmyV0E9JpL/nS2hN/GTaW21g1qPPoMil5RSV0JDOtOcf3XR2kJ5IxZXgFRAaNfkF1z 4OTNwHRVMCrkYlSjz+WLH5tEOf81aaaTmtj6/TzdPodYpzlMRMgUjr8FR4Hfn3Gm1K xxS71QOAaUnfg== Received: by x201s (Postfix, from userid 1000) id 9B272203FD8; Thu, 2 Nov 2023 18:14:36 +0000 (UTC) From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= To: Saeed Mahameed , Leon Romanovsky Cc: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= , Yevgeny Kliteynik , Muhammad Sammar , Alex Vesker , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net/mlx5: Fix reserved at offset in mlx5_ifc_fte_match_set_lyr_2_4_bits Date: Thu, 2 Nov 2023 18:14:35 +0000 Message-ID: <20231102181436.3458623-1-ast@fiberby.net> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 02 Nov 2023 11:21:22 -0700 (PDT) A member of struct mlx5_ifc_fte_match_set_lyr_2_4_bits has been mistakenly assigned the wrong reserved_at offset value. Correct it to align to the right value, thus avoid future miscalculation. Fixes: 5c422bfad2fb ("net/mlx5: DR, Add support for matching on Internet Header Length (IHL)") Signed-off-by: Asbjørn Sloth Tønnesen --- include/linux/mlx5/mlx5_ifc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index 4df6d1c12437..09c50e786ff4 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -552,7 +552,7 @@ struct mlx5_ifc_fte_match_set_lyr_2_4_bits { u8 reserved_at_c0[0x10]; u8 ipv4_ihl[0x4]; - u8 reserved_at_c4[0x4]; + u8 reserved_at_d4[0x4]; u8 ttl_hoplimit[0x8]; -- 2.42.0