Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp220198pxj; Tue, 18 May 2021 01:39:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyyiAEJzxJ4c3dXeqkJFMpokb41ZIjPh5ls5gUX+TXcYXjq0YR/Y8s5VCDlO3aYuqPt4VG X-Received: by 2002:a05:6638:1482:: with SMTP id j2mr4338267jak.63.1621327199027; Tue, 18 May 2021 01:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621327199; cv=none; d=google.com; s=arc-20160816; b=JZHkTLGzwudTxREKy7IQ9v6ZQI+vv6aU83Wz7zZmWBG+Rg3Uwd9Z9dD9NbINBTbjOR tyf7BL3Q4JJtBeiAxweg+McmFP9m0LdL2Ik2zTfgJlq3lQom2ewwWmrlsl1AVtNIdSNP 6+gU4CaZbQyWNIDIaMWAcGSmD+We7RpxFJ45JKNifWPh/ARSGIBe+f9M47eFsHmzWTSB OMCAYa40gH4pETfCmL4jQf9u/tHH1bJqnBqTpHJnWw8fwqi/ljeZNgbLnzQ4k9EG0d0z 5TmoXmWhMmA075gmvLCreWOX5EUCcidy0oOot0pwONCYzwNmKg2KnfcPwhcBpyk2ns4U P0YA== 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=zIDOa0Zs+HGpSN+OstDZkyHYcucAUFKFTWLqoNstm3U=; b=zghJhzMFlpOc6i3VGn++SHvUsTJ+Fq1OXNwxlggrBI4V2HNXimsWhJZCxLCM66W6TQ uuDIR1YHz3IHxOlNSy+kem4T0f9J6IVkmZTlwUOWw3p4GzSdd6RRjqnYK8M095Wxx8n5 U039tJ5ezqn8N4t/QbTZZeZpLnxZrrppcR4gCAyPlZGIJ9PUGM0rrbZCVLLvp117Stro 9rUZcMoklSdO6PWgIuZohXpVk1GXjIB+ol041jsGF5uH1xTXBG0xWe9eHI3f6pH5XnVE 0t9ZsJsT9rXljV3wLXppJTWDCak1TT9teqX0/5jjNSnxfVpqT+rRbS/sAb5FZ8MyJ+z9 Jxlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=A5RMS7UE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si21196515jat.88.2021.05.18.01.39.46; Tue, 18 May 2021 01:39:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=A5RMS7UE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S240763AbhEQPCM (ORCPT + 99 others); Mon, 17 May 2021 11:02:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:48034 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241512AbhEQOv5 (ORCPT ); Mon, 17 May 2021 10:51:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 97FCC61984; Mon, 17 May 2021 14:23:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621261419; bh=EYWBTJda0F6zMNnuHeE7/4rKHkgRRO3h1/YDuq1xrtE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A5RMS7UE6/R0VEDCT9LTkMBsuSBmdweQjnu31llYbsMeJkOQhzd2Tj38yvyJXTHvd jnLj86L51P/W7zucsfoeTqymVVfbQn1iOA0vTX9/OFGSAXNHTwmRkhdJCZuJFfB07E pETTGA/rFQb+TUrB9mGNabvn1uhjHAkCWu24TbK4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maxim Mikityanskiy , Saeed Mahameed , Tariq Toukan , Sasha Levin Subject: [PATCH 5.10 018/289] net/mlx5e: Use net_prefetchw instead of prefetchw in MPWQE TX datapath Date: Mon, 17 May 2021 15:59:03 +0200 Message-Id: <20210517140305.793992588@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxim Mikityanskiy [ Upstream commit 991b2654605b455a94dac73e14b23480e7e20991 ] Commit e20f0dbf204f ("net/mlx5e: RX, Add a prefetch command for small L1_CACHE_BYTES") switched to using net_prefetchw at all places in mlx5e. In the same time frame, commit 5af75c747e2a ("net/mlx5e: Enhanced TX MPWQE for SKBs") added one more usage of prefetchw. When these two changes were merged, this new occurrence of prefetchw wasn't replaced with net_prefetchw. This commit fixes this last occurrence of prefetchw in mlx5e_tx_mpwqe_session_start, making the same change that was done in mlx5e_xdp_mpwqe_session_start. Signed-off-by: Maxim Mikityanskiy Reviewed-by: Saeed Mahameed Reviewed-by: Tariq Toukan Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/en_tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c index 38a23d209b33..373668068071 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c @@ -486,7 +486,7 @@ static void mlx5e_tx_mpwqe_session_start(struct mlx5e_txqsq *sq, pi = mlx5e_txqsq_get_next_pi(sq, MLX5E_TX_MPW_MAX_WQEBBS); wqe = MLX5E_TX_FETCH_WQE(sq, pi); - prefetchw(wqe->data); + net_prefetchw(wqe->data); *session = (struct mlx5e_tx_mpwqe) { .wqe = wqe, -- 2.30.2