| /linux/io_uring/ |
| H A D | napi.c | 4 #include "napi.h" 37 /* napi approximating usecs, reverse busy_loop_current_time */ in net_to_ktime() 47 /* Non-NAPI IDs can be rejected. */ in __io_napi_add_id() 95 /* Non-NAPI IDs can be rejected. */ in __io_napi_del_id() 139 /* Uses an absolute deadline, so the napi loop can be re-entered */ in io_napi_busy_loop_timeout() 215 * A single NAPI is held by __napi_busy_loop() for the whole spin. It in io_napi_blocking_busy_loop() 234 * io_napi_init() - Init napi settings in io_napi_blocking_busy_loop() 237 * Init napi settings in the io-uring context. in io_napi_blocking_busy_loop() 251 * io_napi_free() - Deallocate napi in io_napi_init() 254 * Free the napi lis in io_napi_init() 278 io_napi_register_napi(struct io_ring_ctx * ctx,struct io_uring_napi * napi) io_napi_register_napi() argument 311 struct io_uring_napi napi; io_register_napi() local [all...] |
| /linux/tools/testing/selftests/drivers/net/ |
| H A D | napi_threaded.py | 5 Test napi threaded states. 15 napi = nl.napi_get({'id': napi_id}) 16 ksft_eq(napi['threaded'], 'enabled') 17 ksft_ne(napi.get('pid'), None) 21 napi = nl.napi_get({'id': napi_id}) 22 ksft_eq(napi['threaded'], 'disabled') 23 ksft_eq(napi.get('pid'), None) 44 Test that threaded state (in the persistent NAPI config) gets updated 45 even when NAPI with given ID is not allocated at the time. 56 for napi i [all...] |
| /linux/include/trace/events/ |
| H A D | napi.h | 3 #define TRACE_SYSTEM napi 16 TP_PROTO(struct napi_struct *napi, int work, int budget), 18 TP_ARGS(napi, work, budget), 21 __field( struct napi_struct *, napi) 22 __string( dev_name, napi->dev ? napi->dev->name : NO_DEV) 28 __entry->napi = napi; 34 TP_printk("napi poll on napi struc [all...] |
| /linux/net/core/ |
| H A D | dev.h | 254 * napi_get_defer_hard_irqs - get the NAPI's defer_hard_irqs 255 * @n: napi struct to get the defer_hard_irqs field from 257 * Return: the per-NAPI value of the defar_hard_irqs field. 265 * napi_set_defer_hard_irqs - set the defer_hard_irqs for a napi 284 struct napi_struct *napi; in netdev_set_defer_hard_irqs() 288 list_for_each_entry(napi, &netdev->napi_list, dev_list) 289 napi_set_defer_hard_irqs(napi, defer); 297 * @n: napi struct to get the gro_flush_timeout from 299 * Return: the per-NAPI value of the gro_flush_timeout field. 308 * napi_set_gro_flush_timeout - set the gro_flush_timeout for a napi in napi_set_gro_flush_timeout() 275 struct napi_struct *napi; netdev_set_defer_hard_irqs() local 321 struct napi_struct *napi; netdev_set_gro_flush_timeout() local 387 xdp_do_check_flushed(struct napi_struct * napi) xdp_do_check_flushed() argument 391 napi_assert_will_not_race(const struct napi_struct * napi) napi_assert_will_not_race() argument [all...] |
| H A D | gro_cells.c | 10 struct napi_struct napi; member 49 napi_schedule(&cell->napi); in gro_cells_receive() 62 static int gro_cell_poll(struct napi_struct *napi, int budget) in gro_cell_poll() 64 struct gro_cell *cell = container_of(napi, struct gro_cell, napi); in gro_cell_poll() 74 napi_gro_receive(napi, skb); in gro_cell_poll() 79 napi_complete_done(napi, work_done); 97 set_bit(NAPI_STATE_NO_BUSY_POLL, &cell->napi.state); in gro_cells_init() 98 set_bit(NAPI_STATE_PERCPU, &cell->napi.state); in gro_cells_init() 100 netif_napi_add(dev, &cell->napi, gro_cell_pol in gro_cells_init() 59 gro_cell_poll(struct napi_struct * napi,int budget) gro_cell_poll() argument [all...] |
| H A D | netpoll.c | 36 #include <trace/events/napi.h> 145 static void poll_one_napi(struct napi_struct *napi) in poll_one_napi() 150 * that indicates that napi has been disabled and we need in poll_one_napi() 153 if (test_and_set_bit(NAPI_STATE_NPSVC, &napi->state)) in poll_one_napi() 159 work = napi->poll(napi, 0); in poll_napi() local 160 WARN_ONCE(work, "%pS exceeded budget in poll\n", napi->poll); in poll_napi() 161 trace_napi_poll(napi, work, 0); in poll_napi() 163 clear_bit(NAPI_STATE_NPSVC, &napi->state); in poll_napi() 168 struct napi_struct *napi; in poll_napi() 136 poll_one_napi(struct napi_struct * napi) poll_one_napi() argument 252 struct napi_struct *napi; netpoll_owner_active() local [all...] |
| H A D | netdev-genl.c | 163 netdev_nl_napi_fill_one(struct sk_buff *rsp, struct napi_struct *napi, in netdev_nl_napi_fill_one() argument 172 if (!napi->dev->up) in netdev_nl_napi_fill_one() 179 if (nla_put_u32(rsp, NETDEV_A_NAPI_ID, napi->napi_id)) in netdev_nl_napi_fill_one() 182 if (nla_put_u32(rsp, NETDEV_A_NAPI_IFINDEX, napi->dev->ifindex)) in netdev_nl_napi_fill_one() 185 if (napi->irq >= 0 && nla_put_u32(rsp, NETDEV_A_NAPI_IRQ, napi->irq)) in netdev_nl_napi_fill_one() 189 napi_get_threaded(napi))) in netdev_nl_napi_fill_one() 192 if (napi->thread) { in netdev_nl_napi_fill_one() 193 pid = task_pid_nr_ns(napi->thread, in netdev_nl_napi_fill_one() 199 napi_defer_hard_irqs = napi_get_defer_hard_irqs(napi); in netdev_nl_napi_fill_one() 225 struct napi_struct *napi; netdev_nl_napi_get_doit() local 267 struct napi_struct *napi; netdev_nl_napi_dump_one() local 327 netdev_nl_napi_set_config(struct napi_struct * napi,struct genl_info * info) netdev_nl_napi_set_config() argument 363 struct napi_struct *napi; netdev_nl_napi_set_doit() local 384 nla_put_napi_id(struct sk_buff * skb,const struct napi_struct * napi) nla_put_napi_id() argument [all...] |
| H A D | dev.c | 138 #include <trace/events/napi.h> 471 * (e.g. NAPI context). 857 struct napi_struct *napi; 859 hlist_for_each_entry_rcu(napi, &napi_hash[hash], napi_hash_node) in netdev_napi_by_id_lock() 860 if (napi->napi_id == napi_id) in netdev_napi_by_id_lock() local 861 return napi; in netdev_napi_by_id_lock() 870 struct napi_struct *napi; in netdev_napi_by_id_lock() 872 napi = napi_by_id(napi_id); in netdev_napi_by_id_lock() 873 if (!napi) in netdev_napi_by_id_lock() 876 if (WARN_ON_ONCE(!napi in netdev_napi_by_id_lock() 819 struct napi_struct *napi; napi_by_id() local 832 struct napi_struct *napi; netdev_napi_by_id() local 1065 struct napi_struct *napi; dev_get_by_napi_id() local 5046 ____napi_schedule(struct softnet_data * sd,struct napi_struct * napi) ____napi_schedule() argument 6739 process_backlog(struct napi_struct * napi,int quota) process_backlog() argument 6975 busy_poll_stop(struct napi_struct * napi,void * have_poll_lock,unsigned flags,u16 budget) busy_poll_stop() argument 7040 struct napi_struct *napi; __napi_busy_loop() local 7142 struct napi_struct *napi; napi_suspend_irqs() local 7158 struct napi_struct *napi; napi_resume_irqs() local 7179 __napi_hash_add_with_id(struct napi_struct * napi,unsigned int napi_id) __napi_hash_add_with_id() argument 7189 napi_hash_add_with_id(struct napi_struct * napi,unsigned int napi_id) napi_hash_add_with_id() argument 7200 napi_hash_add(struct napi_struct * napi) napi_hash_add() argument 7223 napi_hash_del(struct napi_struct * napi) napi_hash_del() argument 7236 struct napi_struct *napi; napi_watchdog() local 7252 napi_stop_kthread(struct napi_struct * napi) napi_stop_kthread() argument 7290 napi_set_threaded_state(struct napi_struct * napi,enum netdev_napi_threaded threaded_mode) napi_set_threaded_state() argument 7300 napi_set_threaded(struct napi_struct * napi,enum netdev_napi_threaded threaded) napi_set_threaded() argument 7335 struct napi_struct *napi; netif_set_threaded() local 7394 netif_queue_set_napi(struct net_device * dev,unsigned int queue_index,enum netdev_queue_type type,struct napi_struct * napi) netif_queue_set_napi() argument 7422 struct napi_struct *napi = netif_napi_irq_notify() local 7445 struct napi_struct *napi = netif_napi_affinity_release() local 7518 netif_napi_set_irq_locked(struct napi_struct * napi,int irq) netif_napi_set_irq_locked() argument 7612 netif_napi_dev_list_add(struct net_device * dev,struct napi_struct * napi) netif_napi_dev_list_add() argument 7644 napi_get_frags_check(struct napi_struct * napi) napi_get_frags_check() argument 7656 netif_napi_add_weight_locked(struct net_device * dev,struct napi_struct * napi,int (* poll)(struct napi_struct *,int),int weight) netif_napi_add_weight_locked() argument 7786 __netif_napi_del_locked(struct napi_struct * napi) __netif_napi_del_locked() argument 7908 napi_thread_wait(struct napi_struct * napi) napi_thread_wait() argument 7932 napi_threaded_poll_loop(struct napi_struct * napi,unsigned long * busy_poll_last_qs) napi_threaded_poll_loop() argument 7986 struct napi_struct *napi = data; napi_threaded_poll() local 12974 struct napi_struct *napi = list_first_entry(&oldsd->poll_list, dev_cpu_dead() local 13451 struct napi_struct *napi = &sd->backlog; backlog_napi_should_run() local 13466 struct napi_struct *napi = &sd->backlog; backlog_napi_setup() local [all...] |
| H A D | gro.c | 490 /* Do not adjust napi->gro_hash[].count, caller is adding a new in dev_gro_receive() 680 static void napi_reuse_skb(struct napi_struct *napi, struct sk_buff *skb) in napi_reuse_skb() 692 skb->dev = napi->dev; in napi_get_frags() 713 napi->skb = skb; in napi_frags_finish() 716 struct sk_buff *napi_get_frags(struct napi_struct *napi) in napi_frags_finish() 718 struct sk_buff *skb = napi->skb; in napi_frags_finish() 721 skb = napi_alloc_skb(napi, GRO_MAX_HEAD); in napi_frags_finish() 723 napi->skb = skb; in napi_frags_finish() 724 skb_mark_napi_id(skb, napi); in napi_frags_finish() 731 static gro_result_t napi_frags_finish(struct napi_struct *napi, in napi_frags_finish() 654 napi_reuse_skb(struct napi_struct * napi,struct sk_buff * skb) napi_reuse_skb() argument 690 napi_get_frags(struct napi_struct * napi) napi_get_frags() argument 705 napi_frags_finish(struct napi_struct * napi,struct sk_buff * skb,gro_result_t ret) napi_frags_finish() argument 737 napi_frags_skb(struct napi_struct * napi) napi_frags_skb() argument 777 napi_gro_frags(struct napi_struct * napi) napi_gro_frags() argument [all...] |
| /linux/drivers/net/ethernet/intel/igc/ |
| H A D | igc_xdp.c | 32 napi_disable(&adapter->rx_ring[i]->q_vector->napi); in igc_xdp_set_prog() 47 napi_enable(&adapter->rx_ring[i]->q_vector->napi); in igc_xdp_set_prog() 62 struct napi_struct *napi; in igc_xdp_enable_pool() local 91 /* Rx and Tx rings share the same napi context. */ in igc_xdp_enable_pool() 92 napi = &rx_ring->q_vector->napi; in igc_xdp_enable_pool() 97 napi_disable(napi); in igc_xdp_enable_pool() 104 napi_enable(napi); in igc_xdp_enable_pool() 122 struct napi_struct *napi; in igc_xdp_disable_pool() local 137 /* Rx and Tx rings share the same napi context. */ in igc_xdp_disable_pool() 138 napi = &rx_ring->q_vector->napi; in igc_xdp_disable_pool() [all …]
|
| /linux/Documentation/netlink/specs/ |
| H A D | netdev.yaml | 47 support in the driver napi callback. 97 name: napi-threaded 169 name: napi-id 170 doc: Id of NAPI using this Page Pool instance. 264 name: napi 268 doc: ifindex of the netdevice to which NAPI instance belongs. 274 doc: ID of the NAPI instance. 278 doc: The associated interrupt vector number for the napi 282 doc: PID of the napi thread, if NAPI i [all...] |
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | ipoib_rx.c | 22 static struct sk_buff *prepare_frag_skb(struct napi_struct *napi, int size) in prepare_frag_skb() argument 33 return napi_alloc_skb(napi, size); in prepare_frag_skb() 49 struct napi_struct *napi = &rxq->napi; in hfi1_ipoib_prepare_skb() local 55 * napi cache. Otherwise we will try to use napi frag cache. in hfi1_ipoib_prepare_skb() 58 skb = napi_alloc_skb(napi, skb_size); in hfi1_ipoib_prepare_skb() 60 skb = prepare_frag_skb(napi, skb_size); in hfi1_ipoib_prepare_skb()
|
| /linux/drivers/net/wireless/ath/wil6210/ |
| H A D | netdev.c | 91 static int wil6210_netdev_poll_rx(struct napi_struct *napi, int budget) in wil6210_netdev_poll_rx() argument 93 struct wil6210_priv *wil = container_of(napi, struct wil6210_priv, in wil6210_netdev_poll_rx() 102 napi_complete_done(napi, done); in wil6210_netdev_poll_rx() 104 wil_dbg_txrx(wil, "NAPI RX complete\n"); in wil6210_netdev_poll_rx() 107 wil_dbg_txrx(wil, "NAPI RX poll(%d) done %d\n", budget, done); in wil6210_netdev_poll_rx() 112 static int wil6210_netdev_poll_rx_edma(struct napi_struct *napi, int budget) in wil6210_netdev_poll_rx_edma() argument 114 struct wil6210_priv *wil = container_of(napi, struct wil6210_priv, in wil6210_netdev_poll_rx_edma() 123 napi_complete_done(napi, done); in wil6210_netdev_poll_rx_edma() 125 wil_dbg_txrx(wil, "NAPI RX complete\n"); in wil6210_netdev_poll_rx_edma() 128 wil_dbg_txrx(wil, "NAPI RX poll(%d) done %d\n", budget, done); in wil6210_netdev_poll_rx_edma() [all …]
|
| /linux/drivers/net/netdevsim/ |
| H A D | netdev.c | 48 idx = rq->napi.index; in nsim_start_peer_tx_queue() 375 struct net_device *dev = rq->napi.dev; in nsim_rcv() 406 napi_gro_receive(&rq->napi, skb); in nsim_poll() 413 static int nsim_poll(struct napi_struct *napi, int budget) in nsim_poll() 415 struct nsim_rq *rq = container_of(napi, struct nsim_rq, napi); in nsim_poll() 420 napi_complete_done(napi, done); in nsim_create_page_pool() 425 static int nsim_create_page_pool(struct page_pool **p, struct napi_struct *napi) in nsim_create_page_pool() 431 .dev = &napi->dev->dev, in nsim_create_page_pool() 432 .napi in nsim_create_page_pool() 405 nsim_poll(struct napi_struct * napi,int budget) nsim_poll() argument 417 nsim_create_page_pool(struct page_pool ** p,struct napi_struct * napi) nsim_create_page_pool() argument [all...] |
| /linux/include/linux/ |
| H A D | netpoll.h | 69 static inline void *netpoll_poll_lock(struct napi_struct *napi) 71 struct net_device *dev = napi->dev; 76 while (cmpxchg(&napi->poll_owner, -1, owner) != -1) in netpoll_poll_lock() 79 return napi; in netpoll_poll_lock() 86 struct napi_struct *napi = have; in netpoll_poll_lock() 88 if (napi) 89 smp_store_release(&napi->poll_owner, -1); in netpoll_poll_unlock() 98 static inline void *netpoll_poll_lock(struct napi_struct *napi) in netpoll_tx_running() 74 netpoll_poll_lock(struct napi_struct * napi) netpoll_poll_lock() argument 91 struct napi_struct *napi = have; netpoll_poll_unlock() local 103 netpoll_poll_lock(struct napi_struct * napi) netpoll_poll_lock() argument
|
| /linux/drivers/net/ethernet/synopsys/ |
| H A D | dwc-xlgmac-net.c | 283 * enabled before using the private data napi structure. in xlgmac_isr() 290 if (napi_schedule_prep(&pdata->napi)) { in xlgmac_isr() 296 __napi_schedule_irqoff(&pdata->napi); in xlgmac_isr() 348 * channel napi structure and not the private data napi structure in xlgmac_dma_isr() 350 if (napi_schedule_prep(&channel->napi)) { in xlgmac_dma_isr() 355 __napi_schedule_irqoff(&channel->napi); in xlgmac_dma_isr() 366 struct napi_struct *napi; in xlgmac_tx_timer() local 368 napi = (pdata->per_channel_irq) ? &channel->napi : &pdata->napi; in xlgmac_tx_timer() 370 if (napi_schedule_prep(napi)) { in xlgmac_tx_timer() 379 __napi_schedule(napi); in xlgmac_tx_timer() [all …]
|
| /linux/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_txrx.c | 632 txq = txring_txq(nv->napi.dev, ring); in fbnic_clean_twq0() 724 netdev_err(nv->napi.dev, in fbnic_clean_tsq() 736 fbn = netdev_priv(nv->napi.dev); in fbnic_clean_tsq() 774 /* sub0 is always fed system pages, from the NAPI-level page_pool */ in fbnic_page_pool_get_head() 1065 netdev_err_once(nv->napi.dev, in fbnic_put_pkt_buff() 1195 struct fbnic_net *fbn = netdev_priv(nv->napi.dev); in fbnic_run_xdp() 1215 bpf_warn_invalid_xdp_action(nv->napi.dev, xdp_prog, act); in fbnic_rx_tstamp() 1218 trace_xdp_exception(nv->napi.dev, xdp_prog, act); in fbnic_rx_tstamp() 1243 fbn = netdev_priv(nv->napi.dev); in fbnic_populate_skb_fields() 1256 struct net_device *netdev = nv->napi in fbnic_clean_rcq() 1396 fbnic_poll(struct napi_struct * napi,int budget) fbnic_poll() argument 2863 struct napi_struct *napi = __netif_get_rx_queue(dev, idx)->napi; fbnic_rxq_nv() local [all...] |
| /linux/drivers/net/ethernet/aquantia/atlantic/ |
| H A D | aq_vec.c | 21 struct napi_struct napi; member 28 static int aq_vec_poll(struct napi_struct *napi, int budget) in aq_vec_poll() argument 30 struct aq_vec_s *self = container_of(napi, struct aq_vec_s, napi); in aq_vec_poll() 68 napi, in aq_vec_poll() 93 napi_complete_done(napi, work_done); in aq_vec_poll() 122 netif_napi_add(aq_nic_get_ndev(aq_nic), &self->napi, aq_vec_poll); in aq_vec_alloc() 151 self->napi.napi_id) < 0) { in aq_vec_ring_alloc() 245 napi_enable(&self->napi); in aq_vec_start() 265 napi_disable(&self->napi); in aq_vec_stop() 290 netif_napi_del(&self->napi); in aq_vec_free() [all …]
|
| /linux/drivers/net/ethernet/huawei/hinic3/ |
| H A D | hinic3_irq.c | 31 static int hinic3_poll(struct napi_struct *napi, int budget) in hinic3_poll() argument 34 container_of(napi, struct hinic3_irq_cfg, napi); in hinic3_poll() 52 if (likely(napi_complete_done(napi, work_done))) { in hinic3_poll() 65 netif_napi_add(nic_dev->netdev, &irq_cfg->napi, hinic3_poll); in qp_add_napi() 66 napi_enable(&irq_cfg->napi); in qp_add_napi() 71 napi_disable(&irq_cfg->napi); in qp_del_napi() 72 netif_napi_del(&irq_cfg->napi); in qp_del_napi() 86 napi_schedule(&irq_cfg->napi); in qp_irq() 235 NETDEV_QUEUE_TYPE_RX, &irq_cfg->napi); in hinic3_qps_irq_init() 237 NETDEV_QUEUE_TYPE_TX, &irq_cfg->napi); in hinic3_qps_irq_init()
|
| /linux/tools/testing/selftests/net/ |
| H A D | nl_netdev.py | 53 Test that verifies various cases of napi threaded 54 set and unset at napi and device level. 67 # set napi threaded and verify 81 # verify if napi threaded is still set 91 # unset napi threaded and verify 100 # check napi threaded is set for both napis 111 # check napi threaded is unset for both napis 119 # set napi threaded for napi0 128 # check napi threaded is unset for both napis 138 Test that verifies various cases of napi threade [all...] |
| /linux/drivers/net/ethernet/intel/libeth/ |
| H A D | xsk.c | 126 * current NAPI poll when there are no free buffers left. 202 * @napi: NAPI corresponding to this queue 208 void libeth_xsk_init_wakeup(call_single_data_t *csd, struct napi_struct *napi) in libeth_xsk_init_wakeup() argument 210 INIT_CSD(csd, libeth_xsk_napi_sched, napi); in libeth_xsk_init_wakeup() 219 * Try to mark the NAPI as missed first, so that it could be rescheduled. 225 struct napi_struct *napi = csd->info; in libeth_xsk_wakeup() local 227 if (napi_if_scheduled_mark_missed(napi) || in libeth_xsk_wakeup() 228 unlikely(!napi_schedule_prep(napi))) in libeth_xsk_wakeup() 237 __napi_schedule(napi); in libeth_xsk_wakeup()
|
| /linux/drivers/net/ethernet/google/gve/ |
| H A D | gve_utils.c | 67 struct sk_buff *gve_rx_copy_data(struct net_device *dev, struct napi_struct *napi, in gve_rx_copy_data() argument 72 skb = napi_alloc_skb(napi, len); in gve_rx_copy_data() 83 struct sk_buff *gve_rx_copy(struct net_device *dev, struct napi_struct *napi, in gve_rx_copy() argument 89 return gve_rx_copy_data(dev, napi, va, len); in gve_rx_copy() 109 netif_napi_add_locked(priv->dev, &block->napi, gve_poll); in gve_add_napi() 110 netif_napi_set_irq_locked(&block->napi, block->irq); in gve_add_napi() 121 netif_napi_del_locked(&block->napi); in gve_remove_napi()
|
| /linux/drivers/net/wireless/ath/ath12k/wifi7/ |
| H A D | dp.c | 23 struct napi_struct *napi = &irq_grp->napi; in ath12k_wifi7_dp_service_srng() local 37 work_done = ath12k_wifi7_dp_rx_process_err(dp, napi, budget); in ath12k_wifi7_dp_service_srng() 45 work_done = ath12k_wifi7_dp_rx_process_wbm_err(dp, napi, budget); in ath12k_wifi7_dp_service_srng() 55 work_done = ath12k_wifi7_dp_rx_process(dp, i, napi, budget); in ath12k_wifi7_dp_service_srng() 70 ath12k_wifi7_dp_mon_process_ring(dp, id, napi, in ath12k_wifi7_dp_service_srng() 91 ath12k_wifi7_dp_mon_process_ring(dp, id, napi, in ath12k_wifi7_dp_service_srng() 114 napi, budget, in ath12k_wifi7_dp_service_srng()
|
| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| H A D | qlcnic_io.c | 959 static int qlcnic_poll(struct napi_struct *napi, int budget) in qlcnic_poll() argument 966 sds_ring = container_of(napi, struct qlcnic_host_sds_ring, napi); in qlcnic_poll() 979 napi_complete_done(&sds_ring->napi, work_done); in qlcnic_poll() 989 static int qlcnic_tx_poll(struct napi_struct *napi, int budget) in qlcnic_tx_poll() argument 995 tx_ring = container_of(napi, struct qlcnic_host_tx_ring, napi); in qlcnic_tx_poll() 1000 napi_complete(&tx_ring->napi); in qlcnic_tx_poll() 1011 static int qlcnic_rx_poll(struct napi_struct *napi, int budget) in qlcnic_rx_poll() argument 1017 sds_ring = container_of(napi, struct qlcnic_host_sds_ring, napi); in qlcnic_rx_poll() 1023 napi_complete_done(&sds_ring->napi, work_done); in qlcnic_rx_poll() 1248 napi_gro_receive(&sds_ring->napi, skb); in qlcnic_process_rcv() [all …]
|
| /linux/drivers/net/ethernet/hisilicon/hibmcge/ |
| H A D | hbg_txrx.c | 194 static int hbg_napi_tx_recycle(struct napi_struct *napi, int budget) in hbg_napi_tx_recycle() argument 196 struct hbg_ring *ring = container_of(napi, struct hbg_ring, napi); in hbg_napi_tx_recycle() 207 * Per NAPI documentation budget is for Rx. in hbg_napi_tx_recycle() 208 * So We hardcode the amount of work Tx NAPI does to 128. in hbg_napi_tx_recycle() 234 napi_complete_done(napi, packet_done))) in hbg_napi_tx_recycle() 482 static int hbg_napi_rx_poll(struct napi_struct *napi, int budget) in hbg_napi_rx_poll() argument 484 struct hbg_ring *ring = container_of(napi, struct hbg_ring, napi); in hbg_napi_rx_poll() 521 napi_gro_receive(napi, buffe in hbg_napi_rx_poll() [all...] |