diff options
author | Sony Chacko <sony.chacko@qlogic.com> | 2016-06-29 17:51:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-01 04:59:49 -0400 |
commit | 9216a97a12b069c62f0e927a9f54be4883648a0f (patch) | |
tree | 1ade7b47738061328184079a3a2ec920a0151b33 /drivers | |
parent | 43daa96b166c3cf5ff30dfac0c5efa2620e4beab (diff) | |
download | op-kernel-dev-9216a97a12b069c62f0e927a9f54be4883648a0f.zip op-kernel-dev-9216a97a12b069c62f0e927a9f54be4883648a0f.tar.gz |
qlcnic: add wmb() call in transmit data path.
Call wmb() to ensure writes are complete before
hardware fetches updated Tx descriptors.
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c index 607bb7d..87c642d 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c @@ -772,6 +772,8 @@ netdev_tx_t qlcnic_xmit_frame(struct sk_buff *skb, struct net_device *netdev) tx_ring->tx_stats.tx_bytes += skb->len; tx_ring->tx_stats.xmit_called++; + /* Ensure writes are complete before HW fetches Tx descriptors */ + wmb(); qlcnic_update_cmd_producer(tx_ring); return NETDEV_TX_OK; |