• Home
  • Raw
  • Download

Lines Matching refs:xdp_rxq

135 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
163 memset(xdp_rxq, 0, sizeof(*xdp_rxq)); in xdp_rxq_info_init()
167 int xdp_rxq_info_reg(struct xdp_rxq_info *xdp_rxq, in xdp_rxq_info_reg() argument
170 if (xdp_rxq->reg_state == REG_STATE_UNUSED) { in xdp_rxq_info_reg()
175 if (xdp_rxq->reg_state == REG_STATE_REGISTERED) { in xdp_rxq_info_reg()
177 xdp_rxq_info_unreg(xdp_rxq); in xdp_rxq_info_reg()
186 xdp_rxq_info_init(xdp_rxq); in xdp_rxq_info_reg()
187 xdp_rxq->dev = dev; in xdp_rxq_info_reg()
188 xdp_rxq->queue_index = queue_index; in xdp_rxq_info_reg()
189 xdp_rxq->napi_id = napi_id; in xdp_rxq_info_reg()
191 xdp_rxq->reg_state = REG_STATE_REGISTERED; in xdp_rxq_info_reg()
196 void xdp_rxq_info_unused(struct xdp_rxq_info *xdp_rxq) in xdp_rxq_info_unused() argument
198 xdp_rxq->reg_state = REG_STATE_UNUSED; in xdp_rxq_info_unused()
202 bool xdp_rxq_info_is_reg(struct xdp_rxq_info *xdp_rxq) in xdp_rxq_info_is_reg() argument
204 return (xdp_rxq->reg_state == REG_STATE_REGISTERED); in xdp_rxq_info_is_reg()
348 int xdp_rxq_info_reg_mem_model(struct xdp_rxq_info *xdp_rxq, in xdp_rxq_info_reg_mem_model() argument
353 if (xdp_rxq->reg_state != REG_STATE_REGISTERED) { in xdp_rxq_info_reg_mem_model()
358 xdp_alloc = __xdp_reg_mem_model(&xdp_rxq->mem, type, allocator); in xdp_rxq_info_reg_mem_model()
363 trace_mem_connect(xdp_alloc, xdp_rxq); in xdp_rxq_info_reg_mem_model()