Lines Matching full:napi
152 static int hbg_napi_tx_recycle(struct napi_struct *napi, int budget) in hbg_napi_tx_recycle() argument
154 struct hbg_ring *ring = container_of(napi, struct hbg_ring, napi); in hbg_napi_tx_recycle()
165 * Per NAPI documentation budget is for Rx. in hbg_napi_tx_recycle()
166 * So We hardcode the amount of work Tx NAPI does to 128. in hbg_napi_tx_recycle()
192 napi_complete_done(napi, packet_done))) in hbg_napi_tx_recycle()
238 static int hbg_napi_rx_poll(struct napi_struct *napi, int budget) in hbg_napi_rx_poll() argument
240 struct hbg_ring *ring = container_of(napi, struct hbg_ring, napi); in hbg_napi_rx_poll()
268 napi_gro_receive(napi, buffer->skb); in hbg_napi_rx_poll()
278 napi_complete_done(napi, packet_done))) in hbg_napi_rx_poll()
292 napi_disable(&ring->napi); in hbg_ring_uninit()
293 netif_napi_del(&ring->napi); in hbg_ring_uninit()
341 netif_napi_add_tx(priv->netdev, &ring->napi, napi_poll); in hbg_ring_init()
343 netif_napi_add(priv->netdev, &ring->napi, napi_poll); in hbg_ring_init()
345 napi_enable(&ring->napi); in hbg_ring_init()