summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2017-02-07 00:55:43 +0300
committerDavid S. Miller <davem@davemloft.net>2017-02-07 21:31:00 +0300
commit38413406277fd060f46855ad527f6f8d4cf2652d (patch)
treea948e2a2552b8cb3b44643243d1dcd79d3b6b2a4 /drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h
parentc6d30e8391b85e00eb544e6cf047ee0160ee9938 (diff)
downloadlinux-38413406277fd060f46855ad527f6f8d4cf2652d.tar.xz
bnxt_en: Add support for XDP_TX action.
Add dedicated transmit function and transmit completion handler for XDP. The XDP transmit logic and completion logic are different than regular TX ring. The TX buffer is recycled back to the RX ring when it completes. v3: Improved the buffer recyling scheme for XDP_TX. v2: Add trace_xdp_exception(). Add dma_sync. Signed-off-by: Michael Chan <michael.chan@broadcom.com> Tested-by: Andy Gospodarek <gospo@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h')
-rw-r--r--drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h b/drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h
index 0bb7b7d97ec3..b529f2c5355b 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h
@@ -10,6 +10,7 @@
#ifndef BNXT_XDP_H
#define BNXT_XDP_H
+void bnxt_tx_int_xdp(struct bnxt *bp, struct bnxt_napi *bnapi, int nr_pkts);
bool bnxt_rx_xdp(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons,
struct page *page, u8 **data_ptr, unsigned int *len,
u8 *event);