Home
last modified time | relevance | path

Searched refs:xdp_rxq (Results 1 – 3 of 3) sorted by relevance

/net/core/
Dxdp.c135 void xdp_rxq_info_unreg_mem_model(struct xdp_rxq_info *xdp_rxq) in xdp_rxq_info_unreg_mem_model() argument
137 if (xdp_rxq->reg_state != REG_STATE_REGISTERED) { in xdp_rxq_info_unreg_mem_model()
142 xdp_unreg_mem_model(&xdp_rxq->mem); in xdp_rxq_info_unreg_mem_model()
146 void xdp_rxq_info_unreg(struct xdp_rxq_info *xdp_rxq) in xdp_rxq_info_unreg() argument
149 if (xdp_rxq->reg_state == REG_STATE_UNUSED) in xdp_rxq_info_unreg()
152 WARN(!(xdp_rxq->reg_state == REG_STATE_REGISTERED), "Driver BUG"); in xdp_rxq_info_unreg()
154 xdp_rxq_info_unreg_mem_model(xdp_rxq); in xdp_rxq_info_unreg()
156 xdp_rxq->reg_state = REG_STATE_UNREGISTERED; in xdp_rxq_info_unreg()
157 xdp_rxq->dev = NULL; in xdp_rxq_info_unreg()
161 static void xdp_rxq_info_init(struct xdp_rxq_info *xdp_rxq) in xdp_rxq_info_init() argument
[all …]
Ddev.c4754 xdp_init_buff(xdp, frame_sz, &rxqueue->xdp_rxq); in bpf_prog_run_generic_xdp()
10159 err = xdp_rxq_info_reg(&rx[i].xdp_rxq, dev, i, 0); in netif_alloc_rx_queues()
10168 xdp_rxq_info_unreg(&rx[i].xdp_rxq); in netif_alloc_rx_queues()
10183 xdp_rxq_info_unreg(&dev->_rx[i].xdp_rxq); in netif_free_rx_queues()
/net/bpf/
Dtest_run.c725 if (!xdp_rxq_info_is_reg(&rxqueue->xdp_rxq)) in xdp_convert_md_to_buff()
728 xdp->rxq = &rxqueue->xdp_rxq; in xdp_convert_md_to_buff()
798 &rxqueue->xdp_rxq); in bpf_prog_test_run_xdp()