Home
last modified time | relevance | path

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

123456

/linux/tools/testing/selftests/bpf/progs/
H A Dxdp_features.c65 xdp_process_echo_packet(struct xdp_md *xdp, bool dut) in xdp_process_echo_packet()
135 xdp_update_stats(struct xdp_md *xdp, bool tx, bool dut) in xdp_update_stats()
156 int xdp_tester_check_tx(struct xdp_md *xdp) in xdp_tester_check_tx()
164 int xdp_tester_check_rx(struct xdp_md *xdp) in xdp_tester_check_rx()
174 int xdp_do_pass(struct xdp_md *xdp) in xdp_do_pass()
182 int xdp_do_drop(struct xdp_md *xdp) in xdp_do_drop()
191 int xdp_do_aborted(struct xdp_md *xdp) in xdp_do_aborted()
200 int xdp_do_tx(struct xdp_md *xdp) in xdp_do_tx()
217 int xdp_do_redirect(struct xdp_md *xdp) in xdp_do_redirect()
227 const struct bpf_prog *xdp, __u32 act) in BPF_PROG()
[all …]
H A Dxsk_xdp_progs.c19 xsk_def_prog(struct xdp_md * xdp) xsk_def_prog() argument
24 xsk_xdp_drop(struct xdp_md * xdp) xsk_xdp_drop() argument
33 xsk_xdp_populate_metadata(struct xdp_md * xdp) xsk_xdp_populate_metadata() argument
56 xsk_xdp_shared_umem(struct xdp_md * xdp) xsk_xdp_shared_umem() argument
[all...]
H A Dxdp_redirect_map.c14 xdp_redirect_map_0(struct xdp_md * xdp) xdp_redirect_map_0() argument
20 xdp_redirect_map_1(struct xdp_md * xdp) xdp_redirect_map_1() argument
26 xdp_redirect_map_2(struct xdp_md * xdp) xdp_redirect_map_2() argument
[all...]
H A Dtest_xdp_do_redirect.c29 int xdp_redirect(struct xdp_md *xdp) in xdp_redirect()
86 int xdp_count_pkts(struct xdp_md *xdp) in xdp_count_pkts()
102 int xdp_redirect_to_111(struct xdp_md *xdp) in xdp_redirect_to_111()
108 int xdp_redirect_to_222(struct xdp_md *xdp) in xdp_redirect_to_222()
H A Dtest_xdp.c79 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()
213 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
H A Dtest_xdp_loop.c75 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
148 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6()
209 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
H A Ddynptr_success.c1023 static __always_inline void test_dynptr_probe_str_xdp(struct xdp_md *xdp, voi argument
611 test_dynptr_copy_xdp(struct xdp_md * xdp) test_dynptr_copy_xdp() argument
810 test_dynptr_memset_xdp_chunks(struct xdp_md * xdp) test_dynptr_memset_xdp_chunks() argument
940 test_dynptr_probe_xdp(struct xdp_md * xdp,void * ptr,bpf_read_dynptr_fn_t bpf_read_dynptr_fn) test_dynptr_probe_xdp() argument
968 test_dynptr_probe_str_xdp(struct xdp_md * xdp,void * ptr,bpf_read_dynptr_fn_t bpf_read_dynptr_fn) test_dynptr_probe_str_xdp() argument
1005 test_probe_read_user_dynptr(struct xdp_md * xdp) test_probe_read_user_dynptr() argument
1014 test_probe_read_kernel_dynptr(struct xdp_md * xdp) test_probe_read_kernel_dynptr() argument
1032 test_probe_read_kernel_str_dynptr(struct xdp_md * xdp) test_probe_read_kernel_str_dynptr() argument
[all...]
H A Dtest_xdp_dynptr.c77 static __always_inline int handle_ipv4(struct xdp_md *xdp, struct bpf_dynptr *xdp_ptr) in handle_ipv4()
159 static __always_inline int handle_ipv6(struct xdp_md *xdp, struct bpf_dynptr *xdp_ptr) in handle_ipv6()
231 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
H A Dtest_parse_tcp_hdr_opt.c36 static int parse_hdr_opt(const struct xdp_md *xdp, struct hdr_opt_state *state) in parse_hdr_opt()
82 int xdp_ingress_v6(struct xdp_md *xdp) in xdp_ingress_v6()
H A Dtest_xdp_bpf2bpf.c45 int BPF_PROG(trace_on_entry, struct xdp_buff *xdp) in BPF_PROG()
62 int BPF_PROG(trace_on_exit, struct xdp_buff *xdp, int ret) in BPF_PROG()
/linux/include/net/
H A Dxdp.h119 static __always_inline void xdp_buff_clear_frags_flag(struct xdp_buff *xdp) in xdp_init_buff() argument
92 xdp_buff_has_frags(const struct xdp_buff * xdp) xdp_buff_has_frags() argument
97 xdp_buff_set_frags_flag(struct xdp_buff * xdp) xdp_buff_set_frags_flag() argument
102 xdp_buff_clear_frags_flag(struct xdp_buff * xdp) xdp_buff_clear_frags_flag() argument
108 xdp_buff_is_frag_pfmemalloc(const struct xdp_buff * xdp) xdp_buff_is_frag_pfmemalloc() argument
113 xdp_buff_set_frag_pfmemalloc(struct xdp_buff * xdp) xdp_buff_set_frag_pfmemalloc() argument
127 xdp_prepare_buff(struct xdp_buff * xdp,unsigned char * hard_start,int headroom,int data_len,const bool meta_valid) xdp_prepare_buff() argument
144 xdp_data_hard_end(xdp) global() argument
149 xdp_get_shared_info_from_buff(const struct xdp_buff * xdp) xdp_get_shared_info_from_buff() argument
155 xdp_get_buff_len(const struct xdp_buff * xdp) xdp_get_buff_len() argument
190 __xdp_buff_add_frag(struct xdp_buff * xdp,netmem_ref netmem,u32 offset,u32 size,u32 truesize,bool try_coalesce) __xdp_buff_add_frag() argument
244 xdp_buff_add_frag(struct xdp_buff * xdp,netmem_ref netmem,u32 offset,u32 size,u32 truesize) xdp_buff_add_frag() argument
350 xdp_convert_frame_to_buff(const struct xdp_frame * frame,struct xdp_buff * xdp) xdp_convert_frame_to_buff() argument
361 xdp_update_frame_from_buff(const struct xdp_buff * xdp,struct xdp_frame * xdp_frame) xdp_update_frame_from_buff() argument
391 xdp_convert_buff_to_frame(struct xdp_buff * xdp) xdp_convert_buff_to_frame() argument
498 xdp_set_data_meta_invalid(struct xdp_buff * xdp) xdp_set_data_meta_invalid() argument
504 xdp_data_meta_unsupported(const struct xdp_buff * xdp) xdp_data_meta_unsupported() argument
647 bpf_prog_run_xdp(const struct bpf_prog * prog,struct xdp_buff * xdp) bpf_prog_run_xdp() argument
[all...]
H A Dxdp_sock_drv.h76 static inline dma_addr_t xsk_buff_xdp_get_dma(struct xdp_buff *xdp) in xsk_buff_xdp_get_dma() argument
83 static inline dma_addr_t xsk_buff_xdp_get_frame_dma(struct xdp_buff *xdp) in xsk_buff_xdp_get_frame_dma() argument
101 static inline u32 xsk_buff_alloc_batch(struct xsk_buff_pool *pool, struct xdp_buff **xdp, u32 max) in xsk_buff_alloc_batch() argument
111 static inline void xsk_buff_free(struct xdp_buff *xdp) in xsk_buff_free() argument
131 xsk_buff_add_frag(struct xdp_buff * head,struct xdp_buff * xdp) xsk_buff_add_frag() argument
180 xsk_buff_set_size(struct xdp_buff * xdp,u32 size) xsk_buff_set_size() argument
249 xsk_buff_dma_sync_for_cpu(struct xdp_buff * xdp) xsk_buff_dma_sync_for_cpu() argument
347 xsk_buff_xdp_get_dma(struct xdp_buff * xdp) xsk_buff_xdp_get_dma() argument
352 xsk_buff_xdp_get_frame_dma(struct xdp_buff * xdp) xsk_buff_xdp_get_frame_dma() argument
367 xsk_buff_alloc_batch(struct xsk_buff_pool * pool,struct xdp_buff ** xdp,u32 max) xsk_buff_alloc_batch() argument
377 xsk_buff_free(struct xdp_buff * xdp) xsk_buff_free() argument
382 xsk_buff_add_frag(struct xdp_buff * head,struct xdp_buff * xdp) xsk_buff_add_frag() argument
401 xsk_buff_set_size(struct xdp_buff * xdp,u32 size) xsk_buff_set_size() argument
439 xsk_buff_dma_sync_for_cpu(struct xdp_buff * xdp) xsk_buff_dma_sync_for_cpu() argument
[all...]
/linux/include/net/libeth/
H A Dxsk.h25 struct libeth_xdp_buff *xdp) in libeth_xsk_tx_queue_head()
65 struct libeth_xdp_buff *xdp, in libeth_xsk_tx_queue_bulk()
115 struct libeth_xdp_buff *xdp = frm.xsk; in libeth_xsk_tx_fill_buf() local
352 struct libeth_xdp_buff *xdp, u32 len) in libeth_xsk_process_buff()
390 __libeth_xsk_run_prog(struct libeth_xdp_buff *xdp, in __libeth_xsk_run_prog()
419 #define libeth_xsk_run_prog(xdp, bq, fl) \ argument
441 __libeth_xsk_run_pass(struct libeth_xdp_buff *xdp, in __libeth_xsk_run_pass()
444 void (*prep)(struct libeth_xdp_buff *xdp, in __libeth_xsk_run_pass()
446 u32 (*run)(struct libeth_xdp_buff *xdp, in __libeth_xsk_run_pass()
449 const struct libeth_xdp_buff *xdp, in __libeth_xsk_run_pass()
[all …]
H A Dxdp.h599 const struct libeth_xdp_buff *xdp) in libeth_xdp_tx_queue_head()
638 struct libeth_xdp_buff *xdp, in libeth_xdp_tx_queue_bulk()
1248 #define libeth_xdp_return_buff(xdp) __libeth_xdp_return_buff(xdp, true) argument
1250 static inline void __libeth_xdp_return_buff(struct libeth_xdp_buff *xdp, in __libeth_xdp_return_buff()
1278 static inline void libeth_xdp_prepare_buff(struct libeth_xdp_buff *xdp, in libeth_xdp_prepare_buff()
1303 static inline bool libeth_xdp_process_buff(struct libeth_xdp_buff *xdp, in libeth_xdp_process_buff()
1330 const struct libeth_xdp_buff *xdp) in libeth_xdp_buff_stats_frags()
1355 __libeth_xdp_run_prog(struct libeth_xdp_buff *xdp, in __libeth_xdp_run_prog()
1403 __libeth_xdp_run_flush(struct libeth_xdp_buff *xdp, in __libeth_xdp_run_flush()
1405 u32 (*run)(struct libeth_xdp_buff *xdp, in __libeth_xdp_run_flush()
[all …]
/linux/drivers/net/ethernet/intel/libeth/
H A Dxsk.c36 void libeth_xsk_buff_free_slow(struct libeth_xdp_buff *xdp) in libeth_xsk_buff_free_slow()
54 struct libeth_xdp_buff *xdp) in libeth_xsk_buff_add_frag()
78 const struct libeth_xdp_buff *xdp) in libeth_xsk_buff_stats_frags()
98 u32 __libeth_xsk_run_prog_slow(struct libeth_xdp_buff *xdp, in __libeth_xsk_run_prog_slow()
130 u32 __cold libeth_xsk_prog_exception(struct libeth_xdp_buff *xdp, in libeth_xsk_prog_exception()
H A Dxdp.c244 void __cold libeth_xdp_return_buff_slow(struct libeth_xdp_buff *xdp) in libeth_xdp_return_buff_slow()
261 bool libeth_xdp_buff_add_frag(struct libeth_xdp_buff *xdp, in libeth_xdp_buff_add_frag()
296 struct libeth_xdp_buff *xdp, in libeth_xdp_prog_exception()
/linux/include/trace/events/
H A Dxdp.h159 #define _trace_xdp_redirect(dev, xdp, to) \ argument
162 #define _trace_xdp_redirect_err(dev, xdp, to, err) \ argument
165 #define _trace_xdp_redirect_map(dev, xdp, to, map_type, map_id, index) \ argument
168 #define _trace_xdp_redirect_map_err(dev, xdp, to, map_type, map_id, index, err) \ argument
/linux/drivers/net/ethernet/intel/igb/
H A Digb_xsk.c176 static u16 igb_fill_rx_descs(struct xsk_buff_pool *pool, struct xdp_buff **xdp, in igb_fill_rx_descs()
207 struct xdp_buff **xdp; in igb_alloc_rx_buffers_zc() local
256 struct xdp_buff *xdp = rx_ring->rx_buffer_info_zc[ntc]; in igb_clean_rx_ring_zc() local
266 struct xdp_buff *xdp, in igb_construct_skb_zc()
295 struct xdp_buff *xdp, struct xsk_buff_pool *xsk_pool, in igb_run_xdp_zc()
360 struct xdp_buff *xdp; in igb_clean_rx_irq_zc() local
/linux/samples/bpf/
H A 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()
H A 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/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_xdp.c9 static int lan966x_xdp_setup(struct net_device *dev, struct netdev_bpf *xdp) in lan966x_xdp_setup()
43 int lan966x_xdp(struct net_device *dev, struct netdev_bpf *xdp) in lan966x_xdp()
79 struct xdp_buff xdp; in lan966x_xdp_run() local
/linux/drivers/net/vmxnet3/
H A Dvmxnet3_xdp.c261 vmxnet3_run_xdp(struct vmxnet3_rx_queue *rq, struct xdp_buff *xdp, in vmxnet3_run_xdp()
314 const struct xdp_buff *xdp) in vmxnet3_build_skb()
341 struct xdp_buff xdp; in vmxnet3_process_xdp_small() local
387 struct xdp_buff xdp; in vmxnet3_process_xdp() local
/linux/net/core/
H A Dxdp.c433 __xdp_return(netmem_ref netmem,enum xdp_mem_type mem_type,bool napi_direct,struct xdp_buff * xdp) __xdp_return() argument
542 xdp_return_frag(netmem_ref netmem,const struct xdp_buff * xdp) xdp_return_frag() argument
548 xdp_return_buff(struct xdp_buff * xdp) xdp_return_buff() argument
575 xdp_convert_zc_to_xdp_frame(struct xdp_buff * xdp) xdp_convert_zc_to_xdp_frame() argument
632 xdp_build_skb_from_buff(const struct xdp_buff * xdp) xdp_build_skb_from_buff() argument
688 xdp_copy_frags_from_zc(struct sk_buff * skb,const struct xdp_buff * xdp,struct page_pool * pp) xdp_copy_frags_from_zc() argument
738 xdp_build_skb_from_zc(struct xdp_buff * xdp) xdp_build_skb_from_zc() argument
[all...]
/linux/include/linux/
H A Dif_tun.h31 static inline void *tun_xdp_to_ptr(struct xdp_frame *xdp) in tun_xdp_to_ptr()
63 static inline void *tun_xdp_to_ptr(struct xdp_frame *xdp) in tun_xdp_to_ptr()
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_ring.c24 struct xdp_buff *xdp) in aq_get_rxpages_xdp()
386 static struct sk_buff *aq_xdp_build_skb(struct xdp_buff *xdp, in aq_xdp_build_skb()
406 struct xdp_buff *xdp, in aq_xdp_run_prog()
487 struct xdp_buff *xdp) in aq_add_rx_fragment()
720 struct xdp_buff xdp; in __aq_ring_xdp_clean() local

123456