Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4452211imw; Tue, 19 Jul 2022 06:56:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vhzos8r1Ng87I/lVbLyPk+e5nGVYDtQgF/f8Ubs/PKBW+KcpDu3NLAgcs1dXwwQpplUihY X-Received: by 2002:a17:907:6287:b0:6e1:6ac:c769 with SMTP id nd7-20020a170907628700b006e106acc769mr31472131ejc.388.1658238960235; Tue, 19 Jul 2022 06:56:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658238960; cv=none; d=google.com; s=arc-20160816; b=IXFKXio8vOgmSEJFIa3yhQ0fj1/txytyzo1GfaEnvTU+r0cZ9+xccJavqUdxkB6UEE pAvZV2zrf7sIoe4Owavtnghs/vPSkTVJnQkguvDt0R1QBufwGquKQ65IRBs+N5pjLQ4V U1T2XPc3j8Zb65ZeckxoZNIS1mXrbzKDLe20vLfhIY2X69vTAs86B9cP+z4Dp+6K5iFe uWb8yNe/4w4Dw9iOX/URNLAqCxcrLXpaUUS4PT9tVtUglWliyU9aMXhAXsEOKeO5LiOD mn4XeCF8cl2LkNCQlgssB1Ovd9Mwi4v4gJS3/4yUOYpfT4rirjCgDNXAPi4VeyJSupul 16cA== 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=NTeJpiYPZPujf9hTh5vR1qTLe96Ut0ySaeEszqcHJfI=; b=CjBXg8M/KKuoWJiCxyLGC8u+vPXQsSgzngWorsMVzO9SNp6Mj91h/rQSkwcNa8+6dE 2r2Za3sVvfP6oUkZbKVPO8h3uKabAlg3hvqIrG6KuL5O0XMPTDBLLOGMJ2j61kn0pD5w B1SmupGlEwKBzHxuJ0smC90PyZBs4anNTkGEvNydlbB9NU0WxywG8rrEdkgJfqTyAxUk 5sorCkjj/hz9ygUtEEP3M8riThWO72e/CKO6U1vzMFlRZ77oHM0imsCamKaHrWd/ZTVm vUtKq85FDC2F5kOj3Vb6I1EkVJxblr6BXEyD1y2omPDv/HjBiY6owHYgqLwOeVgyABLZ 2lTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=S7byWGyD; 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 ji3-20020a170907980300b0072a92eb16b7si21405478ejc.5.2022.07.19.06.55.35; Tue, 19 Jul 2022 06:56:00 -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=S7byWGyD; 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 S240365AbiGSMbs (ORCPT + 99 others); Tue, 19 Jul 2022 08:31:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239909AbiGSMaJ (ORCPT ); Tue, 19 Jul 2022 08:30:09 -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 06DCF6C125; Tue, 19 Jul 2022 05:11:44 -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 4D92C615F4; Tue, 19 Jul 2022 12:11:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 343F4C341C6; Tue, 19 Jul 2022 12:11:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232702; bh=pSo7nHyz2Rcd4Tctm5UEPmaFOxR38Pcp/wDMG3bR+dI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S7byWGyDl8u6yXT5mRLWHY/9BWy5fiQhWaG89q2G7nod9MU9yeV5gE6lEAhVZhe9g xWxKpIv8l4qbLgGOmwlYNc04z1GU8E7gYPkXi+4cvpprGeRv2i39432ysaIhVPVNMn Zwva8MfkIpyju7i8x1cO9S2sIh1Nd9lHnmfVe19o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tariq Toukan , Maxim Mikityanskiy , Saeed Mahameed , Sasha Levin Subject: [PATCH 5.15 036/167] net/mlx5e: kTLS, Fix build time constant test in RX Date: Tue, 19 Jul 2022 13:52:48 +0200 Message-Id: <20220719114700.201844031@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114656.750574879@linuxfoundation.org> References: <20220719114656.750574879@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=-7.8 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 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: Tariq Toukan [ Upstream commit 2ec6cf9b742a5c18982861322fa5de6510f8f57e ] Use the correct constant (TLS_DRIVER_STATE_SIZE_RX) in the comparison against the size of the private RX TLS driver context. Fixes: 1182f3659357 ("net/mlx5e: kTLS, Add kTLS RX HW offload support") Signed-off-by: Tariq Toukan Reviewed-by: Maxim Mikityanskiy Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c index 15711814d2d2..d92b97c56f4c 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c @@ -231,8 +231,7 @@ mlx5e_set_ktls_rx_priv_ctx(struct tls_context *tls_ctx, struct mlx5e_ktls_offload_context_rx **ctx = __tls_driver_ctx(tls_ctx, TLS_OFFLOAD_CTX_DIR_RX); - BUILD_BUG_ON(sizeof(struct mlx5e_ktls_offload_context_rx *) > - TLS_OFFLOAD_CONTEXT_SIZE_RX); + BUILD_BUG_ON(sizeof(priv_rx) > TLS_DRIVER_STATE_SIZE_RX); *ctx = priv_rx; } -- 2.35.1