Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c mlx5e_rep_change_carrier() -> mlx5_modify_vport_admin_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | opmod | 1 |
| PARAM_VALUE | 3 | other_vport | 1 |
| PARAM_VALUE | 4 | state | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | mdev | unit_byte |
| LOCK2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | &of->mutex |
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c mlx5e_rep_change_carrier() -> mlx5_modify_vport_admin_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | opmod | 1 |
| PARAM_VALUE | 3 | other_vport | 1 |
| PARAM_VALUE | 4 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | mdev | unit_byte |
| LOCK2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | &of->mutex |
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c mlx5e_rep_close() -> mlx5_modify_vport_admin_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | opmod | 1 |
| PARAM_VALUE | 3 | other_vport | 1 |
| PARAM_VALUE | 4 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | mdev | unit_byte |
| LOCK2 | &priv->state_lock | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &rdev->wiphy.mtx | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct mlx5e_priv)->state_lock |
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c mlx5e_rep_open() -> mlx5_modify_vport_admin_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mdev->cmd.pool->dev->iommu->fault_param->queue->wq->flush_color | s32min-s32max |
| PARAM_VALUE | 0 | mdev->cmd.pool->dev->iommu->fault_param->queue->wq->work_color | s32min-s32max |
| PARAM_VALUE | 0 | mdev->cmd.pool->dev->iommu->priv->domain->pd_mode | 0-2 |
| PARAM_VALUE | 0 | mdev->cmd.pool->dev->iommu->priv->domain->pscid | (-4095)-s32max |
| PARAM_VALUE | 0 | mdev->cmd.pool->dev->iommu->priv->domain->s1_cfg.addr_width | 48,57 |
| PARAM_VALUE | 0 | mdev->cmd.token | 0-255 |
| PARAM_VALUE | 0 | mdev->cmd.vars.throttle_sem.count | 0-4294967295 |
| PARAM_VALUE | 0 | mdev->cmd.vars.throttle_sem.first_waiter->list.next | 5349227543279349760 |
| PARAM_VALUE | 0 | mdev->cmd.vars.throttle_sem.first_waiter->list.prev | 5349227543279349760 |
| PARAM_VALUE | 0 | mdev->cmd.vars.throttle_sem.first_waiter->list.prev->next | 5349227543279349760 |
| PARAM_VALUE | 0 | mdev->cmd.vars.throttle_sem.first_waiter->up | 0-1 |
| PARAM_VALUE | 0 | mdev->cmd.vars.throttle_sem.lock.owner_cpu | 0-4294967295 |
| PARAM_VALUE | 0 | mdev->cmd.vars.unprivileged_sem.count | 0-4294967295 |
| PARAM_VALUE | 0 | mdev->cmd.vars.unprivileged_sem.first_waiter->list.next | 5349227543279349760 |
| PARAM_VALUE | 0 | mdev->cmd.vars.unprivileged_sem.first_waiter->list.prev | 5349227543279349760 |
| PARAM_VALUE | 0 | mdev->cmd.vars.unprivileged_sem.first_waiter->list.prev->next | 5349227543279349760 |
| PARAM_VALUE | 0 | mdev->cmd.vars.unprivileged_sem.first_waiter->up | 0-1 |
| PARAM_VALUE | 0 | mdev->cmd.vars.unprivileged_sem.lock.owner_cpu | 0-4294967295 |
| PARAM_VALUE | 0 | mdev->mlx5e_res.hw_objs.mkey | 0-4294967295 |
| PARAM_VALUE | 0 | mdev->mlx5e_res.hw_objs.td.list_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | mdev->mlx5e_res.hw_objs.td.list_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | mdev->mlx5e_res.hw_objs.td.list_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | mdev->mlx5e_res.hw_objs.td.list_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | mdev->pdev->bus->self->link_bwctrl->cdev | (-22),(-19),(-12),0-s64max |
| PARAM_VALUE | 0 | mdev->pdev->sriov->driver_max_VFs | 0-u16max |
| PARAM_VALUE | 0 | mdev->priv.alloc_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | mdev->priv.alloc_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | mdev->priv.alloc_mutex.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | mdev->priv.alloc_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | mdev->priv.alloc_mutex.osq.tail.counter | s32min-s32max |
| PARAM_VALUE | 0 | mdev->priv.eq_table->curr_comp_eqs | s32min-s32max |
| PARAM_VALUE | 0 | mdev->priv.eq_table->max_comp_eqs | s32min-s32max |
| PARAM_VALUE | 0 | mdev->priv.eswitch->devcom->comp->sem->wait_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | mdev->priv.eswitch->devcom->comp->sem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | mdev->priv.eswitch->devcom->comp->sem.first_waiter->handoff_set | 1 |
| PARAM_VALUE | 0 | mdev->priv.eswitch->devcom->comp->sem.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 0 | mdev->priv.eswitch->devcom->comp->sem.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 0 | mdev->priv.eswitch->devcom->comp->sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | mdev->priv.pgdir_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | mdev->priv.pgdir_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | mdev->priv.pgdir_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | mdev->priv.pgdir_mutex.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | mdev->priv.pgdir_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | mdev->priv.pgdir_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | opmod | 1 |
| PARAM_VALUE | 3 | other_vport | 1 |
| PARAM_VALUE | 4 | state | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | mdev | unit_byte |
| LOCK2 | &priv->state_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct mlx5e_priv)->state_lock |
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c mlx5e_uplink_rep_enable() -> mlx5_modify_vport_admin_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mdev | 4096-ptr_max |
| PARAM_VALUE | 0 | mdev->caps.hca | 4096-ptr_max |
| PARAM_VALUE | 1 | opmod | 2 |
| PARAM_VALUE | 2 | vport | 0 |
| PARAM_VALUE | 3 | other_vport | 0 |
| PARAM_VALUE | 4 | state | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | mdev | unit_byte |
| HALF_LOCKED2 | &esw->offloads.reps_lock |
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw_vport_cleanup() -> mlx5_modify_vport_admin_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mdev | 4096-ptr_max |
| PARAM_VALUE | 0 | mdev->caps.hca | 4096-ptr_max |
| PARAM_VALUE | 0 | mdev->clock->ptp | 0,4096-u64max |
| PARAM_VALUE | 0 | mdev->cmd.pool->size | 0-4294967295 |
| PARAM_VALUE | 0 | mdev->cmd.vars.throttle_sem.first_waiter->up | 0-1 |
| PARAM_VALUE | 0 | mdev->cmd.vars.unprivileged_sem.first_waiter->up | 0-1 |
| PARAM_VALUE | 0 | mdev->mlx5e_res.tracker->alloc_stack_handle | 0-4294967295 |
| PARAM_VALUE | 0 | mdev->mlx5e_res.tracker->dead | 0-1 |
| PARAM_VALUE | 0 | mdev->mlx5e_res.tracker->free_stack_handle | 0-4294967295 |
| PARAM_VALUE | 0 | mdev->priv.eswitch->fdb_table.offloads.esw_chains_priv->flags | 0-4294967295 |
| PARAM_VALUE | 0 | mdev->priv.fc_stats->bulk_query_alloc_failed | 0-1 |
| PARAM_VALUE | 0 | mdev->priv.fc_stats->bulk_query_len | s32min-s32max |
| PARAM_VALUE | 0 | mdev->priv.fc_stats->next_bulk_query_alloc | 0-s64max |
| PARAM_VALUE | 0 | mdev->priv.lag->bond_work.wq->dfl_pwq | 0-s64max |
| PARAM_VALUE | 0 | mdev->priv.lag->bond_work.wq->saved_max_active | s32min-s32max |
| PARAM_VALUE | 0 | mdev->priv.lag->bond_work.wq->saved_min_active | s32min-s32max |
| PARAM_VALUE | 0 | mdev->priv.lag->lag_mp.fib.priority | 0-4294967294 |
| PARAM_VALUE | 0 | mdev->priv.lag->port_sel.outer.ttc->groups | 0-s64max |
| PARAM_VALUE | 0 | mdev->priv.mpfs->enabled | 0-1 |
| PARAM_VALUE | 0 | mdev->priv.mpfs->size | 0-4294967295 |
| PARAM_VALUE | 0 | mdev->priv.roce.fg->node.parent->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | mdev->priv.roce.fg->node.parent->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | mdev->priv.roce.ft->node.parent->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | mdev->priv.roce.ft->node.parent->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | mdev->rsc_dump->number_of_menu_items | 0-4294967295 |
| PARAM_VALUE | 0 | mdev->rsc_dump->pdn | 0-4294967295 |
| PARAM_VALUE | 0 | *mdev->priv.lag->lag_mpesw.pf_metadata | 0-4294967295 |
| PARAM_VALUE | 1 | opmod | 1 |
| PARAM_VALUE | 3 | other_vport | 1 |
| PARAM_VALUE | 4 | state | 0 |
| CAPPED_DATA | 0 | mdev | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | mdev->cmd.pool->allocation | |
| LOCK2 | &esw->state_lock | ||
| HALF_LOCKED2 | &esw->offloads.reps_lock | ||
| TYPE_LOCK | (struct mlx5_eswitch)->state_lock |
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw_vport_setup() -> mlx5_modify_vport_admin_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mdev | 4096-ptr_max |
| PARAM_VALUE | 0 | mdev->clock->ptp | 0,4096-u64max |
| PARAM_VALUE | 0 | mdev->cmd.pool->size | 0-4294967295 |
| PARAM_VALUE | 0 | mdev->cmd.vars.throttle_sem.first_waiter->up | 0-1 |
| PARAM_VALUE | 0 | mdev->cmd.vars.unprivileged_sem.first_waiter->up | 0-1 |
| PARAM_VALUE | 0 | mdev->mlx5e_res.tracker->alloc_stack_handle | 0-4294967295 |
| PARAM_VALUE | 0 | mdev->mlx5e_res.tracker->dead | 0-1 |
| PARAM_VALUE | 0 | mdev->mlx5e_res.tracker->free_stack_handle | 0-4294967295 |
| PARAM_VALUE | 0 | mdev->priv.eswitch->fdb_table.offloads.esw_chains_priv->flags | 0-4294967295 |
| PARAM_VALUE | 0 | mdev->priv.fc_stats->bulk_query_alloc_failed | 0-1 |
| PARAM_VALUE | 0 | mdev->priv.fc_stats->bulk_query_len | s32min-s32max |
| PARAM_VALUE | 0 | mdev->priv.fc_stats->next_bulk_query_alloc | 0-s64max |
| PARAM_VALUE | 0 | mdev->priv.lag->bond_work.wq->dfl_pwq | 0-s64max |
| PARAM_VALUE | 0 | mdev->priv.lag->bond_work.wq->saved_max_active | s32min-s32max |
| PARAM_VALUE | 0 | mdev->priv.lag->bond_work.wq->saved_min_active | s32min-s32max |
| PARAM_VALUE | 0 | mdev->priv.lag->lag_mp.fib.priority | 0-4294967294 |
| PARAM_VALUE | 0 | mdev->priv.lag->port_sel.outer.ttc->groups | 0-s64max |
| PARAM_VALUE | 0 | mdev->priv.mpfs->enabled | 0-1 |
| PARAM_VALUE | 0 | mdev->priv.mpfs->size | 0-4294967295 |
| PARAM_VALUE | 0 | mdev->priv.roce.fg->node.parent->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | mdev->priv.roce.fg->node.parent->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | mdev->priv.roce.ft->node.parent->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | mdev->priv.roce.ft->node.parent->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | mdev->rsc_dump->number_of_menu_items | 0-4294967295 |
| PARAM_VALUE | 0 | mdev->rsc_dump->pdn | 0-4294967295 |
| PARAM_VALUE | 0 | *mdev->priv.lag->lag_mpesw.pf_metadata | 0-4294967295 |
| PARAM_VALUE | 1 | opmod | 1 |
| PARAM_VALUE | 3 | other_vport | 1 |
| CAPPED_DATA | 0 | mdev | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | mdev->cmd.pool->allocation | |
| LOCK2 | &esw->offloads.reps_lock | ||
| LOCK2 | &esw->state_lock | ||
| HALF_LOCKED2 | &devlink->lock | ||
| TYPE_LOCK | (struct mlx5_esw_offload)->reps_lock | ||
| TYPE_LOCK | (struct mlx5_eswitch)->state_lock |
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c mlx5_eswitch_set_vport_state() -> mlx5_modify_vport_admin_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | opmod | 1-2 |
| PARAM_VALUE | 2 | vport | 0-65534 |
| PARAM_VALUE | 3 | other_vport | 0-1 |
| PARAM_VALUE | 4 | state | 0-2 |
| DATA_SOURCE | 2 | vport | $1 [m] |
| DATA_SOURCE | 4 | state | $2 |
| FUZZY_MAX | 2 | vport | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | vport | 0-65534 |
| LOCK2 | &esw->state_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct mlx5_eswitch)->state_lock |