From patchwork Mon Oct 24 16:59:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 13017942 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2847DECAAA1 for ; Mon, 24 Oct 2022 18:22:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231336AbiJXSWP (ORCPT ); Mon, 24 Oct 2022 14:22:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231302AbiJXSVr (ORCPT ); Mon, 24 Oct 2022 14:21:47 -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 54374297F31 for ; Mon, 24 Oct 2022 10:02:43 -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 1F18C614DE for ; Mon, 24 Oct 2022 17:00:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1F43C433C1; Mon, 24 Oct 2022 17:00:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666630830; bh=KYKuArPRPezhrsnq3FKdgkwpe2SLnUERWpSClufnIX4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OWjz/xrj5J6cw1BqMOz3LlsaGgozLTq24Qzbg1xLZaV2Qs3xn4qToMUjFLOrbstM+ GTWhkUj/cq5e02andcdVwe+hqpb9wsdiUI3rSjr+xM5e8YO067zsQtE4xmR05j0bLK dTOATQbgDxbkFEVqf9PpEd9HEqwbMaE7qZ/v1rDYim49p/tkeQ3rVGR7Ir0a4T6v+z l9SQCtnqxGcIDa4MbsyGSIrA/G/NOrxs/HuX+ZoF3TgtozfCSXEuVYJ1YvHF6A7/kA AyIBOfMZ+7fLVsoRKUOc2Qt+mXllIOqmyZ7AbNCi4dO3sYckvlQ9fscToPk09OWhgH /zg7UJTg8UOGQ== From: Leon Romanovsky To: "David S . Miller" , Jakub Kicinski Cc: Leon Romanovsky , Eric Dumazet , netdev@vger.kernel.org, Paolo Abeni , Saeed Mahameed Subject: [PATCH net-next v1 4/6] net/mlx5e: Delete always true DMA check Date: Mon, 24 Oct 2022 19:59:57 +0300 Message-Id: <273db342a271c5b658af0684d9de6e67c7f89dc2.1666630548.git.leonro@nvidia.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Leon Romanovsky DMA address always exists for MACsec ASO object. Signed-off-by: Leon Romanovsky --- .../net/ethernet/mellanox/mlx5/core/en_accel/macsec.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c index 4831a3e9556c..f1e77ebd8630 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c @@ -1304,11 +1304,10 @@ static void macsec_aso_build_wqe_ctrl_seg(struct mlx5e_macsec_aso *macsec_aso, struct mlx5_aso_ctrl_param *param) { memset(aso_ctrl, 0, sizeof(*aso_ctrl)); - if (macsec_aso->umr->dma_addr) { - aso_ctrl->va_l = cpu_to_be32(macsec_aso->umr->dma_addr | ASO_CTRL_READ_EN); - aso_ctrl->va_h = cpu_to_be32((u64)macsec_aso->umr->dma_addr >> 32); - aso_ctrl->l_key = cpu_to_be32(macsec_aso->umr->mkey); - } + aso_ctrl->va_l = + cpu_to_be32(macsec_aso->umr->dma_addr | ASO_CTRL_READ_EN); + aso_ctrl->va_h = cpu_to_be32((u64)macsec_aso->umr->dma_addr >> 32); + aso_ctrl->l_key = cpu_to_be32(macsec_aso->umr->mkey); if (!param) return;