Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1951694ybl; Sun, 19 Jan 2020 15:19:21 -0800 (PST) X-Google-Smtp-Source: APXvYqypUK0KTTGTdSNyw/p/w3KfGndoEytPd/Q1Jc83gCF2/vsQrBVwsGnA+37smEsa61jJkAc8 X-Received: by 2002:a9d:4e97:: with SMTP id v23mr13222992otk.201.1579475961384; Sun, 19 Jan 2020 15:19:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579475961; cv=none; d=google.com; s=arc-20160816; b=uLLc2hVGvXkDAoqHP1XTJVdxeOBaeqW6waAy/IW8EwgUJX0sohwLXHnsunNSKU50/+ ud3LpAsTyKkZ8rpvsWO/BWOQdc02mWianfeeZe13kXluxySjFOHclLsE+q4iE9Vns8Tj 6naFvTE29o7rzqtZy1qqwGAfYRIanXTvtRtGzhPuyBdvOZvX4+O5dqTCx1ue9hg9ObG1 6k+lQOVveOTyo0sSW34VUUelu+StEhOdyJL1ouVPIiyIMf3eqvaBnvsQgaWVQtfZqNqP WaQgpP7g0oGlP4+4ePbWDMRM1dla6mS1Tx2TqTvLpPogF9Iv+olhI0FrONM0gsc5m/f2 3aBQ== 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=Xv05kxNr11bKWMJDo/zz/xTp/4LOqtYDYN3xlacAhVA=; b=gSqRy3KTwAHpAw+sTDPNjMl7a2zMpfrZ6qygPJp3afPHirMZTR713vRkGzBNslE/Ra OAkShG9Fm5PV6io+tWxmewDOttcSBEZvUIqZ67HXHyua5VeUeQilepw6dOhc2BU5mzhz Kav+IcsP9E2oXmF3+cT7pWDO/tbnzamoCiMVu8VtnQ17eM444zuI/IILqs6/zNWm75jN +/ZlZEUGfLpJClRUOpa3HQt3SNrty5I7qhNJAtaeKf96ZBcrxF6G/NfcgVRR6/ZRM5fY Gv76kZY4FXuS+5lojmuoemZsEuyzHsgcv9SIeYys8pHy+ksaDbNJ8QllVetfDz1wrK+k TlOw== 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 i20si18526527otk.270.2020.01.19.15.19.09; Sun, 19 Jan 2020 15:19:21 -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 S1729106AbgASXRw (ORCPT + 99 others); Sun, 19 Jan 2020 18:17:52 -0500 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:49804 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728977AbgASXQc (ORCPT ); Sun, 19 Jan 2020 18:16:32 -0500 Received: by kvm5.telegraphics.com.au (Postfix, from userid 502) id 386DA2997C; Sun, 19 Jan 2020 18:16:31 -0500 (EST) To: "David S. Miller" Cc: Thomas Bogendoerfer , Chris Zankel , Laurent Vivier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: <103d68d7a0c87877fd9c60d61cba37789935c45e.1579474569.git.fthain@telegraphics.com.au> In-Reply-To: References: From: Finn Thain Subject: [PATCH net 09/19] net/sonic: Remove explicit memory barriers Date: Mon, 20 Jan 2020 09:56:09 +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 local irq save/restore pairs 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 2cde692a0602..6322b4543e0b 100644 --- a/drivers/net/ethernet/natsemi/sonic.c +++ b/drivers/net/ethernet/natsemi/sonic.c @@ -287,12 +287,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