#include "ena_xdp.h"
static int validate_xdp_req_id(struct ena_ring *tx_ring, u16 req_id)
{ … }
static int ena_xdp_tx_map_frame(struct ena_ring *tx_ring,
struct ena_tx_buffer *tx_info,
struct xdp_frame *xdpf,
struct ena_com_tx_ctx *ena_tx_ctx)
{ … }
int ena_xdp_xmit_frame(struct ena_ring *tx_ring,
struct ena_adapter *adapter,
struct xdp_frame *xdpf,
int flags)
{ … }
int ena_xdp_xmit(struct net_device *dev, int n,
struct xdp_frame **frames, u32 flags)
{ … }
static void ena_init_all_xdp_queues(struct ena_adapter *adapter)
{ … }
int ena_setup_and_create_all_xdp_queues(struct ena_adapter *adapter)
{ … }
int ena_xdp_register_rxq_info(struct ena_ring *rx_ring)
{ … }
void ena_xdp_unregister_rxq_info(struct ena_ring *rx_ring)
{ … }
void ena_xdp_exchange_program_rx_in_range(struct ena_adapter *adapter,
struct bpf_prog *prog,
int first, int count)
{ … }
static void ena_xdp_exchange_program(struct ena_adapter *adapter,
struct bpf_prog *prog)
{ … }
static int ena_destroy_and_free_all_xdp_queues(struct ena_adapter *adapter)
{ … }
static int ena_xdp_set(struct net_device *netdev, struct netdev_bpf *bpf)
{ … }
int ena_xdp(struct net_device *netdev, struct netdev_bpf *bpf)
{ … }
static int ena_clean_xdp_irq(struct ena_ring *tx_ring, u32 budget)
{ … }
int ena_xdp_io_poll(struct napi_struct *napi, int budget)
{ … }