/linux/include/net/ |
A D | busy_poll.h | 46 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 D | xdp.h | 62 unsigned int napi_id; member 256 struct net_device *dev, u32 queue_index, unsigned int napi_id);
|
/linux/include/trace/events/ |
A D | net.h | 172 __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 D | eventpoll.c | 222 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 D | cgroup_skb.c | 71 offsetof(struct __sk_buff, napi_id)), 163 offsetof(struct __sk_buff, napi_id)), 165 offsetof(struct __sk_buff, napi_id)),
|
A D | ctx_skb.c | 26 offsetof(struct __sk_buff, napi_id)),
|
/linux/net/core/ |
A D | xdp.c | 160 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 D | dev.c | 173 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 D | filter.c | 8737 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 D | ethernet-rx.c | 48 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 D | ice_base.c | 505 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 D | ice_txrx.c | 510 rx_ring->q_index, rx_ring->q_vector->napi.napi_id)) in ice_setup_rx_ring()
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
A D | stmmac_main.c | 2008 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 D | bpf.h | 5333 __u32 napi_id; member
|
/linux/include/uapi/linux/ |
A D | bpf.h | 5333 __u32 napi_id; member
|
/linux/drivers/net/ethernet/sfc/ |
A D | efx_channels.c | 614 channel->napi_str.napi_id = 0; in efx_copy_channel()
|
/linux/include/linux/ |
A D | skbuff.h | 905 unsigned int napi_id; member 1061 return skb->napi_id; in skb_napi_id()
|
A D | netdevice.h | 342 unsigned int napi_id; member 3005 struct net_device *dev_get_by_napi_id(unsigned int napi_id);
|
/linux/drivers/net/ |
A D | veth.c | 1014 err = xdp_rxq_info_reg(&rq->xdp_rxq, dev, i, rq->xdp_napi.napi_id); in veth_enable_xdp_range()
|
A D | virtio_net.c | 1583 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 D | netsec.c | 1315 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 D | efx.c | 473 channel->napi_str.napi_id = 0; in ef4_copy_channel()
|
/linux/drivers/net/ethernet/intel/i40e/ |
A D | i40e_txrx.c | 1604 rx_ring->queue_index, rx_ring->q_vector->napi.napi_id); in i40e_setup_rx_descriptors()
|
/linux/drivers/net/ethernet/netronome/nfp/ |
A D | nfp_net_common.c | 2570 rx_ring->idx, rx_ring->r_vec->napi.napi_id); in nfp_net_rx_ring_alloc()
|
/linux/drivers/net/ethernet/intel/igc/ |
A D | igc_main.c | 509 rx_ring->q_vector->napi.napi_id); in igc_setup_rx_resources()
|