Home
last modified time | relevance | path

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

12

/openbmc/linux/include/net/
H A Dbusy_poll.h47 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 Dxdp.h65 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 Dxdp_sock_drv.h53 return pool->heads[0].xdp.rxq->napi_id; in xsk_pool_get_napi_id()
/openbmc/linux/include/trace/events/
H A Dnet.h173 __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 Deventpoll.c228 /* 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 Dverifier_cgroup_skb.c93 __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 Dxdp.c167 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 Ddev.c168 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 Dlan966x_xdp.c129 lan966x->napi.napi_id); in lan966x_xdp_port_init()
/openbmc/linux/drivers/staging/octeon/
H 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()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_base.c559 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 Dsetup.c91 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 Daq_vec.c151 self->napi.napi_id) < 0) { in aq_vec_ring_alloc()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_dp.c300 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 Dgve_main.c1205 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 Dfuneth_rx.c705 irq->napi.napi_id); in fun_rxq_create_dev()
/openbmc/linux/drivers/net/ethernet/sfc/
H A Defx_channels.c615 channel->napi_str.napi_id = 0; in efx_copy_channel()
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A Defx_channels.c618 channel->napi_str.napi_id = 0; in efx_copy_channel()
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_main.c2015 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 Dctx_skb.c26 offsetof(struct __sk_buff, napi_id)),
/openbmc/linux/drivers/net/ethernet/engleder/
H A Dtsnep_main.c1879 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 Dbpf.h6114 __u32 napi_id; member
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf.h6117 __u32 napi_id; member
/openbmc/linux/include/linux/
H A Dskbuff.h1013 unsigned int napi_id;
1187 return skb->napi_id; in skb_napi_id()
H A Dnetdevice.h377 unsigned int napi_id; member
3148 struct net_device *dev_get_by_napi_id(unsigned int napi_id);

12