Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
- drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
- drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c, line 4522
Smatch caller information:
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_devlink_eswitch_mode_set() -> mlx5_eswitch_disable_locked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | esw | 4096-ptr_max |
| PARAM_VALUE | 0 | esw->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | esw->dev->priv.lag->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->groups | 0-s64max |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->refcnt | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->autogroup.num_groups | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->fgs_hash.ht.nelems.counter | s32min-s32max |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->fgs_hash.ht.tbl->hash_rnd | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->fgs_hash.ht.tbl->nest | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->fgs_hash.ht.tbl->size | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->node.lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->node.lock.first_waiter->list.next | 2212933610777083904,2624917664208203776 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->node.lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->node.refcount.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->node.version.counter | s32min-s32max |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->type | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->groups | 0-s64max |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->groups->num_groups | 3-4,6-7 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->refcnt | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->autogroup.num_groups | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->fgs_hash.ht.nelems.counter | s32min-s32max |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->fgs_hash.ht.tbl->hash_rnd | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->fgs_hash.ht.tbl->nest | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->fgs_hash.ht.tbl->size | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->node.lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->node.lock.first_waiter->list.next | 2212933610777083904,2624917664208203776 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->node.lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->node.refcount.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->node.version.counter | s32min-s32max |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->type | 0-4294967295 |
| PARAM_VALUE | 0 | esw->eswitch_operation_in_progress | 1 |
| PARAM_VALUE | 0 | esw->mode_lock.first_waiter->handoff_set | 1 |
| PARAM_VALUE | 0 | esw->mode_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | esw->mode_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | esw->mode_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | esw->mode_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | esw->offloads.num_block_mode | 0 |
| PARAM_VALUE | 0 | esw->offloads.reps_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | esw->offloads.reps_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | esw->offloads.reps_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | esw->offloads.reps_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | esw->user_count.counter | s64min-0 |
| PARAM_VALUE | 0 | *esw->dev->priv.lag->lag_mpesw.pf_metadata | 0-4294967295 |
| CAPPED_DATA | 0 | esw->dev | 1 |
| CAPPED_DATA | 0 | &esw->mode_lock | 1 |
| DATA_SOURCE | 0 | esw | r mlx5_devlink_eswitch_get |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &esw->offloads.reps_lock | |
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &devlink->lock | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &cb_lock | ||
| HALF_LOCKED2 | global &crypto_cfg_mutex | ||
| HALF_LOCKED2 | global &dpll_lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &net_dm_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct mlx5_esw_offload)->reps_lock |
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c mlx5_eswitch_disable() -> mlx5_eswitch_disable_locked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | esw | 4096-ptr_max |
| PARAM_VALUE | 0 | esw->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | esw->dev->cmd.vars.throttle_sem.first_waiter->up | 0-1 |
| PARAM_VALUE | 0 | esw->dev->cmd.vars.unprivileged_sem.first_waiter->up | 0-1 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->groups | 0-s64max |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->refcnt | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->autogroup.num_groups | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->fgs_hash.ht.nelems.counter | s32min-s32max |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->fgs_hash.ht.tbl->hash_rnd | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->fgs_hash.ht.tbl->nest | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->fgs_hash.ht.tbl->size | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->node.lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->node.lock.first_waiter->list.next | 2212933610777083904,2624917664208203776 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->node.lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->node.refcount.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->node.version.counter | s32min-s32max |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.inner.ttc->t->type | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->groups->num_groups | 3-4,6-7 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->refcnt | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->autogroup.num_groups | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->fgs_hash.ht.nelems.counter | s32min-s32max |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->fgs_hash.ht.tbl->hash_rnd | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->fgs_hash.ht.tbl->nest | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->fgs_hash.ht.tbl->size | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->node.lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->node.lock.first_waiter->list.next | 2212933610777083904,2624917664208203776 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->node.lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->node.refcount.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->node.version.counter | s32min-s32max |
| PARAM_VALUE | 0 | esw->dev->priv.lag->port_sel.outer.ttc->t->type | 0-4294967295 |
| PARAM_VALUE | 0 | esw->dev->priv.roce.fg->node.parent->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | esw->dev->priv.roce.fg->node.parent->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | esw->dev->priv.roce.ft->node.parent->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | esw->dev->priv.roce.ft->node.parent->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | esw->fdb_table.legacy.fdb->node.lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | esw->fdb_table.legacy.fdb->node.lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | esw->offloads.ft_offloads->node.parent->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | esw->offloads.reps_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | esw->offloads.reps_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | esw->offloads.reps_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | esw->offloads.reps_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | esw->offloads.restore_group->node.parent->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | esw->offloads.vport_rx_group->node.parent->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | *esw->dev->priv.lag->lag_mpesw.pf_metadata | 0-4294967295 |
| CAPPED_DATA | 0 | esw->dev | 1 |
| DATA_SOURCE | 0 | esw | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &dev->intf_state_mutex | ||
| LOCK2 | 0 | &esw->offloads.reps_lock | |
| HALF_LOCKED2 | &devlink->lock | ||
| TYPE_LOCK | (struct mlx5_core_dev)->intf_state_mutex | ||
| TYPE_LOCK | (struct mlx5_esw_offload)->reps_lock |
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c mlx5_eswitch_disable_sriov() -> mlx5_eswitch_disable_locked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | esw | 4096-ptr_max |
| PARAM_VALUE | 0 | esw->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | esw->dev->caps.embedded_cpu | 0-1 |
| PARAM_VALUE | 0 | esw->dev->cmd.vars.throttle_sem.first_waiter->up | 0-1 |
| PARAM_VALUE | 0 | esw->dev->cmd.vars.unprivileged_sem.first_waiter->up | 0-1 |
| PARAM_VALUE | 0 | esw->fdb_table.legacy.fdb->node.lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | esw->fdb_table.legacy.fdb->node.lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | esw->mode | 0 |
| PARAM_VALUE | 0 | esw->offloads.reps_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | esw->offloads.reps_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | esw->offloads.reps_lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | esw->offloads.reps_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | esw->offloads.reps_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | esw->offloads.reps_lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | esw->offloads.reps_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| DATA_SOURCE | 0 | esw | $0 |
| NOSPEC | 0 | esw->esw_funcs.num_ec_vfs | |
| NOSPEC | 0 | esw->esw_funcs.num_vfs | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | esw->esw_funcs.num_ec_vfs | 1-u16max[c] |
| USER_DATA | 0 | esw->esw_funcs.num_vfs | 1-u16max[c] |
| NO_OVERFLOW_SIMPLE | 0 | esw->esw_funcs.num_vfs | |
| NO_OVERFLOW_SIMPLE | 0 | esw->fdb_table.offloads.drop_root_rule->num_rules | |
| NO_OVERFLOW_SIMPLE | 0 | esw->offloads.vport_rx_drop_rule->num_rules | |
| HALF_LOCKED2 | &dev->intf_state_mutex | ||
| HALF_LOCKED2 | &devlink->lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pdev->dev.mutex | ||
| HALF_LOCKED2 | global &pci_rescan_remove_lock |