From patchwork Sun Oct 23 17:22:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 13016362 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 A613AC3A59D for ; Sun, 23 Oct 2022 17:23:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230387AbiJWRXY (ORCPT ); Sun, 23 Oct 2022 13:23:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230409AbiJWRXU (ORCPT ); Sun, 23 Oct 2022 13:23:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F244376446 for ; Sun, 23 Oct 2022 10:23:17 -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 8D6AD60F1F for ; Sun, 23 Oct 2022 17:23:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 228A2C433C1; Sun, 23 Oct 2022 17:23:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666545797; bh=KYKuArPRPezhrsnq3FKdgkwpe2SLnUERWpSClufnIX4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fFk7SJ3YDzcy5B1f7S7BjdHv3oh36IumZ//KxFcwQIv/cN9xASTwT3n3bVJI16dNz X4qf0UKrTI7vFdN02Y7Pd1qN5J+ZHz4NhMCO8l2HRHz3rUBcfsXF4SPH+DX2nrNGVS DuZzGJyy/QtKlx2BvfIPaKuIu8b+L8yA7GwGcqYwtI7nwD62h8wRfquJDUypT4jkB2 Lzh1wlzOehd+7ZatSympfTwd4eaAHzBYXviLC0xdYjYdhW3Tb24ul78FEan1KyeSm+ /sX+H/U6p4rtCpnPw4AutOy39ZnPzW3NOpbNU6TflIx8im79dpwrCfqO5pHQkCLep7 zpUe9vGcuFHBA== 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 4/6] net/mlx5e: Delete always true DMA check Date: Sun, 23 Oct 2022 20:22:56 +0300 Message-Id: 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;