diff options
author | Alexander Duyck <alexander.h.duyck@redhat.com> | 2015-04-08 21:49:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-09 14:25:25 -0400 |
commit | 019be1cff44bdfed23163be7469419be4f38589b (patch) | |
tree | b3bd8de7a7ee2e34c1055790d41c4c284d3b1935 /drivers/net/ethernet/chelsio/cxgb4vf/sge.c | |
parent | f13b1689d753f333459878ac27cb12d414502a09 (diff) |
cxgb3/4/4vf: Update drivers to use dma_rmb/wmb where appropriate
Update the Chelsio Ethernet drivers to use the dma_rmb/wmb calls instead of
the full barriers in order to improve performance.
Cc: Santosh Raspatur <santosh@chelsio.com>
Cc: Hariprasad S <hariprasad@chelsio.com>
Cc: Casey Leedom <leedom@chelsio.com>
Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4vf/sge.c')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4vf/sge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/sge.c b/drivers/net/ethernet/chelsio/cxgb4vf/sge.c index 7715982230e5..482f6de6817d 100644 --- a/drivers/net/ethernet/chelsio/cxgb4vf/sge.c +++ b/drivers/net/ethernet/chelsio/cxgb4vf/sge.c | |||
@@ -1751,7 +1751,7 @@ static int process_responses(struct sge_rspq *rspq, int budget) | |||
1751 | * Figure out what kind of response we've received from the | 1751 | * Figure out what kind of response we've received from the |
1752 | * SGE. | 1752 | * SGE. |
1753 | */ | 1753 | */ |
1754 | rmb(); | 1754 | dma_rmb(); |
1755 | rsp_type = RSPD_TYPE(rc->type_gen); | 1755 | rsp_type = RSPD_TYPE(rc->type_gen); |
1756 | if (likely(rsp_type == RSP_TYPE_FLBUF)) { | 1756 | if (likely(rsp_type == RSP_TYPE_FLBUF)) { |
1757 | struct page_frag *fp; | 1757 | struct page_frag *fp; |
@@ -1935,7 +1935,7 @@ static unsigned int process_intrq(struct adapter *adapter) | |||
1935 | * error and go on to the next response message. This should | 1935 | * error and go on to the next response message. This should |
1936 | * never happen ... | 1936 | * never happen ... |
1937 | */ | 1937 | */ |
1938 | rmb(); | 1938 | dma_rmb(); |
1939 | if (unlikely(RSPD_TYPE(rc->type_gen) != RSP_TYPE_INTR)) { | 1939 | if (unlikely(RSPD_TYPE(rc->type_gen) != RSP_TYPE_INTR)) { |
1940 | dev_err(adapter->pdev_dev, | 1940 | dev_err(adapter->pdev_dev, |
1941 | "Unexpected INTRQ response type %d\n", | 1941 | "Unexpected INTRQ response type %d\n", |