Home
last modified time | relevance | path

Searched refs:napi_id (Results 1 – 25 of 27) sorted by relevance

12

/linux/include/net/
A Dbusy_poll.h46 void napi_busy_loop(unsigned int napi_id,
107 unsigned int napi_id = READ_ONCE(sk->sk_napi_id); in sk_busy_loop() local
109 if (napi_id >= MIN_NAPI_ID) in sk_busy_loop()
124 if (skb->napi_id < MIN_NAPI_ID) in skb_mark_napi_id()
125 skb->napi_id = napi->napi_id; in skb_mark_napi_id()
133 if (unlikely(READ_ONCE(sk->sk_napi_id) != skb->napi_id)) in sk_mark_napi_id()
134 WRITE_ONCE(sk->sk_napi_id, skb->napi_id); in sk_mark_napi_id()
147 WRITE_ONCE(sk->sk_napi_id, skb->napi_id); in sk_mark_napi_id_set()
156 WRITE_ONCE(sk->sk_napi_id, napi_id); in __sk_mark_napi_id_once()
165 __sk_mark_napi_id_once(sk, skb->napi_id); in sk_mark_napi_id_once()
[all …]
A Dxdp.h62 unsigned int napi_id; member
256 struct net_device *dev, u32 queue_index, unsigned int napi_id);
/linux/include/trace/events/
A Dnet.h172 __field( unsigned int, napi_id )
195 __entry->napi_id = skb->napi_id;
197 __entry->napi_id = 0;
219 __get_str(name), __entry->napi_id, __entry->queue_mapping,
/linux/fs/
A Deventpoll.c222 unsigned int napi_id; member
394 unsigned int napi_id = READ_ONCE(ep->napi_id); in ep_busy_loop() local
396 if ((napi_id >= MIN_NAPI_ID) && net_busy_loop_on()) { in ep_busy_loop()
397 napi_busy_loop(napi_id, nonblock ? NULL : ep_busy_loop_end, ep, false, in ep_busy_loop()
406 ep->napi_id = 0; in ep_busy_loop()
418 unsigned int napi_id; in ep_set_busy_poll_napi_id() local
433 napi_id = READ_ONCE(sk->sk_napi_id); in ep_set_busy_poll_napi_id()
440 if (napi_id < MIN_NAPI_ID || napi_id == ep->napi_id) in ep_set_busy_poll_napi_id()
444 ep->napi_id = napi_id; in ep_set_busy_poll_napi_id()
/linux/tools/testing/selftests/bpf/verifier/
A Dcgroup_skb.c71 offsetof(struct __sk_buff, napi_id)),
163 offsetof(struct __sk_buff, napi_id)),
165 offsetof(struct __sk_buff, napi_id)),
A Dctx_skb.c26 offsetof(struct __sk_buff, napi_id)),
/linux/net/core/
A Dxdp.c160 struct net_device *dev, u32 queue_index, unsigned int napi_id) in xdp_rxq_info_reg() argument
181 xdp_rxq->napi_id = napi_id; in xdp_rxq_info_reg()
A Ddev.c173 static struct napi_struct *napi_by_id(unsigned int napi_id);
929 struct net_device *dev_get_by_napi_id(unsigned int napi_id) in dev_get_by_napi_id() argument
935 if (napi_id < MIN_NAPI_ID) in dev_get_by_napi_id()
938 napi = napi_by_id(napi_id); in dev_get_by_napi_id()
1448 n->dev->name, n->napi_id); in napi_kthread_create()
6631 unsigned int hash = napi_id % HASH_SIZE(napi_hash); in napi_by_id()
6635 if (napi->napi_id == napi_id) in napi_by_id()
6707 void napi_busy_loop(unsigned int napi_id, in napi_busy_loop() argument
6721 napi = napi_by_id(napi_id); in napi_busy_loop()
6798 napi->napi_id = napi_gen_id; in napi_hash_add()
[all …]
A Dfilter.c8737 case offsetof(struct __sk_buff, napi_id): in bpf_convert_ctx_access()
8740 bpf_target_off(struct sk_buff, napi_id, 4, in bpf_convert_ctx_access()
/linux/drivers/staging/octeon/
A Dethernet-rx.c48 static irqreturn_t cvm_oct_do_interrupt(int irq, void *napi_id) in cvm_oct_do_interrupt() argument
52 napi_schedule(napi_id); in cvm_oct_do_interrupt()
/linux/drivers/net/ethernet/intel/ice/
A Dice_base.c505 ring->q_index, ring->q_vector->napi.napi_id); in ice_vsi_cfg_rxq()
532 ring->q_index, ring->q_vector->napi.napi_id); in ice_vsi_cfg_rxq()
A Dice_txrx.c510 rx_ring->q_index, rx_ring->q_vector->napi.napi_id)) in ice_setup_rx_ring()
/linux/drivers/net/ethernet/stmicro/stmmac/
A Dstmmac_main.c2008 unsigned int napi_id; in __alloc_dma_rx_desc_resources() local
2058 napi_id = ch->rxtx_napi.napi_id; in __alloc_dma_rx_desc_resources()
2060 napi_id = ch->rx_napi.napi_id; in __alloc_dma_rx_desc_resources()
2064 napi_id); in __alloc_dma_rx_desc_resources()
/linux/tools/include/uapi/linux/
A Dbpf.h5333 __u32 napi_id; member
/linux/include/uapi/linux/
A Dbpf.h5333 __u32 napi_id; member
/linux/drivers/net/ethernet/sfc/
A Defx_channels.c614 channel->napi_str.napi_id = 0; in efx_copy_channel()
/linux/include/linux/
A Dskbuff.h905 unsigned int napi_id; member
1061 return skb->napi_id; in skb_napi_id()
A Dnetdevice.h342 unsigned int napi_id; member
3005 struct net_device *dev_get_by_napi_id(unsigned int napi_id);
/linux/drivers/net/
A Dveth.c1014 err = xdp_rxq_info_reg(&rq->xdp_rxq, dev, i, rq->xdp_napi.napi_id); in veth_enable_xdp_range()
A Dvirtio_net.c1583 err = xdp_rxq_info_reg(&vi->rq[i].xdp_rxq, dev, i, vi->rq[i].napi.napi_id); in virtnet_open()
/linux/drivers/net/ethernet/socionext/
A Dnetsec.c1315 err = xdp_rxq_info_reg(&dring->xdp_rxq, priv->ndev, 0, priv->napi.napi_id); in netsec_setup_rx_dring()
/linux/drivers/net/ethernet/sfc/falcon/
A Defx.c473 channel->napi_str.napi_id = 0; in ef4_copy_channel()
/linux/drivers/net/ethernet/intel/i40e/
A Di40e_txrx.c1604 rx_ring->queue_index, rx_ring->q_vector->napi.napi_id); in i40e_setup_rx_descriptors()
/linux/drivers/net/ethernet/netronome/nfp/
A Dnfp_net_common.c2570 rx_ring->idx, rx_ring->r_vec->napi.napi_id); in nfp_net_rx_ring_alloc()
/linux/drivers/net/ethernet/intel/igc/
A Digc_main.c509 rx_ring->q_vector->napi.napi_id); in igc_setup_rx_resources()

Completed in 200 milliseconds

12