File Index
Files and directories
Sign in
FILE

xsk.h

File preview with syntax highlighting.

linux-6.19.14/drivers/net/ethernet/intel/idpf/xsk.h C
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/* Copyright (C) 2025 Intel Corporation */
 3
 4#ifndef _IDPF_XSK_H_
 5#define _IDPF_XSK_H_
 6
 7#include <linux/types.h>
 8
 9enum virtchnl2_queue_type;
10struct idpf_buf_queue;
11struct idpf_q_vector;
12struct idpf_rx_queue;
13struct idpf_tx_queue;
14struct idpf_vport;
15struct net_device;
16struct netdev_bpf;
17
18void idpf_xsk_setup_queue(const struct idpf_vport *vport, void *q,
19			  enum virtchnl2_queue_type type);
20void idpf_xsk_clear_queue(void *q, enum virtchnl2_queue_type type);
21void idpf_xsk_init_wakeup(struct idpf_q_vector *qv);
22
23int idpf_xskfq_init(struct idpf_buf_queue *bufq);
24void idpf_xskfq_rel(struct idpf_buf_queue *bufq);
25void idpf_xsksq_clean(struct idpf_tx_queue *xdpq);
26
27int idpf_xskrq_poll(struct idpf_rx_queue *rxq, u32 budget);
28bool idpf_xsk_xmit(struct idpf_tx_queue *xsksq);
29
30int idpf_xsk_pool_setup(struct idpf_vport *vport, struct netdev_bpf *xdp);
31int idpf_xsk_wakeup(struct net_device *dev, u32 qid, u32 flags);
32
33#endif /* !_IDPF_XSK_H_ */
~/ Read-only file preview.