Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4368857imw; Tue, 19 Jul 2022 05:29:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uuUUljuKpqzp3/Er/NgF5mvrd4Ur6N7w06fAlqcF/tROAGchfKOzzWvHvEQnWgYpEFfBuE X-Received: by 2002:a05:6808:220c:b0:33a:2e51:3cd1 with SMTP id bd12-20020a056808220c00b0033a2e513cd1mr14796960oib.293.1658233751419; Tue, 19 Jul 2022 05:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658233751; cv=none; d=google.com; s=arc-20160816; b=FbRu097rlTRXvrAuYH3aYKoVQMJS2E12iKRmz3CcUHIwGFmboHjAjKu0+P/+Q6VgZj wV36FFT4Tz9ZBebhrZCowm9vd4Prx9puhRyheT3FJScL6fRuGpynMpI5VFlID/dj7vcY Ux83rodx0bDtjroVmP7+Ze0ZZtiaAkOgVu61GUgFbmKAAXub92Fgb1he4FSxETbqA4K0 hi+G+393eROTUPNTq0BuWQYE2W7++I9Kovdui5ClqlFJwqoJqMOAhfWh/4Y3tgVhjmM9 4rwTOBhqkISB2TqrnchS7yNk2Lj5WuhFVS1bT3i47D6CrF06/WJ2YYD6IIJ2MYpONA48 7y7Q== 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=U3eixf4NtKAo1F+lHiedIAj6Y6lc+ZMOVVlPX4fft70=; b=V1eGcAs+IHVTPjY9tL7gMUiWef2y9fsrQarsHrR2nuWvCVnV1jH6tw6s/zGzA3+sSv oNYWCX9fjma43tl/BtNUfI0ZlEnnZkgPgBftTn0lTDUWK3C20BOJG8mficqG5MNjUKhB tgY/evD/vjnIzhY6PBLsv8mbkGrOAbpSQdo3EHkgHVPh+eYq5HonzdBUJAf/NusAOCS/ EvZwBf6v2K907XWFbPck2WtBjWTHA3GKk0Hg12+BGvGH5YtvCYnO6Gbh4NgJhoWRrbLz POIFqkJK7d0IYa7ne7JtoMuxN8XWrHLpkm8luseppnnwrZGAKn5ItPVccwohe81+MC1M MWgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="B8A/yQlT"; 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 37-20020a9d04a8000000b0061c34fcf4c0si11860441otm.44.2022.07.19.05.28.57; Tue, 19 Jul 2022 05:29:11 -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="B8A/yQlT"; 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 S239144AbiGSMRr (ORCPT + 99 others); Tue, 19 Jul 2022 08:17:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239822AbiGSMPD (ORCPT ); Tue, 19 Jul 2022 08:15:03 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3595D53D15; Tue, 19 Jul 2022 05:05:57 -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 50B7EB81B25; Tue, 19 Jul 2022 12:05:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A501C341C6; Tue, 19 Jul 2022 12:05:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232354; bh=Z9cb4tngyFvGgubBVJ2Gc3bCPDQsca6rMaH5UdCeYb8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B8A/yQlT/xkFhYrd2hjm/3enJ4zS5DybYNUGrxl83tZXag2yC9OxHpz06hhrj+xp0 RLqn6vBXC8M3NKJZdrZR3wEbwRjuuCS72QWcnKaRN5sMWLxSVpDWyFpV8UNg1CQHUx 3+juG+UwflebrLSxuB87nzaskqKnK6LKHXKZqgWA= 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 029/112] net/mlx5e: kTLS, Fix build time constant test in TX Date: Tue, 19 Jul 2022 13:53:22 +0200 Message-Id: <20220719114628.897273314@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 6cc2714e85754a621219693ea8aa3077d6fca0cb ] Use the correct constant (TLS_DRIVER_STATE_SIZE_TX) in the comparison against the size of the private TX TLS driver context. Fixes: df8d866770f9 ("net/mlx5e: kTLS, Use kernel API to extract private offload context") 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_tx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c index b140e13fdcc8..679747db3110 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c @@ -63,8 +63,7 @@ mlx5e_set_ktls_tx_priv_ctx(struct tls_context *tls_ctx, struct mlx5e_ktls_offload_context_tx **ctx = __tls_driver_ctx(tls_ctx, TLS_OFFLOAD_CTX_DIR_TX); - BUILD_BUG_ON(sizeof(struct mlx5e_ktls_offload_context_tx *) > - TLS_OFFLOAD_CONTEXT_SIZE_TX); + BUILD_BUG_ON(sizeof(priv_tx) > TLS_DRIVER_STATE_SIZE_TX); *ctx = priv_tx; } -- 2.35.1