Home
last modified time | relevance | path

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

123

/Linux-v5.4/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.c18 int xdp_redirect_to_111(struct xdp_md *xdp) in xdp_redirect_to_111()
23 int xdp_redirect_to_222(struct xdp_md *xdp) in xdp_redirect_to_222()
Dtest_xdp.c80 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
153 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6()
214 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
Dtest_xdp_loop.c76 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
149 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6()
210 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
Dxdp_tx.c7 int xdp_tx(struct xdp_md *xdp) in xdp_tx()
Dtest_adjust_tail.c15 int _xdp_adjust_tail(struct xdp_md *xdp) in _xdp_adjust_tail()
Dtest_xdp_noinline.c278 bool encap_v6(struct xdp_md *xdp, struct ctl_value *cval, in encap_v6()
321 bool encap_v4(struct xdp_md *xdp, struct ctl_value *cval, in encap_v4()
375 bool decap_v6(struct xdp_md *xdp, void **data, void **data_end, bool inner_v4) in decap_v6()
396 bool decap_v4(struct xdp_md *xdp, void **data, void **data_end) in decap_v4()
692 bool is_ipv6, struct xdp_md *xdp) in process_packet()
/Linux-v5.4/include/trace/events/
Dxdp.h134 #define _trace_xdp_redirect(dev, xdp, to) \ argument
137 #define _trace_xdp_redirect_err(dev, xdp, to, err) \ argument
182 #define _trace_xdp_redirect_map(dev, xdp, fwd, map, idx) \ argument
186 #define _trace_xdp_redirect_map_err(dev, xdp, fwd, map, idx, err) \ argument
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_tcp_check_syncookie_user.c81 static int get_map_fd_by_prog_id(int prog_id, bool *xdp) in get_map_fd_by_prog_id()
119 static int run_test(int server_fd, int results_fd, bool xdp) in run_test()
210 bool xdp; in main() local
/Linux-v5.4/samples/bpf/
Dxdp_adjust_tail_kern.c67 static __always_inline int send_icmp4_too_big(struct xdp_md *xdp) in send_icmp4_too_big()
117 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
134 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-v5.4/include/net/
Dxdp.h98 struct xdp_frame *convert_to_xdp_frame(struct xdp_buff *xdp) in convert_to_xdp_frame()
160 xdp_set_data_meta_invalid(struct xdp_buff *xdp) in xdp_set_data_meta_invalid()
166 xdp_data_meta_unsupported(const struct xdp_buff *xdp) in xdp_data_meta_unsupported()
Dxdp_sock.h222 static inline int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv()
227 static inline int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_rcv()
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c118 struct xdp_buff xdp; in bnxt_rx_xdp() local
235 struct xdp_frame *xdp = frames[i]; in bnxt_xdp_xmit() local
323 int bnxt_xdp(struct net_device *dev, struct netdev_bpf *xdp) in bnxt_xdp()
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/
Dixgbe_xsk.c144 struct xdp_buff *xdp) in ixgbe_run_xdp_zc()
396 struct xdp_buff *xdp) in ixgbe_construct_skb_zc()
437 struct xdp_buff xdp; in ixgbe_clean_rx_irq_zc() local
/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_xsk.c191 static int i40e_run_xdp_zc(struct i40e_ring *rx_ring, struct xdp_buff *xdp) in i40e_run_xdp_zc()
488 struct xdp_buff *xdp) in i40e_construct_skb_zc()
537 struct xdp_buff xdp; in i40e_clean_rx_irq_zc() local
Di40e_txrx.c1996 struct xdp_buff *xdp) in i40e_construct_skb()
2077 struct xdp_buff *xdp) in i40e_build_skb()
2181 int i40e_xmit_xdp_tx_ring(struct xdp_buff *xdp, struct i40e_ring *xdp_ring) in i40e_xmit_xdp_tx_ring()
2197 struct xdp_buff *xdp) in i40e_run_xdp()
2336 struct xdp_buff xdp; in i40e_clean_rx_irq() local
/Linux-v5.4/net/xdp/
Dxsk.c141 static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len) in __xsk_rcv()
179 static int __xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len) in __xsk_rcv_zc()
199 int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_rcv()
221 int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv()
/Linux-v5.4/net/core/
Dxdp.c448 void xdp_return_buff(struct xdp_buff *xdp) in xdp_return_buff()
500 struct xdp_frame *xdp_convert_zc_to_xdp_frame(struct xdp_buff *xdp) in xdp_convert_zc_to_xdp_frame()
/Linux-v5.4/drivers/net/
Dveth.c229 struct veth_rq *rq, bool xdp) in veth_forward_skb()
491 static int veth_xdp_tx(struct net_device *dev, struct xdp_buff *xdp, in veth_xdp_tx()
523 struct xdp_buff xdp; in veth_xdp_rcv_one() local
601 struct xdp_buff xdp; in veth_xdp_rcv_skb() local
1149 static int veth_xdp(struct net_device *dev, struct netdev_bpf *xdp) in veth_xdp()
Dtun.c1233 static int tun_xdp(struct net_device *dev, struct netdev_bpf *xdp) in tun_xdp()
1310 struct xdp_frame *xdp = frames[i]; in tun_xdp_xmit() local
1331 static int tun_xdp_tx(struct net_device *dev, struct xdp_buff *xdp) in tun_xdp_tx()
1624 struct xdp_buff *xdp, u32 act) in tun_xdp_act()
1703 struct xdp_buff xdp; in tun_build_skb() local
2417 struct xdp_buff *xdp, int *flush, in tun_xdp_one()
2525 struct xdp_buff *xdp; in tun_sendmsg() local
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/
Dxdp.c60 struct mlx5e_dma_info *di, struct xdp_buff *xdp) in mlx5e_xmit_xdp_buff()
126 struct xdp_buff xdp; in mlx5e_xdp_handle() local
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/
Dnfp_net_debugfs.c150 struct dentry *queues, *tx, *rx, *xdp; in nfp_net_debugfs_vnic_add() local
/Linux-v5.4/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf_main.c858 struct xdp_buff *xdp, in ixgbevf_construct_skb()
935 struct xdp_buff *xdp, in ixgbevf_build_skb()
984 struct xdp_buff *xdp) in ixgbevf_xmit_xdp_ring()
1062 struct xdp_buff *xdp) in ixgbevf_run_xdp()
1124 struct xdp_buff xdp; in ixgbevf_clean_rx_irq() local
4491 static int ixgbevf_xdp(struct net_device *dev, struct netdev_bpf *xdp) in ixgbevf_xdp()
/Linux-v5.4/kernel/bpf/
Dxskmap.c175 int __xsk_map_redirect(struct bpf_map *map, struct xdp_buff *xdp, in __xsk_map_redirect()

123