]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: correct DMA direction in XDP DMA sync
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 2 Mar 2017 23:26:21 +0000 (15:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Mar 2017 17:46:53 +0000 (09:46 -0800)
commitdc049d37ed9c21a686f0e3f0baf1367261cc509f
tree3fbcb45a062c129eca16849fb8c396401fd25cbf
parent04b959366034631498b6646be7dd521dfbe83cae
nfp: correct DMA direction in XDP DMA sync

dma_sync_single_for_*() takes the direction in which the buffer
was mapped, not the direction of the sync.  We should sync XDP
buffers bidirectionally.

Fixes: 799811507b23 ("nfp: add XDP support in the driver")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c