]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bnxt: add dma mapping attributes
authorShannon Nelson <shannon.nelson@oracle.com>
Tue, 4 Apr 2017 18:41:35 +0000 (11:41 -0700)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Tue, 11 Jul 2017 00:04:09 +0000 (17:04 -0700)
On the SPARC platform we need to use the DMA_ATTR_WEAK_ORDERING
attribute in our dma mapping in order to get the expected performance
out of the receive path.  Setting this boosts a simple iperf receive
session from 2 Gbe to 23.4 Gbe.

Orabug: 26366387

Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
Reviewed-by: Tushar Dave <tushar.n.dave@oracle.com>
Reviewed-by: Tom Saeger <tom.saeger@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Conflicts:
drivers/net/ethernet/broadcom/bnxt/bnxt.c
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c

index 611415daf683b24e5c61392eee65e42a8909280f..a9ccbebe8128c666cb3baf55cff0a81acd38037b 100644 (file)
@@ -2016,6 +2016,10 @@ static void bnxt_free_rx_skbs(struct bnxt *bp)
                        if (!data)
                                continue;
 
+                       dma_unmap_single_attrs(&pdev->dev, rx_buf->mapping,
+                                              bp->rx_buf_use_size, bp->rx_dir,
+                                              &attrs);
+
                        rx_buf->data = NULL;
 
                        if (BNXT_RX_PAGE_MODE(bp)) {