Home
last modified time | relevance | path

Searched refs:xdp_buff (Results 1 – 25 of 33) sorted by relevance

12

/Linux-v5.4/include/net/
Dxdp.h66 struct xdp_buff { struct
94 struct xdp_frame *xdp_convert_zc_to_xdp_frame(struct xdp_buff *xdp); argument
98 struct xdp_frame *convert_to_xdp_frame(struct xdp_buff *xdp) in convert_to_xdp_frame()
130 void xdp_return_buff(struct xdp_buff *xdp);
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.h109 struct xdp_buff;
111 int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp);
112 int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp);
222 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/include/linux/
Dbpf.h717 struct xdp_buff;
723 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp,
730 int cpu_map_enqueue(struct bpf_cpu_map_entry *rcpu, struct xdp_buff *xdp,
818 struct xdp_buff;
822 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp, in dev_map_enqueue()
848 struct xdp_buff *xdp, in cpu_map_enqueue()
978 int __xsk_map_redirect(struct bpf_map *map, struct xdp_buff *xdp,
989 static inline int __xsk_map_redirect(struct bpf_map *map, struct xdp_buff *xdp, in __xsk_map_redirect()
Dfilter.h36 struct xdp_buff;
697 struct xdp_buff *xdp) in bpf_prog_run_xdp()
909 struct xdp_buff *xdp, struct bpf_prog *prog);
911 struct xdp_buff *xdp,
/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_txrx_common.h9 int i40e_xmit_xdp_tx_ring(struct xdp_buff *xdp, struct i40e_ring *xdp_ring);
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()
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()
/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()
/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()
Dfilter.c3374 static unsigned long xdp_get_metalen(const struct xdp_buff *xdp) in xdp_get_metalen()
3380 BPF_CALL_2(bpf_xdp_adjust_head, struct xdp_buff *, xdp, int, offset) in BPF_CALL_2() argument
3408 BPF_CALL_2(bpf_xdp_adjust_tail, struct xdp_buff *, xdp, int, offset) in BPF_CALL_2() argument
3432 BPF_CALL_2(bpf_xdp_adjust_meta, struct xdp_buff *, xdp, int, offset) in BPF_CALL_2() argument
3462 struct xdp_buff *xdp, in __bpf_tx_xdp()
3487 xdp_do_redirect_slow(struct net_device *dev, struct xdp_buff *xdp, in xdp_do_redirect_slow()
3514 struct xdp_buff *xdp, in __bpf_tx_xdp_map()
3607 static int xdp_do_redirect_map(struct net_device *dev, struct xdp_buff *xdp, in xdp_do_redirect_map()
3634 int xdp_do_redirect(struct net_device *dev, struct xdp_buff *xdp, in xdp_do_redirect()
3649 struct xdp_buff *xdp, in xdp_do_generic_redirect_map()
[all …]
/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()
/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/kernel/bpf/
Dxskmap.c175 int __xsk_map_redirect(struct bpf_map *map, struct xdp_buff *xdp, in __xsk_map_redirect()
Dcpumap.c668 int cpu_map_enqueue(struct bpf_cpu_map_entry *rcpu, struct xdp_buff *xdp, in cpu_map_enqueue()
Ddevmap.c442 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp, in dev_map_enqueue()
/Linux-v5.4/drivers/net/
Dtap.c1148 static int tap_get_user_xdp(struct tap_queue *q, struct xdp_buff *xdp) in tap_get_user_xdp()
1215 struct xdp_buff *xdp; in tap_sendmsg()
1220 xdp = &((struct xdp_buff *)ctl->ptr)[i]; in tap_sendmsg()
Dveth.c491 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()
601 struct xdp_buff xdp; in veth_xdp_rcv_skb()
Dtun.c1331 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()
2417 struct xdp_buff *xdp, int *flush, in tun_xdp_one()
2525 struct xdp_buff *xdp; in tun_sendmsg()
2541 xdp = &((struct xdp_buff *)ctl->ptr)[i]; in tun_sendmsg()
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c118 struct xdp_buff xdp; in bnxt_rx_xdp()
/Linux-v5.4/net/bpf/
Dtest_run.c348 struct xdp_buff xdp = {}; in bpf_prog_test_run_xdp()
/Linux-v5.4/drivers/vhost/
Dnet.c128 struct xdp_buff *xdp;
691 struct xdp_buff *xdp = &nvq->xdp[nvq->batched_xdp]; in vhost_net_build_xdp()
1279 struct xdp_buff *xdp; in vhost_net_open()
/Linux-v5.4/drivers/net/ethernet/socionext/
Dnetsec.c866 static u32 netsec_xdp_xmit_back(struct netsec_priv *priv, struct xdp_buff *xdp) in netsec_xdp_xmit_back()
883 struct xdp_buff *xdp) in netsec_run_xdp()
948 struct xdp_buff xdp; in netsec_process_rx()
/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()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c673 struct xdp_buff xdp; in mlx4_en_process_rx_cq()
/Linux-v5.4/drivers/net/ethernet/ti/
Dcpsw.c488 static int cpsw_run_xdp(struct cpsw_priv *priv, int ch, struct xdp_buff *xdp, in cpsw_run_xdp()
685 struct xdp_buff xdp; in cpsw_rx_handler()

12