• Home
  • Raw
  • Download

Lines Matching refs:xdp

866 static u32 netsec_xdp_xmit_back(struct netsec_priv *priv, struct xdp_buff *xdp)  in netsec_xdp_xmit_back()  argument
869 struct xdp_frame *xdpf = convert_to_xdp_frame(xdp); in netsec_xdp_xmit_back()
883 struct xdp_buff *xdp) in netsec_run_xdp() argument
889 act = bpf_prog_run_xdp(prog, xdp); in netsec_run_xdp()
896 ret = netsec_xdp_xmit_back(priv, xdp); in netsec_run_xdp()
898 xdp_return_buff(xdp); in netsec_run_xdp()
901 err = xdp_do_redirect(priv->ndev, xdp, prog); in netsec_run_xdp()
906 xdp_return_buff(xdp); in netsec_run_xdp()
917 xdp_return_buff(xdp); in netsec_run_xdp()
948 struct xdp_buff xdp; in netsec_process_rx() local
993 xdp.data_hard_start = desc->addr; in netsec_process_rx()
994 xdp.data = desc->addr + NETSEC_RXBUF_HEADROOM; in netsec_process_rx()
995 xdp_set_data_meta_invalid(&xdp); in netsec_process_rx()
996 xdp.data_end = xdp.data + pkt_len; in netsec_process_rx()
997 xdp.rxq = &dring->xdp_rxq; in netsec_process_rx()
1000 xdp_result = netsec_run_xdp(priv, xdp_prog, &xdp); in netsec_process_rx()
1023 skb_reserve(skb, xdp.data - xdp.data_hard_start); in netsec_process_rx()
1024 skb_put(skb, xdp.data_end - xdp.data); in netsec_process_rx()
1035 ndev->stats.rx_bytes += xdp.data_end - xdp.data; in netsec_process_rx()
1799 static int netsec_xdp(struct net_device *ndev, struct netdev_bpf *xdp) in netsec_xdp() argument
1803 switch (xdp->command) { in netsec_xdp()
1805 return netsec_xdp_setup(priv, xdp->prog, xdp->extack); in netsec_xdp()
1807 xdp->prog_id = priv->xdp_prog ? priv->xdp_prog->aux->id : 0; in netsec_xdp()