Lines Matching refs:xdp
534 struct xdp_buff xdp; in nicvf_xdp_rx() local
551 xdp.data_hard_start = page_address(page); in nicvf_xdp_rx()
552 xdp.data = (void *)cpu_addr; in nicvf_xdp_rx()
553 xdp_set_data_meta_invalid(&xdp); in nicvf_xdp_rx()
554 xdp.data_end = xdp.data + len; in nicvf_xdp_rx()
555 xdp.rxq = &rq->xdp_rxq; in nicvf_xdp_rx()
556 orig_data = xdp.data; in nicvf_xdp_rx()
559 action = bpf_prog_run_xdp(prog, &xdp); in nicvf_xdp_rx()
562 len = xdp.data_end - xdp.data; in nicvf_xdp_rx()
564 if (orig_data != xdp.data) { in nicvf_xdp_rx()
565 offset = orig_data - xdp.data; in nicvf_xdp_rx()
585 *skb = build_skb(xdp.data, in nicvf_xdp_rx()
593 nicvf_xdp_sq_append_pkt(nic, sq, (u64)xdp.data, dma_addr, len); in nicvf_xdp_rx()
1900 static int nicvf_xdp(struct net_device *netdev, struct netdev_bpf *xdp) in nicvf_xdp() argument
1911 switch (xdp->command) { in nicvf_xdp()
1913 return nicvf_xdp_setup(nic, xdp->prog); in nicvf_xdp()
1915 xdp->prog_id = nic->xdp_prog ? nic->xdp_prog->aux->id : 0; in nicvf_xdp()