Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3182422ybv; Sat, 15 Feb 2020 13:19:24 -0800 (PST) X-Google-Smtp-Source: APXvYqx6vrhnF/bnQQnN87eo4dkT6Uhhnd7RhPUwozsfmQEPALCzQ5QT2cA/USyx012WJ/o8ue6F X-Received: by 2002:a9d:7e99:: with SMTP id m25mr6975724otp.212.1581801564352; Sat, 15 Feb 2020 13:19:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581801564; cv=none; d=google.com; s=arc-20160816; b=ovXmKlP4cOdMyIwpUb+xXC+EgQlPWbODqDCHLyhbTXYA50hDYFQw2YWxksdqF6hq68 UhScgaeZZMqZd59BXnVFtp/Iak1TwcJnEsbil7v7NxYBqwaL++ljo5IOIy5m/0gAV1Yc 5JZR5Dwcn6ta2rfNsNcukioPs34e3ersgmSKn8DbiW7vu1qkUqdgJqPj3hyCcm+E514B rVlxRkQQYU8njgo4eJQaSkaev1U3pvOa9cpATAFy7dJVrg+kssU/54z9S8/X+TuO48vs Nrpngvk+gHSBHHWtVT1QZ24uWKMGSt7eXkbboKzNTbJx1DQ/zf/6UJfLUpq0vOumnLp+ fJkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:from:references:in-reply-to :message-id:cc:to; bh=WwxK+uo7uS7pu1RCj5gkeDqvc8ql56qkn8GCeaPEmss=; b=HvzQjmHsTMfRjiO/X4Xqpqa4qeGQ96vjYpdHXSpvpZSNU+hBu/iyJ3yAE6pavD/q8k WtcLoGoyjU3bJNpHHVm7LX/HA867kKEP2O1vkjyJcswSo85esf6kxTtm/s0pAZE4vT5t bunG9aU9dnIGacH8LlBSNEVkKvrZChVDFikau8OxC0agql1kcaREnpmVFGyOQpfkOYst vhwQAHknPbKkYud16mCYRg2eb7zokcAn6Rlq593RWSA35imsnWtjIkY3ku8aCczKrwnn YwYl75Tvz10jD+DtOXpIAun0SLtu0tXIMBX4RqBb1TaNtDoxzwTTZpZtn9VS2ADqs5FS v2IQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s22si5240514otq.100.2020.02.15.13.19.12; Sat, 15 Feb 2020 13:19:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727915AbgBOVSF (ORCPT + 99 others); Sat, 15 Feb 2020 16:18:05 -0500 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:34952 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727696AbgBOVSD (ORCPT ); Sat, 15 Feb 2020 16:18:03 -0500 Received: by kvm5.telegraphics.com.au (Postfix, from userid 502) id E233E29B30; Sat, 15 Feb 2020 16:18:01 -0500 (EST) To: "David S. Miller" Cc: Thomas Bogendoerfer , Chris Zankel , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: <0124da144de7ddce8d1fe6d4fd72a17c343a5f04.1581800613.git.fthain@telegraphics.com.au> In-Reply-To: References: From: Finn Thain Subject: [PATCH net-next 5/7] net/sonic: Remove explicit memory barriers Date: Sun, 16 Feb 2020 08:03:32 +1100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The explicit memory barriers are redundant now that proper locking and MMIO accessors have been employed. Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/net/ethernet/natsemi/sonic.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/natsemi/sonic.c b/drivers/net/ethernet/natsemi/sonic.c index 1d6de6706875..508c6a80fc6e 100644 --- a/drivers/net/ethernet/natsemi/sonic.c +++ b/drivers/net/ethernet/natsemi/sonic.c @@ -311,12 +311,10 @@ static int sonic_send_packet(struct sk_buff *skb, struct net_device *dev) sonic_tda_put(dev, entry, SONIC_TD_LINK, sonic_tda_get(dev, entry, SONIC_TD_LINK) | SONIC_EOL); - wmb(); lp->tx_len[entry] = length; lp->tx_laddr[entry] = laddr; lp->tx_skb[entry] = skb; - wmb(); sonic_tda_put(dev, lp->eol_tx, SONIC_TD_LINK, sonic_tda_get(dev, lp->eol_tx, SONIC_TD_LINK) & ~SONIC_EOL); lp->eol_tx = entry; -- 2.24.1