Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 20 files:
- drivers/net/ethernet/broadcom/bnxt/bnxt.c, line 13142
- drivers/net/ethernet/cavium/liquidio/lio_core.c, line 902
- drivers/net/ethernet/cavium/thunder/nicvf_queues.c, line 910
- drivers/net/ethernet/cisco/enic/enic_main.c, line 166
- drivers/net/ethernet/emulex/benet/be_main.c, line 3098
- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c, line 2927
- drivers/net/ethernet/google/gve/gve_utils.c, line 37
- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c, line 787
- drivers/net/ethernet/intel/fm10k/fm10k_pci.c, line 914
- drivers/net/ethernet/intel/i40e/i40e_main.c, line 3414
- drivers/net/ethernet/intel/ice/ice_base.c, line 279
- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c, line 3966
- drivers/net/ethernet/marvell/mvneta.c, line 3574
- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c, line 3341
- drivers/net/ethernet/mellanox/mlx4/en_tx.c, line 215
- drivers/net/ethernet/mellanox/mlx5/core/en_main.c, line 3234
- drivers/net/ethernet/netronome/nfp/nfd3/rings.c, line 148
- drivers/net/ethernet/netronome/nfp/nfdk/rings.c, line 113
- net/core/dev.c, line 3094
- net/core/net-sysfs.c, line 1811
Smatch caller information:
drivers/net/ethernet/broadcom/bnxt/bnxt.c bnxt_set_xps_mapping() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->real_num_tx_queues | 1-u32max |
| PARAM_VALUE | 1 | mask | 4096-ptr_max |
| CAPPED_DATA | 2 | index | 1 |
| PARAM_COMPARE | 0 | dev->real_num_tx_queues | > $2 |
| PARAM_COMPARE | 2 | index | < $0->real_num_tx_queues |
| UNITS | 0 | dev | unit_byte |
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c mvpp2_setup_txqs() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent->cma_area->alloc_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->dev.parent->cma_area->alloc_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->dev.parent->cma_area->alloc_mutex.osq.tail.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->dev.parent->dma_io_tlb_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->dev.parent->dma_io_tlb_pools.next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent->dma_io_tlb_pools.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent->dma_io_tlb_pools.next->prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent->dma_mem->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->dev.parent->dma_uses_io_tlb | 1 |
| PARAM_VALUE | 0 | dev->dev.parent->iommu->attach_deferred | 0-1 |
| PARAM_VALUE | 0 | dev->dev.parent->iommu->pci_32bit_workaround | 0-1 |
| CAPPED_DATA | 0 | dev->dev.parent | 1 |
| CAPPED_DATA | 2 | index | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | index | unit_array_size |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/google/gve/gve_utils.c gve_tx_add_to_block() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | *dev->name | 0-255 |
| CAPPED_DATA | 2 | index | 1 |
| DATA_SOURCE | 2 | index | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | index | |
| UNITS | 2 | index | unit_array_size |
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_config_xps() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mask | 4096-ptr_max |
| PARAM_VALUE | 2 | index | 0-65534 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | index | unit_array_size |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/marvell/mvneta.c mvneta_txq_sw_init() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent->cma_area->alloc_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->dev.parent->cma_area->alloc_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->dev.parent->cma_area->alloc_mutex.osq.tail.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->dev.parent->cma_area->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->dev.parent->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | dev->dev.parent->dma_io_tlb_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->dev.parent->dma_io_tlb_pools.next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent->dma_io_tlb_pools.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent->dma_io_tlb_pools.next->prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent->dma_mem->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->dev.parent->dma_uses_io_tlb | 1 |
| PARAM_VALUE | 0 | dev->dev.parent->iommu->attach_deferred | 0-1 |
| PARAM_VALUE | 0 | dev->dev.parent->iommu->pci_32bit_workaround | 0-1 |
| PARAM_VALUE | 0 | dev->dev.parent->iommu_group->default_domain | 0-s64max |
| PARAM_VALUE | 0 | *dev->name | 0-255 |
| PARAM_VALUE | 1 | mask | 4096-ptr_max |
| CAPPED_DATA | 0 | dev->dev.parent | 1 |
| CAPPED_DATA | 0 | dev->dev.parent->cma_area->nranges | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | index | unit_array_size |
drivers/net/ethernet/netronome/nfp/nfdk/rings.c nfp_nfdk_tx_ring_alloc() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | mask | 4096-ptr_max |
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | index | unit_array_size |
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c update_xps() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | mask | 1-u64max |
| PARAM_VALUE | 1 | mask->bits | 4096-ptr_max |
| CAPPED_DATA | 2 | index | 1 |
| MEM_ZERO | 1 | mask->bits | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c ixgbe_configure_tx_ring() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mask | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | index | unit_array_size |
net/core/net-sysfs.c xps_cpus_store() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->num_tx_queues | 2-u32max |
| PARAM_VALUE | 0 | dev->refcnt_tracker.list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->refcnt_tracker.list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->refcnt_tracker.list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->refcnt_tracker.quarantine.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->refcnt_tracker.quarantine.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->refcnt_tracker.quarantine.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->reg_state | 0-1 |
| PARAM_VALUE | 1 | mask | 4096-ptr_max |
| CAPPED_DATA | 2 | index | 1 |
| DATA_SOURCE | 2 | index | r get_netdev_queue_index |
| CAPABLE | 0 | 12 | |
| HARD_MAX | 0 | dev->reg_state | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | dev | unit_byte |
| LOCK2 | &of->mutex | ||
| LOCK2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/net/ethernet/intel/fm10k/fm10k_pci.c fm10k_configure_tx_ring() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mask | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/mellanox/mlx4/en_tx.c mlx4_en_activate_tx_ring() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev_addr | 4096-ptr_max |
| PARAM_VALUE | 1 | mask | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | index | unit_array_size |
| HALF_LOCKED2 | &dev->ethtool->rss_lock | ||
| HALF_LOCKED2 | &mdev->state_lock | ||
| HALF_LOCKED2 | &priv->mdev->state_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct mlx4_en_dev)->state_lock |
drivers/net/ethernet/cavium/thunder/nicvf_queues.c nicvf_snd_queue_config() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev->rtnl_link_ops->maxtype | 0-6,8-10,15,18,20,22,24,34,50 |
| PARAM_VALUE | 0 | dev->rtnl_link_ops->priv_size | 0,8,32,48,56,88,112,120,144,160,224,240,256,296,616,624,728,736,1056,1128,1336,1616,2176,2240,2272,2560,3296,3720,9688-u64max |
| PARAM_VALUE | 0 | *dev->name | 0-255 |
| PARAM_VALUE | 1 | mask | 4096-ptr_max |
| PARAM_VALUE | 2 | index | 0-254 |
| CAPPED_DATA | 2 | index | 1 |
| DATA_SOURCE | 2 | index | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | index | unit_array_size |
| HALF_LOCKED2 | &pool->lock |
drivers/net/ethernet/mellanox/mlx5/core/en_main.c mlx5e_set_default_xps_cpumasks() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->num_tx_queues | 1-u32max |
| PARAM_VALUE | 0 | dev->real_num_tx_queues | 1-u32max |
| PARAM_VALUE | 0 | dev->tc_to_txq | 4096-ptr_max |
| PARAM_VALUE | 0 | *dev->name | 0-255 |
| PARAM_VALUE | 0 | *dev->prio_tc_map | 0-255 |
| PARAM_VALUE | 2 | index | 0-65534 |
| CAPPED_DATA | 0 | dev->num_tx_queues | 1 |
| CAPPED_DATA | 0 | dev->real_num_tx_queues | 1 |
| CAPPED_DATA | 2 | index | 1 |
| MEM_ZERO | 1 | mask->bits | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | dev | unit_byte |
| UNITS | 2 | index | unit_array_size |
| HALF_LOCKED2 | &priv->state_lock | ||
| HALF_LOCKED2 | 0 | &dev->lock |
drivers/net/ethernet/netronome/nfp/nfd3/rings.c nfp_nfd3_tx_ring_alloc() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | mask | 4096-ptr_max |
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | index | unit_array_size |
drivers/net/ethernet/emulex/benet/be_main.c be_tx_qs_create() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | dev->lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | dev->lock.first_waiter->task->blocked_lock.raw_lock.val.counter | 0-s32max |
| PARAM_VALUE | 0 | dev->lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->threaded | 0 |
| PARAM_VALUE | 0 | *dev->name | 0-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | index | unit_array_size |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/intel/ice/ice_base.c ice_cfg_xps_tx_ring() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 1-u64max |
| PARAM_VALUE | 1 | mask | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | index | unit_array_size |
| HALF_LOCKED2 | &vsi->xdp_state_lock |
drivers/net/ethernet/cisco/enic/enic_main.c enic_set_affinity_hint() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev->rx_cpu_rmap | 0,4096-ptr_max |
| PARAM_VALUE | 0 | *dev->name | 0-255 |
| PARAM_VALUE | 1 | mask | 1-u64max |
| CAPPED_DATA | 2 | index | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | index | unit_array_size |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/intel/i40e/i40e_main.c i40e_config_xps_tx_ring() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | index | unit_array_size |
drivers/net/ethernet/cavium/liquidio/lio_core.c liquidio_setup_io_queues() -> netif_set_xps_queue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | *dev->name | 0-255 |
| PARAM_VALUE | 1 | mask | 4096-ptr_max |
| CAPPED_DATA | 0 | dev->num_tx_queues | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | index | unit_array_size |