Lines Matching refs:xdp
1358 nfp_net_free_frag(void *frag, bool xdp) in nfp_net_free_frag() argument
1360 if (!xdp) in nfp_net_free_frag()
1812 struct xdp_buff xdp; in nfp_net_rx() local
1818 xdp.rxq = &rx_ring->xdp_rxq; in nfp_net_rx()
1911 xdp.data_hard_start = rxbuf->frag + NFP_NET_RX_BUF_HEADROOM; in nfp_net_rx()
1912 xdp.data = orig_data; in nfp_net_rx()
1913 xdp.data_meta = orig_data; in nfp_net_rx()
1914 xdp.data_end = orig_data + pkt_len; in nfp_net_rx()
1916 act = bpf_prog_run_xdp(xdp_prog, &xdp); in nfp_net_rx()
1918 pkt_len = xdp.data_end - xdp.data; in nfp_net_rx()
1919 pkt_off += xdp.data - orig_data; in nfp_net_rx()
1923 meta_len_xdp = xdp.data - xdp.data_meta; in nfp_net_rx()
3650 if (!xdp_attachment_flags_ok(&nn->xdp, bpf)) in nfp_net_xdp_setup_drv()
3655 xdp_attachment_setup(&nn->xdp, bpf); in nfp_net_xdp_setup_drv()
3673 xdp_attachment_setup(&nn->xdp, bpf); in nfp_net_xdp_setup_drv()
3692 static int nfp_net_xdp(struct net_device *netdev, struct netdev_bpf *xdp) in nfp_net_xdp() argument
3696 switch (xdp->command) { in nfp_net_xdp()
3698 return nfp_net_xdp_setup_drv(nn, xdp); in nfp_net_xdp()
3700 return nfp_net_xdp_setup_hw(nn, xdp); in nfp_net_xdp()
3702 return xdp_attachment_query(&nn->xdp, xdp); in nfp_net_xdp()
3704 return xdp_attachment_query(&nn->xdp_hw, xdp); in nfp_net_xdp()
3706 return nfp_app_bpf(nn->app, nn, xdp); in nfp_net_xdp()