Defined in 2 files as a function:
- include/net/xdp_sock_drv.h, line 92 (as a function)
- include/net/xdp_sock_drv.h, line 427 (as a function)
Referenced in 16 files:
- drivers/net/ethernet/engleder/tsnep_xdp.c
- drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c
- drivers/net/ethernet/freescale/fec_main.c
- drivers/net/ethernet/google/gve/gve_main.c
- drivers/net/ethernet/intel/i40e/i40e_xsk.c, line 158
- drivers/net/ethernet/intel/ice/ice_xsk.c, line 131
- drivers/net/ethernet/intel/igb/igb_xsk.c
- drivers/net/ethernet/intel/igc/igc_xdp.c
- drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c
- drivers/net/ethernet/intel/libeth/xsk.c, line 268
- drivers/net/ethernet/marvell/octeontx2/nic/otx2_xsk.c, line 154
- drivers/net/ethernet/mellanox/mlx5/core/en/xsk/pool.c, line 20
- drivers/net/ethernet/netronome/nfp/nfp_net_xsk.c, line 102
- drivers/net/ethernet/stmicro/stmmac/stmmac_xdp.c, line 81
- drivers/net/ethernet/ti/icssg/icssg_prueth.c, line 1550
- drivers/net/virtio_net.c
Smatch caller information:
drivers/net/ethernet/stmicro/stmmac/stmmac_xdp.c stmmac_xdp_disable_pool() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 1-u64max |
| PARAM_VALUE | 1 | attrs | 34 |
| DATA_SOURCE | 0 | pool | r xsk_get_pool_from_qid |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/intel/ice/ice_xsk.c ice_xsk_pool_disable() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 1-u64max |
| PARAM_VALUE | 1 | attrs | 34 |
| DATA_SOURCE | 0 | pool | r xsk_get_pool_from_qid |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &vsi->xdp_state_lock | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct ice_vsi)->xdp_state_lock |
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/pool.c mlx5e_xsk_unmap_pool() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 1-u64max |
| PARAM_VALUE | 1 | attrs | 32 |
| BUF_SIZE | 0 | pool | (-1),512-s32max |
| BUF_SIZE | 0 | pool | (-1),512-s32max |
| DATA_SOURCE | 0 | pool | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | pool->dma_pages_cnt | |
| NO_OVERFLOW_SIMPLE | 0 | pool->free_heads_cnt | |
| NO_OVERFLOW_SIMPLE | 0 | pool->heads_cnt | |
| LOCK2 | &priv->state_lock | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct mlx5e_priv)->state_lock |
drivers/net/ethernet/engleder/tsnep_xdp.c tsnep_xdp_disable_pool() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 1-u64max |
| PARAM_VALUE | 1 | attrs | 32 |
| DATA_SOURCE | 0 | pool | r xsk_get_pool_from_qid |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/engleder/tsnep_xdp.c tsnep_xdp_enable_pool() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->dma_pages | 16,4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | attrs | 32 |
| BUF_SIZE | 0 | pool | (-1),512-s32max |
| BUF_SIZE | 0 | pool | (-1),512-s32max |
| DATA_SOURCE | 0 | pool | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | pool->dma_pages_cnt | |
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/intel/i40e/i40e_xsk.c i40e_xsk_pool_disable() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 1-u64max |
| PARAM_VALUE | 1 | attrs | 34 |
| DATA_SOURCE | 0 | pool | r xsk_get_pool_from_qid |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/intel/igc/igc_xdp.c igc_xdp_disable_pool() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 1-u64max |
| PARAM_VALUE | 1 | attrs | 34 |
| DATA_SOURCE | 0 | pool | r xsk_get_pool_from_qid |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/intel/igc/igc_xdp.c igc_xdp_enable_pool() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->dma_pages | 16,4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | attrs | 34 |
| BUF_SIZE | 0 | pool | (-1),512-s32max |
| BUF_SIZE | 0 | pool | (-1),512-s32max |
| DATA_SOURCE | 0 | pool | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | pool->dma_pages_cnt | |
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/google/gve/gve_main.c gve_xsk_pool_disable() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 1-u64max |
| PARAM_VALUE | 1 | attrs | 34 |
| DATA_SOURCE | 0 | pool | r xsk_get_pool_from_qid |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/google/gve/gve_main.c gve_xsk_pool_enable() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->dma_pages | 16,4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | attrs | 34 |
| DATA_SOURCE | 0 | pool | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | pool->dma_pages_cnt | |
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/intel/igb/igb_xsk.c igb_xsk_pool_disable() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 1-u64max |
| PARAM_VALUE | 1 | attrs | 34 |
| DATA_SOURCE | 0 | pool | r xsk_get_pool_from_qid |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/intel/igb/igb_xsk.c igb_xsk_pool_enable() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->dma_pages | 16,4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | attrs | 34 |
| BUF_SIZE | 0 | pool | (-1),512-s32max |
| BUF_SIZE | 0 | pool | (-1),512-s32max |
| DATA_SOURCE | 0 | pool | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | pool->dma_pages_cnt | |
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c ixgbe_xsk_pool_disable() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 1-u64max |
| PARAM_VALUE | 1 | attrs | 34 |
| DATA_SOURCE | 0 | pool | r xsk_get_pool_from_qid |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c ixgbe_xsk_pool_enable() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->dma_pages | 16,4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | attrs | 34 |
| BUF_SIZE | 0 | pool | (-1),512-s32max |
| BUF_SIZE | 0 | pool | (-1),512-s32max |
| DATA_SOURCE | 0 | pool | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | pool->dma_pages_cnt | |
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/intel/libeth/xsk.c libeth_xsk_setup_pool() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 1-u64max |
| PARAM_VALUE | 1 | attrs | 34 |
| DATA_SOURCE | 0 | pool | r xsk_get_pool_from_qid |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/freescale/fec_main.c fec_disable_xsk_pool() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | attrs | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/freescale/fec_main.c fec_disable_xsk_pool() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | attrs | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/freescale/fec_main.c fec_enable_xsk_pool() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->dma_pages | 16,4096-ptr_max |
| PARAM_VALUE | 0 | pool->fq->cached_cons | 0-4294967295 |
| PARAM_VALUE | 0 | pool->fq->cached_prod | 0-4294967295 |
| PARAM_VALUE | 0 | pool->fq->ring->consumer | 0-4294967295 |
| PARAM_VALUE | 0 | pool->umem | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | attrs | 0 |
| BUF_SIZE | 0 | pool | (-1),512-s32max |
| BUF_SIZE | 0 | pool | (-1),512-s32max |
| DATA_SOURCE | 0 | pool | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | pool->dma_pages_cnt | |
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/virtio_net.c virtnet_xsk_pool_disable() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | attrs | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/virtio_net.c virtnet_xsk_pool_enable() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | attrs | 0 |
| BUF_SIZE | 0 | pool | (-1),512-s32max |
| BUF_SIZE | 0 | pool | (-1),512-s32max |
| DATA_SOURCE | 0 | pool | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | pool->dma_pages_cnt | |
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/netronome/nfp/nfp_net_xsk.c nfp_net_xsk_pool_unmap() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 1-u64max |
| PARAM_VALUE | 1 | attrs | 0 |
| BUF_SIZE | 0 | pool | (-1),512-s32max |
| BUF_SIZE | 0 | pool | (-1),512-s32max |
| DATA_SOURCE | 0 | pool | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | pool->dma_pages_cnt | |
| HALF_LOCKED2 | &netdev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/marvell/octeontx2/nic/otx2_xsk.c otx2_xsk_pool_disable() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 1-u64max |
| PARAM_VALUE | 1 | attrs | 34 |
| DATA_SOURCE | 0 | pool | r xsk_get_pool_from_qid |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &netdev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c dpaa2_xsk_disable_pool() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | attrs | 0 |
| DATA_SOURCE | 0 | pool | r xsk_get_pool_from_qid |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c dpaa2_xsk_enable_pool() -> xsk_pool_dma_unmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->dma_pages | 16,4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->umem->xsk_dma_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | attrs | 0 |
| BUF_SIZE | 0 | pool | (-1),512-s32max |
| BUF_SIZE | 0 | pool | (-1),512-s32max |
| DATA_SOURCE | 0 | pool | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | pool->dma_pages_cnt | |
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |