Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 19 files:
- drivers/net/ethernet/aquantia/atlantic/aq_ring.c, line 349
- drivers/net/ethernet/engleder/tsnep_main.c, line 879
- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
- drivers/net/ethernet/freescale/fec_main.c, line 1637
- drivers/net/ethernet/marvell/mvneta.c, line 1900
- drivers/net/ethernet/mediatek/mtk_eth_soc.c, line 1451
- drivers/net/ethernet/pensando/ionic/ionic_txrx.c, line 288
- drivers/net/ethernet/sfc/siena/tx_common.c, line 162
- drivers/net/ethernet/sfc/tx_common.c, line 205
- drivers/net/ethernet/socionext/netsec.c, line 677
- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c, line 2916
- drivers/net/ethernet/ti/am65-cpsw-nuss.c, line 1503
- drivers/net/ethernet/ti/cpsw_priv.c, line 1364
- drivers/net/tun.c, line 1342
- drivers/net/virtio_net.c, line 1711
- drivers/net/xen-netfront.c, line 994
- kernel/bpf/cpumap.c, line 746
- kernel/bpf/devmap.c
- net/core/xdp.c, line 496
Smatch caller information:
drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_tx_unmap() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xdpf | 1-4294967294,4294967296-u64max |
| BUF_SIZE | 0 | xdpf | 1-s32max |
| BUF_SIZE | 0 | xdpf | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | xdpf | unit_byte |
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
drivers/net/xen-netfront.c xennet_run_xdp() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xdpf | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 0 | xdpf->flags | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->frame_sz | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->headroom | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->len | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->mem_type | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->metasize | 0-4294967295 |
| BUF_SIZE | 0 | xdpf | (-1),1-s32max |
| BUF_SIZE | 0 | xdpf | (-1),1-s32max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | xdpf | unit_byte |
| LOCK2 | &queue->rx_lock | ||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &ni->dev_lock | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct netfront_queue)->rx_lock |
drivers/net/ethernet/sfc/siena/tx_common.c efx_dequeue_buffer() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c dpaa_run_xdp() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xdpf | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 0 | xdpf->flags | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->frame_sz | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->headroom | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->len | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->mem_type | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->metasize | 0-4294967295 |
| BUF_SIZE | 0 | xdpf | (-1),1-s32max |
| BUF_SIZE | 0 | xdpf | (-1),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | xdpf | unit_byte |
kernel/bpf/devmap.c bq_xmit_all() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | bh |
kernel/bpf/devmap.c dev_map_bpf_prog_run() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xdpf | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | bh |
kernel/bpf/devmap.c dev_map_bpf_prog_run() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xdpf | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | bh |
kernel/bpf/devmap.c dev_map_enqueue_multi() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xdpf | 1-u64max |
| BUF_SIZE | 0 | xdpf | (-1),1-s32max |
| BUF_SIZE | 0 | xdpf | (-1),1-s32max |
| DATA_SOURCE | 0 | xdpf | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
drivers/net/ethernet/marvell/mvneta.c mvneta_txq_bufs_free() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xdpf | 1-u64max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | xdpf | unit_byte |
| LOCK2 | &nq->_xmit_lock | ||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct netdev_queue)->_xmit_lock |
kernel/bpf/cpumap.c bq_flush_to_queue() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | xdpf | 1-s32max |
| BUF_SIZE | 0 | xdpf | 1-s32max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &q->producer_lock | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct ptr_ring)->producer_lock |
drivers/net/ethernet/aquantia/atlantic/aq_ring.c aq_ring_tx_clean() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xdpf | 4096-ptr_max |
| PARAM_VALUE | 0 | xdpf->flags | 1-u32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | xdpf | unit_byte |
drivers/net/ethernet/engleder/tsnep_main.c tsnep_tx_poll() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xdpf | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | xdpf | unit_byte |
| LOCK2 | &nq->_xmit_lock | ||
| HALF_LOCKED2 | &ni->dev_lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct netdev_queue)->_xmit_lock |
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c stmmac_tx_clean() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xdpf | 1-u64max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | bh | ||
| HALF_LOCKED2 | &ni->dev_lock | ||
| HALF_LOCKED2 | rcu_read |
drivers/net/ethernet/socionext/netsec.c netsec_clean_tx_dring() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xdpf | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL | |||
| UNITS | 0 | xdpf | unit_byte |
| LOCK2 | &dring->lock | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct netsec_desc_ring)->lock |
drivers/net/ethernet/sfc/tx_common.c efx_dequeue_buffer() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/net/tun.c tun_xdp_tx() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xdpf | 4096-ptr_max |
| PARAM_VALUE | 0 | xdpf->flags | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->frame_sz | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->headroom | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->len | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->mem_type | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->metasize | 0-4294967295 |
| BUF_SIZE | 0 | xdpf | (-1),1-s32max |
| BUF_SIZE | 0 | xdpf | (-1),1-s32max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | xdpf | unit_byte |
| LOCK2 | bh | ||
| LOCK2 | rcu_read |
drivers/net/ethernet/freescale/fec_main.c fec_enet_tx_queue() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| NOCHECK_CALL |
drivers/net/virtio_net.c virtnet_xdp_handler() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xdpf | 4096-ptr_max |
| PARAM_VALUE | 0 | xdpf->flags | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->frame_sz | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->headroom | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->len | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->mem_type | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->metasize | 0-4294967295 |
| BUF_SIZE | 0 | xdpf | (-1),1-s32max |
| BUF_SIZE | 0 | xdpf | (-1),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | xdpf | unit_byte |
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &ni->dev_lock | ||
| HALF_LOCKED2 | bh |
drivers/net/ethernet/pensando/ionic/ionic_txrx.c ionic_xdp_tx_desc_clean() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xdpf | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | xdpf | unit_byte |
| LOCK2 | rcu_read |
drivers/net/ethernet/ti/cpsw_priv.c cpsw_run_xdp() -> xdp_return_frame_rx_napi()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xdpf | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 0 | xdpf->flags | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->frame_sz | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->headroom | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->len | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->mem_type | 0-4294967295 |
| PARAM_VALUE | 0 | xdpf->metasize | 0-4294967295 |
| BUF_SIZE | 0 | xdpf | (-1),1-s32max |
| BUF_SIZE | 0 | xdpf | (-1),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | xdpf | unit_byte |