]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
bnxt_en: Add bp->rx_dir field for rx buffer DMA direction.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 6 Feb 2017 21:55:34 +0000 (16:55 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Feb 2017 18:30:58 +0000 (13:30 -0500)
commit745fc05c9db1f17da076861c7f57507e13f28a3a
tree08c600ebfd4e16ead77382bc606bf631d349ee4f
parent11cd119d31a71b37c2362fc621f225e2aa12aea1
bnxt_en: Add bp->rx_dir field for rx buffer DMA direction.

When driver is running in XDP mode, rx buffers are DMA mapped as
DMA_BIDIRECTIONAL.  Add a field so the code will map/unmap rx buffers
according to this field.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h