Home
last modified time | relevance | path

Searched refs:xdp_frame (Results 1 – 17 of 17) sorted by relevance

/Linux-v4.19/include/net/
Dxdp.h75 struct xdp_frame { struct
88 static inline void xdp_scrub_frame(struct xdp_frame *frame) in xdp_scrub_frame()
96 struct xdp_frame *convert_to_xdp_frame(struct xdp_buff *xdp) in convert_to_xdp_frame()
98 struct xdp_frame *xdp_frame; in convert_to_xdp_frame() local
110 if (unlikely((headroom - metasize) < sizeof(*xdp_frame))) in convert_to_xdp_frame()
114 xdp_frame = xdp->data_hard_start; in convert_to_xdp_frame()
116 xdp_frame->data = xdp->data; in convert_to_xdp_frame()
117 xdp_frame->len = xdp->data_end - xdp->data; in convert_to_xdp_frame()
118 xdp_frame->headroom = headroom - sizeof(*xdp_frame); in convert_to_xdp_frame()
119 xdp_frame->metasize = metasize; in convert_to_xdp_frame()
[all …]
/Linux-v4.19/kernel/bpf/
Dcpumap.c163 struct xdp_frame *xdpf) in cpu_map_build_skb()
218 struct xdp_frame *xdpf; in __cpu_map_ring_cleanup()
249 struct xdp_frame *xdpf; in cpu_map_kthread_run()
578 struct xdp_frame *xdpf = bq->q[i]; in bq_flush_to_queue()
602 static int bq_enqueue(struct bpf_cpu_map_entry *rcpu, struct xdp_frame *xdpf) in bq_enqueue()
625 struct xdp_frame *xdpf; in cpu_map_enqueue()
Ddevmap.c60 struct xdp_frame *q[DEV_MAP_BULK_SIZE];
232 struct xdp_frame *xdpf = bq->q[i]; in bq_xmit_all()
256 struct xdp_frame *xdpf = bq->q[i]; in bq_xmit_all()
317 static int bq_enqueue(struct bpf_dtab_netdev *obj, struct xdp_frame *xdpf, in bq_enqueue()
341 struct xdp_frame *xdpf; in dev_map_enqueue()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/en/
Dxdp.c115 struct xdp_frame *xdpf = xdpi->xdpf; in mlx5e_xmit_xdp_frame()
256 int mlx5e_xdp_xmit(struct net_device *dev, int n, struct xdp_frame **frames, in mlx5e_xdp_xmit()
282 struct xdp_frame *xdpf = frames[i]; in mlx5e_xdp_xmit()
Dxdp.h49 int mlx5e_xdp_xmit(struct net_device *dev, int n, struct xdp_frame **frames,
/Linux-v4.19/drivers/net/
Dveth.c298 struct xdp_frame **frames, u32 flags) in veth_xdp_xmit()
326 struct xdp_frame *frame = frames[i]; in veth_xdp_xmit()
367 struct xdp_frame *frame = convert_to_xdp_frame(xdp); in veth_xdp_tx()
376 struct xdp_frame *frame, in veth_xdp_rcv_one()
380 void *head = hard_start - sizeof(struct xdp_frame); in veth_xdp_rcv_one()
382 struct xdp_frame orig_frame; in veth_xdp_rcv_one()
439 headroom = sizeof(struct xdp_frame) + frame->headroom - delta; in veth_xdp_rcv_one()
Dtun.c666 struct xdp_frame *xdpf = tun_ptr_to_xdp(ptr); in tun_ptr_free()
1263 struct xdp_frame **frames, u32 flags) in tun_xdp_xmit()
1288 struct xdp_frame *xdp = frames[i]; in tun_xdp_xmit()
1311 struct xdp_frame *frame = convert_to_xdp_frame(xdp); in tun_xdp_tx()
1977 struct xdp_frame *xdp_frame, in tun_put_user_xdp() argument
1981 size_t size = xdp_frame->len; in tun_put_user_xdp()
1997 ret = copy_to_iter(xdp_frame->data, size, iter) + vnet_hdr_sz; in tun_put_user_xdp()
2167 struct xdp_frame *xdpf = tun_ptr_to_xdp(ptr); in tun_do_read()
2411 struct xdp_frame *xdpf = tun_ptr_to_xdp(ptr); in tun_ptr_peek_len()
Dvirtio_net.c440 struct xdp_frame *xdpf) in __virtnet_xdp_xmit_one()
477 int n, struct xdp_frame **frames, u32 flags) in virtnet_xdp_xmit()
481 struct xdp_frame *xdpf_sent; in virtnet_xdp_xmit()
513 struct xdp_frame *xdpf = frames[i]; in virtnet_xdp_xmit()
633 struct xdp_frame *xdpf; in receive_small()
780 struct xdp_frame *xdpf; in receive_mergeable()
/Linux-v4.19/net/core/
Dxdp.c353 void xdp_return_frame(struct xdp_frame *xdpf) in xdp_return_frame()
359 void xdp_return_frame_rx_napi(struct xdp_frame *xdpf) in xdp_return_frame_rx_napi()
Dfilter.c3075 void *xdp_frame_end = xdp->data_hard_start + sizeof(struct xdp_frame); in BPF_CALL_2()
3127 void *xdp_frame_end = xdp->data_hard_start + sizeof(struct xdp_frame); in BPF_CALL_2()
3158 struct xdp_frame *xdpf; in __bpf_tx_xdp()
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_txrx.h285 struct xdp_frame *xdpf;
490 int i40e_xdp_xmit(struct net_device *dev, int n, struct xdp_frame **frames,
Di40e_txrx.c2207 static int i40e_xmit_xdp_ring(struct xdp_frame *xdpf,
2213 struct xdp_frame *xdpf = convert_to_xdp_frame(xdp); in i40e_xmit_xdp_tx_ring()
3501 static int i40e_xmit_xdp_ring(struct xdp_frame *xdpf, in i40e_xmit_xdp_ring()
3702 int i40e_xdp_xmit(struct net_device *dev, int n, struct xdp_frame **frames, in i40e_xdp_xmit()
3724 struct xdp_frame *xdpf = frames[i]; in i40e_xdp_xmit()
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe.h218 struct xdp_frame *xdpf;
Dixgbe_main.c2195 struct xdp_frame *xdpf);
2203 struct xdp_frame *xdpf; in ixgbe_run_xdp()
8427 struct xdp_frame *xdpf) in ixgbe_xmit_xdp_ring()
10175 struct xdp_frame **frames, u32 flags) in ixgbe_xdp_xmit()
10196 struct xdp_frame *xdpf = frames[i]; in ixgbe_xdp_xmit()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den.h405 struct xdp_frame *xdpf;
/Linux-v4.19/drivers/vhost/
Dnet.c194 struct xdp_frame *xdpf = tun_ptr_to_xdp(ptr); in vhost_net_buf_peek_len()
/Linux-v4.19/include/linux/
Dnetdevice.h1409 struct xdp_frame **xdp,