Home
last modified time | relevance | path

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

12345

/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.c22 SEC("xdp.frags") int xsk_def_prog(struct xdp_md *xdp) in xsk_def_prog()
27 SEC("xdp.frags") int xsk_xdp_drop(struct xdp_md *xdp) in xsk_xdp_drop()
38 SEC("xdp.frags") int xsk_xdp_populate_metadata(struct xdp_md *xdp) in xsk_xdp_populate_metadata()
61 SEC("xdp") int xsk_xdp_shared_umem(struct xdp_md *xdp) in xsk_xdp_shared_umem()
78 SEC("xdp.frags") int xsk_xdp_adjust_tail(struct xdp_md *xdp) in xsk_xdp_adjust_tail()
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/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/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_xdp.c29 struct xdp_buff *xdp) in bnxt_xmit_bd()
97 struct xdp_buff *xdp) in __bnxt_xmit_xdp()
184 struct xdp_buff *xdp) in bnxt_xdp_buff_init()
204 struct xdp_buff *xdp) in bnxt_xdp_buff_frags_free()
225 struct xdp_buff *xdp, struct page *page, u8 **data_ptr, in bnxt_rx_xdp()
357 struct xdp_frame *xdp = frames[i]; in bnxt_xdp_xmit() local
444 int bnxt_xdp(struct net_device *dev, struct netdev_bpf *xdp) in bnxt_xdp()
462 struct bnxt_rx_ring_info *rxr, struct xdp_buff *xdp) in bnxt_xdp_build_skb()
478 const struct bnxt_xdp_buff *xdp = (void *)ctx; in bnxt_xdp_rx_hash() local
/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/include/net/libeth/
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/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.c434 bool napi_direct, struct xdp_buff *xdp) in __xdp_return() argument
543 void xdp_return_frag(netmem_ref netmem, const struct xdp_buff *xdp) in xdp_return_frag() argument
549 void xdp_return_buff(struct xdp_buff *xdp) in xdp_return_buff() argument
576 xdp_convert_zc_to_xdp_frame(struct xdp_buff * xdp) xdp_convert_zc_to_xdp_frame() argument
633 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
739 xdp_build_skb_from_zc(struct xdp_buff * xdp) xdp_build_skb_from_zc() argument
[all...]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_xsk.c260 static u16 ice_fill_rx_descs(struct xsk_buff_pool *pool, struct xdp_buff **xdp, in ice_fill_rx_descs()
299 struct xdp_buff **xdp; in __ice_alloc_rx_bufs_zc() local
432 static int ice_xmit_xdp_tx_zc(struct xdp_buff *xdp, in ice_xmit_xdp_tx_zc()
515 ice_run_xdp_zc(struct ice_rx_ring *rx_ring, struct xdp_buff *xdp, in ice_run_xdp_zc()
591 struct xdp_buff *xdp; in ice_clean_rx_irq_zc() local
906 struct xdp_buff *xdp = *ice_xdp_buf(rx_ring, ntc); in ice_xsk_clean_rx_ring() local
/linux/include/linux/
H A Dif_tun.h33 static inline void *tun_xdp_to_ptr(struct xdp_frame *xdp) in tun_xdp_to_ptr()
67 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()
439 static struct sk_buff *aq_xdp_build_skb(struct xdp_buff *xdp, in aq_xdp_build_skb()
459 struct xdp_buff *xdp, in aq_xdp_run_prog()
540 struct xdp_buff *xdp) in aq_add_rx_fragment()
778 struct xdp_buff xdp; in __aq_ring_xdp_clean() local
/linux/drivers/net/ethernet/intel/idpf/
H A Dxdp.c387 const struct libeth_xdp_buff *xdp = (typeof(xdp))ctx; in idpf_xdpmo_rx_hash() local
408 const struct libeth_xdp_buff *xdp = (typeof(xdp))ctx; in idpf_xdpmo_rx_timestamp() local
451 const struct netdev_bpf *xdp) in idpf_xdp_setup_prog()
502 int idpf_xdp(struct net_device *dev, struct netdev_bpf *xdp) in idpf_xdp()

12345