diff options
author | Charles McLachlan <cmclachlan@solarflare.com> | 2019-10-31 11:24:12 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-31 22:14:53 +0100 |
commit | dfe44c1f52eed6020df74e83d21d617308164a68 (patch) | |
tree | 04fdf1c0534b08b71fa3ae5d9396a2a599a776a0 /drivers/net/ethernet/sfc/efx.h | |
parent | sfc: allocate channels for XDP tx queues (diff) | |
download | linux-dfe44c1f52eed6020df74e83d21d617308164a68.tar.xz linux-dfe44c1f52eed6020df74e83d21d617308164a68.zip |
sfc: handle XDP_TX outcomes of XDP eBPF programs
Provide an ndo_xdp_xmit function that uses the XDP tx queue for this
CPU to send the packet.
Signed-off-by: Charles McLachlan <cmclachlan@solarflare.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/efx.h')
-rw-r--r-- | drivers/net/ethernet/sfc/efx.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/efx.h b/drivers/net/ethernet/sfc/efx.h index 04fed7c06618..45c7ae4114ec 100644 --- a/drivers/net/ethernet/sfc/efx.h +++ b/drivers/net/ethernet/sfc/efx.h @@ -322,4 +322,7 @@ static inline bool efx_rwsem_assert_write_locked(struct rw_semaphore *sem) return true; } +int efx_xdp_tx_buffers(struct efx_nic *efx, int n, struct xdp_frame **xdpfs, + bool flush); + #endif /* EFX_EFX_H */ |