/openbmc/linux/include/net/ |
H A D | busy_poll.h | 47 void napi_busy_loop(unsigned int napi_id, 108 unsigned int napi_id = READ_ONCE(sk->sk_napi_id); in sk_busy_loop() local 110 if (napi_id >= MIN_NAPI_ID) in sk_busy_loop() 111 napi_busy_loop(napi_id, nonblock ? NULL : sk_busy_loop_end, sk, in sk_busy_loop() 125 if (skb->napi_id < MIN_NAPI_ID) in skb_mark_napi_id() 126 skb->napi_id = napi->napi_id; in skb_mark_napi_id() 134 if (unlikely(READ_ONCE(sk->sk_napi_id) != skb->napi_id)) in sk_mark_napi_id() 135 WRITE_ONCE(sk->sk_napi_id, skb->napi_id); in sk_mark_napi_id() 148 WRITE_ONCE(sk->sk_napi_id, skb->napi_id); in sk_mark_napi_id_set() 153 static inline void __sk_mark_napi_id_once(struct sock *sk, unsigned int napi_id) in __sk_mark_napi_id_once() argument [all …]
|
H A D | xdp.h | 65 unsigned int napi_id; member 336 unsigned int napi_id, u32 frag_size); 340 unsigned int napi_id) in xdp_rxq_info_reg() argument 342 return __xdp_rxq_info_reg(xdp_rxq, dev, queue_index, napi_id, 0); in xdp_rxq_info_reg()
|
H A D | xdp_sock_drv.h | 53 return pool->heads[0].xdp.rxq->napi_id; in xsk_pool_get_napi_id()
|
/openbmc/linux/include/trace/events/ |
H A D | net.h | 173 __field( unsigned int, napi_id ) 196 __entry->napi_id = skb->napi_id; 198 __entry->napi_id = 0; 220 __get_str(name), __entry->napi_id, __entry->queue_mapping,
|
/openbmc/linux/fs/ |
H A D | eventpoll.c | 228 /* used to track busy poll napi_id */ 229 unsigned int napi_id; member 406 unsigned int napi_id = READ_ONCE(ep->napi_id); in ep_busy_loop() local 408 if ((napi_id >= MIN_NAPI_ID) && net_busy_loop_on()) { in ep_busy_loop() 409 napi_busy_loop(napi_id, nonblock ? NULL : ep_busy_loop_end, ep, false, in ep_busy_loop() 418 ep->napi_id = 0; in ep_busy_loop() 430 unsigned int napi_id; in ep_set_busy_poll_napi_id() local 445 napi_id = READ_ONCE(sk->sk_napi_id); in ep_set_busy_poll_napi_id() 452 if (napi_id < MIN_NAPI_I in ep_set_busy_poll_napi_id() [all...] |
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | verifier_cgroup_skb.c | 93 __imm_const(__sk_buff_napi_id, offsetof(struct __sk_buff, napi_id)) in test_3_for_cgroup_skb() 192 : __imm_const(__sk_buff_napi_id, offsetof(struct __sk_buff, napi_id)) in napi_id_for_cgroup_skb()
|
/openbmc/linux/net/core/ |
H A D | xdp.c | 167 unsigned int napi_id, u32 frag_size) in __xdp_rxq_info_reg() argument 188 xdp_rxq->napi_id = napi_id; in __xdp_rxq_info_reg()
|
H A D | dev.c | 168 static struct napi_struct *napi_by_id(unsigned int napi_id); 913 struct net_device *dev_get_by_napi_id(unsigned int napi_id) in dev_get_by_napi_id() argument 919 if (napi_id < MIN_NAPI_ID) in dev_get_by_napi_id() 922 napi = napi_by_id(napi_id); in dev_get_by_napi_id() 1432 n->dev->name, n->napi_id); in napi_kthread_create() 6176 static struct napi_struct *napi_by_id(unsigned int napi_id) in napi_by_id() argument 6178 unsigned int hash = napi_id % HASH_SIZE(napi_hash); in napi_by_id() 6182 if (napi->napi_id == napi_id) in napi_by_id() 6254 void napi_busy_loop(unsigned int napi_id, in napi_busy_loop() argument 6268 napi = napi_by_id(napi_id); in napi_busy_loop() [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_xdp.c | 129 lan966x->napi.napi_id); in lan966x_xdp_port_init()
|
/openbmc/linux/drivers/staging/octeon/ |
H 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()
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_base.c | 559 ring->q_vector->napi.napi_id, in ice_vsi_cfg_rxq() 573 ring->q_vector->napi.napi_id, in ice_vsi_cfg_rxq() 590 ring->q_vector->napi.napi_id, in ice_vsi_cfg_rxq()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
H A D | setup.c | 91 return xdp_rxq_info_reg(&rq->xdp_rxq, rq->netdev, rq_xdp_ix, c->napi.napi_id); in mlx5e_init_xsk_rq()
|
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_vec.c | 151 self->napi.napi_id) < 0) { in aq_vec_ring_alloc()
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_dp.c | 300 rx_ring->idx, rx_ring->r_vec->napi.napi_id); in nfp_net_rx_ring_alloc()
|
/openbmc/linux/drivers/net/ethernet/google/gve/ |
H A D | gve_main.c | 1205 napi->napi_id); in gve_reg_xdp_info() 1215 napi->napi_id); in gve_reg_xdp_info() 1537 err = xdp_rxq_info_reg(&rx->xsk_rxq, dev, qid, napi->napi_id); in gve_xsk_pool_enable()
|
/openbmc/linux/drivers/net/ethernet/fungible/funeth/ |
H A D | funeth_rx.c | 705 irq->napi.napi_id); in fun_rxq_create_dev()
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | efx_channels.c | 615 channel->napi_str.napi_id = 0; in efx_copy_channel()
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | efx_channels.c | 618 channel->napi_str.napi_id = 0; in efx_copy_channel()
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_main.c | 2015 unsigned int napi_id; in __alloc_dma_rx_desc_resources() local 2065 napi_id = ch->rxtx_napi.napi_id; in __alloc_dma_rx_desc_resources() 2067 napi_id = ch->rx_napi.napi_id; in __alloc_dma_rx_desc_resources() 2071 napi_id); in __alloc_dma_rx_desc_resources()
|
/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H A D | ctx_skb.c | 26 offsetof(struct __sk_buff, napi_id)),
|
/openbmc/linux/drivers/net/ethernet/engleder/ |
H A D | tsnep_main.c | 1879 rx->queue_index, queue->napi.napi_id); in tsnep_queue_open() 1888 rx->queue_index, queue->napi.napi_id); in tsnep_queue_open()
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf.h | 6114 __u32 napi_id; member
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 6117 __u32 napi_id; member
|
/openbmc/linux/include/linux/ |
H A D | skbuff.h | 1013 unsigned int napi_id; 1187 return skb->napi_id; in skb_napi_id()
|
H A D | netdevice.h | 377 unsigned int napi_id; member 3148 struct net_device *dev_get_by_napi_id(unsigned int napi_id);
|