Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4450930imw; Tue, 19 Jul 2022 06:54:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tFUcY31jmrPRaGhq8fb5y9S/rGMpKCgRlBIgZp9bg0NbqA3gc3VSEslmra7EUsh1ZzcJ45 X-Received: by 2002:a17:907:ea1:b0:72f:4443:d322 with SMTP id ho33-20020a1709070ea100b0072f4443d322mr6519828ejc.240.1658238870576; Tue, 19 Jul 2022 06:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658238870; cv=none; d=google.com; s=arc-20160816; b=PNJFU53Tw3/N7gdYUCm8m470+UPeih/5ZQl/GBAG4vLRXHagpLdXn+Bz+ebcCMfeTg B5bitSbXTcIn1tegENN9N/dkfyBn63UqBi+QEv9qDBkTIFjP3SSTqMcEO9Viv0zINoba HHKMeeykjoQzJJ+kT6Ok8aVO27LKbq3Iwzt01t8g41JBVWlr+NBWPnSzuNfLRZ4N05rn N8ddJE8wTmtFljcU4ICvHL5pXGoF3alZoxFou6YRDbtjT0Bx4qWRkmoa5vRECRfSMnB7 jovKiDrEQdvbrtncfmNYUeOy0W7oXLQ5Ih6mD4APv5e/XIIQAsglov+qArxrZ5RYjOEC x1kA== 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=IfascSV5JTvXPbgs+7mzKFd41xyK2KtXCJ0mf1JpMdk=; b=NW+4sITf4uKXzQRc/yqAi7KCH9uGVQGPIbcQrvy3FItxYHv/BTjB1tgP5nBJO5Slbc gUsb6VY7klVgQUYdqp84fxKKjaEqpjlsoaDWpRSp0J2TmAHRoKOFrtsPTi8FaQMk3ajx vkkAYp/BONPij+SjFmr+dKOalq/fzR9Mh032z/v05rlQO9sK5rU2KzD2pmllTTIwnJWC t9EzgDby/eBWW64SjU5YbFQMS2CX0IBd1ydjR+YUyqRLXOAqzsXLOQFmwSbo6PdnxAzC zzPXScJWz8cBA0yqn42uM0F435uYu2hjr8J1I2o8HBxyGuIXtTAL6q6OUBEgbBmwZV6q 0nkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QRHvis1F; 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 dr15-20020a170907720f00b0072b9be1e354si2579168ejc.18.2022.07.19.06.54.05; Tue, 19 Jul 2022 06:54:30 -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=QRHvis1F; 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 S239379AbiGSMSF (ORCPT + 99 others); Tue, 19 Jul 2022 08:18:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239309AbiGSMP4 (ORCPT ); Tue, 19 Jul 2022 08:15:56 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 095D4558C2; Tue, 19 Jul 2022 05:06:24 -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 4B57FB81B80; Tue, 19 Jul 2022 12:05:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FA26C341C6; Tue, 19 Jul 2022 12:05:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232357; bh=4BGgvf0elQlm8XTPPVSLj6O5ZGvMOp8kb5Fdb7ThyY8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QRHvis1FYc6NaFfmlck51L6EehWaGKDnv1Nvqgxl1SA9uATFs4kwOk2dROhFmaqVU ljLB7F2aOBd3Ha7NsO0tvQ5X8jGn3gDxuGmdio6S8DvE4zm13iu8oD8x7Gl83yMY/7 yAAOy4vXn4a8tfYjZMQjcGCdCrDgfLbDM3y/4KZ4= 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.10 030/112] net/mlx5e: kTLS, Fix build time constant test in RX Date: Tue, 19 Jul 2022 13:53:23 +0200 Message-Id: <20220719114629.006846932@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114626.156073229@linuxfoundation.org> References: <20220719114626.156073229@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 d06532d0baa4..634777fd7db9 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