Home
last modified time | relevance | path

Searched defs:xdp (Results 1 – 25 of 120) sorted by relevance

12345

/linux-6.1.9/include/net/
Dxdp_sock_drv.h73 static inline dma_addr_t xsk_buff_xdp_get_dma(struct xdp_buff *xdp) in xsk_buff_xdp_get_dma()
80 static inline dma_addr_t xsk_buff_xdp_get_frame_dma(struct xdp_buff *xdp) in xsk_buff_xdp_get_frame_dma()
93 static inline u32 xsk_buff_alloc_batch(struct xsk_buff_pool *pool, struct xdp_buff **xdp, u32 max) in xsk_buff_alloc_batch()
103 static inline void xsk_buff_free(struct xdp_buff *xdp) in xsk_buff_free()
110 static inline void xsk_buff_set_size(struct xdp_buff *xdp, u32 size) in xsk_buff_set_size()
128 static inline void xsk_buff_dma_sync_for_cpu(struct xdp_buff *xdp, struct xsk_buff_pool *pool) in xsk_buff_dma_sync_for_cpu()
229 static inline dma_addr_t xsk_buff_xdp_get_dma(struct xdp_buff *xdp) in xsk_buff_xdp_get_dma()
234 static inline dma_addr_t xsk_buff_xdp_get_frame_dma(struct xdp_buff *xdp) in xsk_buff_xdp_get_frame_dma()
244 static inline u32 xsk_buff_alloc_batch(struct xsk_buff_pool *pool, struct xdp_buff **xdp, u32 max) in xsk_buff_alloc_batch()
254 static inline void xsk_buff_free(struct xdp_buff *xdp) in xsk_buff_free()
[all …]
Dxdp.h88 static __always_inline bool xdp_buff_has_frags(struct xdp_buff *xdp) in xdp_buff_has_frags()
93 static __always_inline void xdp_buff_set_frags_flag(struct xdp_buff *xdp) in xdp_buff_set_frags_flag()
98 static __always_inline void xdp_buff_clear_frags_flag(struct xdp_buff *xdp) in xdp_buff_clear_frags_flag()
103 static __always_inline bool xdp_buff_is_frag_pfmemalloc(struct xdp_buff *xdp) in xdp_buff_is_frag_pfmemalloc()
108 static __always_inline void xdp_buff_set_frag_pfmemalloc(struct xdp_buff *xdp) in xdp_buff_set_frag_pfmemalloc()
114 xdp_init_buff(struct xdp_buff *xdp, u32 frame_sz, struct xdp_rxq_info *rxq) in xdp_init_buff()
122 xdp_prepare_buff(struct xdp_buff *xdp, unsigned char *hard_start, in xdp_prepare_buff()
139 #define xdp_data_hard_end(xdp) \ argument
144 xdp_get_shared_info_from_buff(struct xdp_buff *xdp) in xdp_get_shared_info_from_buff()
149 static __always_inline unsigned int xdp_get_buff_len(struct xdp_buff *xdp) in xdp_get_buff_len()
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dxdp_redirect_map.c14 int xdp_redirect_map_0(struct xdp_md *xdp) in xdp_redirect_map_0()
20 int xdp_redirect_map_1(struct xdp_md *xdp) in xdp_redirect_map_1()
26 int xdp_redirect_map_2(struct xdp_md *xdp) in xdp_redirect_map_2()
Dtest_xdp_redirect.c16 int xdp_redirect_to_111(struct xdp_md *xdp) in xdp_redirect_to_111()
21 int xdp_redirect_to_222(struct xdp_md *xdp) in xdp_redirect_to_222()
Dtest_xdp_loop.c74 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
147 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6()
208 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
Dtest_xdp.c78 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
151 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6()
212 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
Dtest_xdp_do_redirect.c16 int xdp_redirect(struct xdp_md *xdp) in xdp_redirect()
73 int xdp_count_pkts(struct xdp_md *xdp) in xdp_count_pkts()
Dtest_xdp_bpf2bpf.c45 int BPF_PROG(trace_on_entry, struct xdp_buff *xdp) in BPF_PROG()
64 int BPF_PROG(trace_on_exit, struct xdp_buff *xdp, int ret) in BPF_PROG()
Dxdp_tx.c7 int xdp_tx(struct xdp_md *xdp) in xdp_tx()
Dtest_xdp_link.c9 int xdp_handler(struct xdp_md *xdp) in xdp_handler()
Dtest_xdp_adjust_tail_shrink.c13 int _xdp_adjust_tail_shrink(struct xdp_md *xdp) in _xdp_adjust_tail_shrink()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c28 struct xdp_buff *xdp) in bnxt_xmit_bd()
104 struct xdp_buff *xdp) in __bnxt_xmit_xdp()
181 struct xdp_buff *xdp) in bnxt_xdp_buff_init()
201 struct xdp_buff *xdp) in bnxt_xdp_buff_frags_free()
222 struct xdp_buff xdp, struct page *page, u8 **data_ptr, in bnxt_rx_xdp()
360 struct xdp_frame *xdp = frames[i]; in bnxt_xdp_xmit() local
447 int bnxt_xdp(struct net_device *dev, struct netdev_bpf *xdp) in bnxt_xdp()
465 struct page_pool *pool, struct xdp_buff *xdp, in bnxt_xdp_build_skb()
/linux-6.1.9/include/trace/events/
Dxdp.h158 #define _trace_xdp_redirect(dev, xdp, to) \ argument
161 #define _trace_xdp_redirect_err(dev, xdp, to, err) \ argument
164 #define _trace_xdp_redirect_map(dev, xdp, to, map_type, map_id, index) \ argument
167 #define _trace_xdp_redirect_map_err(dev, xdp, to, map_type, map_id, index, err) \ argument
/linux-6.1.9/samples/bpf/
Dxdp_sample.bpf.c97 const struct bpf_prog *xdp, const void *tgt, int err, in BPF_PROG()
105 const struct bpf_prog *xdp, const void *tgt, int err, in BPF_PROG()
113 const struct bpf_prog *xdp, const void *tgt, int err, in BPF_PROG()
121 const struct bpf_prog *xdp, const void *tgt, int err, in BPF_PROG()
182 const struct bpf_prog *xdp, u32 act) in BPF_PROG()
Dxdp_adjust_tail_kern.c70 static __always_inline int send_icmp4_too_big(struct xdp_md *xdp) in send_icmp4_too_big()
120 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
137 int _xdp_icmp(struct xdp_md *xdp) in _xdp_icmp()
Dxdp_tx_iptunnel_kern.c77 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
152 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6()
216 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_tcp_check_syncookie_user.c82 static int get_map_fd_by_prog_id(int prog_id, bool *xdp) in get_map_fd_by_prog_id()
120 static int run_test(int server_fd, int results_fd, bool xdp, in run_test()
230 bool xdp; in main() local
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Drx.c208 static struct sk_buff *mlx5e_xsk_construct_skb(struct mlx5e_rq *rq, struct xdp_buff *xdp) in mlx5e_xsk_construct_skb()
236 struct xdp_buff *xdp = wi->alloc_units[page_idx].xsk; in mlx5e_xsk_skb_from_cqe_mpwrq_linear() local
288 struct xdp_buff *xdp = wi->au->xsk; in mlx5e_xsk_skb_from_cqe_linear() local
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_xsk.c447 static u16 ice_fill_rx_descs(struct xsk_buff_pool *pool, struct xdp_buff **xdp, in ice_fill_rx_descs()
484 struct xdp_buff **xdp; in __ice_alloc_rx_bufs_zc() local
564 ice_construct_skb_zc(struct ice_rx_ring *rx_ring, struct xdp_buff *xdp) in ice_construct_skb_zc()
599 ice_run_xdp_zc(struct ice_rx_ring *rx_ring, struct xdp_buff *xdp, in ice_run_xdp_zc()
667 struct xdp_buff *xdp; in ice_clean_rx_irq_zc() local
1036 struct xdp_buff *xdp = *ice_xdp_buf(rx_ring, ntc); in ice_xsk_clean_rx_ring() local
/linux-6.1.9/include/linux/
Dif_tun.h34 static inline void *tun_xdp_to_ptr(struct xdp_frame *xdp) in tun_xdp_to_ptr()
60 static inline void *tun_xdp_to_ptr(struct xdp_frame *xdp) in tun_xdp_to_ptr()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/
Dnfp_net_xsk.c18 struct xdp_buff *xdp) in nfp_net_xsk_rx_bufs_stash()
62 struct xdp_buff *xdp; in nfp_net_xsk_rx_ring_fill_freelist() local
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/
Daq_ring.c24 struct xdp_buff *xdp) in aq_get_rxpages_xdp()
416 struct xdp_buff *xdp, in aq_xdp_run_prog()
502 struct xdp_buff *xdp) in aq_add_rx_fragment()
733 struct xdp_buff xdp; in __aq_ring_xdp_clean() local
/linux-6.1.9/drivers/net/hyperv/
Dnetvsc_bpf.c25 struct xdp_buff *xdp) in netvsc_run_xdp()
167 struct netdev_bpf xdp; in netvsc_vf_setxdp() local
/linux-6.1.9/net/bpf/
Dtest_run.c124 struct xdp_test_data *xdp = arg; in xdp_test_run_init_page() local
149 static int xdp_test_run_setup(struct xdp_test_data *xdp, struct xdp_buff *orig_ctx) in xdp_test_run_setup()
203 static void xdp_test_run_teardown(struct xdp_test_data *xdp) in xdp_test_run_teardown()
261 static int xdp_test_run_batch(struct xdp_test_data *xdp, struct bpf_prog *prog, in xdp_test_run_batch()
348 struct xdp_test_data xdp = { .batch_size = batch_size }; in bpf_test_run_xdp_live() local
373 u32 *retval, u32 *time, bool xdp) in bpf_test_run()
1214 static int xdp_convert_md_to_buff(struct xdp_md *xdp_md, struct xdp_buff *xdp) in xdp_convert_md_to_buff()
1260 static void xdp_convert_buff_to_md(struct xdp_buff *xdp, struct xdp_md *xdp_md) in xdp_convert_buff_to_md()
1284 struct xdp_buff xdp = {}; in bpf_prog_test_run_xdp() local
/linux-6.1.9/net/xdp/
Dxsk.c137 static int __xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len) in __xsk_rcv_zc()
172 static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in __xsk_rcv()
217 static int xsk_rcv_check(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_rcv_check()
236 int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv()
250 static int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_rcv()
270 int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp) in __xsk_map_redirect()

12345