Lines Matching refs:napi
161 netdev_nl_napi_fill_one(struct sk_buff *rsp, struct napi_struct *napi, in netdev_nl_napi_fill_one() argument
167 if (WARN_ON_ONCE(!napi->dev)) in netdev_nl_napi_fill_one()
169 if (!(napi->dev->flags & IFF_UP)) in netdev_nl_napi_fill_one()
176 if (napi->napi_id >= MIN_NAPI_ID && in netdev_nl_napi_fill_one()
177 nla_put_u32(rsp, NETDEV_A_NAPI_ID, napi->napi_id)) in netdev_nl_napi_fill_one()
180 if (nla_put_u32(rsp, NETDEV_A_NAPI_IFINDEX, napi->dev->ifindex)) in netdev_nl_napi_fill_one()
183 if (napi->irq >= 0 && nla_put_u32(rsp, NETDEV_A_NAPI_IRQ, napi->irq)) in netdev_nl_napi_fill_one()
186 if (napi->thread) { in netdev_nl_napi_fill_one()
187 pid = task_pid_nr(napi->thread); in netdev_nl_napi_fill_one()
203 struct napi_struct *napi; in netdev_nl_napi_get_doit() local
219 napi = napi_by_id(napi_id); in netdev_nl_napi_get_doit()
220 if (napi) { in netdev_nl_napi_get_doit()
221 err = netdev_nl_napi_fill_one(rsp, napi, info); in netdev_nl_napi_get_doit()
244 struct napi_struct *napi; in netdev_nl_napi_dump_one() local
250 list_for_each_entry(napi, &netdev->napi_list, dev_list) { in netdev_nl_napi_dump_one()
251 if (ctx->napi_id && napi->napi_id >= ctx->napi_id) in netdev_nl_napi_dump_one()
254 err = netdev_nl_napi_fill_one(rsp, napi, info); in netdev_nl_napi_dump_one()
257 ctx->napi_id = napi->napi_id; in netdev_nl_napi_dump_one()
315 if (rxq->napi && nla_put_u32(rsp, NETDEV_A_QUEUE_NAPI_ID, in netdev_nl_queue_fill_one()
316 rxq->napi->napi_id)) in netdev_nl_queue_fill_one()
327 if (txq->napi && nla_put_u32(rsp, NETDEV_A_QUEUE_NAPI_ID, in netdev_nl_queue_fill_one()
328 txq->napi->napi_id)) in netdev_nl_queue_fill_one()