Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- net/bridge/br_if.c, line 450
- net/bridge/br_netlink.c, line 931
- net/bridge/br_stp.c
- net/bridge/br_stp_if.c
- net/bridge/br_stp_timer.c
Smatch caller information:
net/bridge/br_if.c new_nbp() -> br_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->br | 4096-ptr_max |
| PARAM_VALUE | 0 | p->config_pending | 0 |
| PARAM_VALUE | 0 | p->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | p->dev->addr_len | 6 |
| PARAM_VALUE | 0 | p->dev->dev_addr | 4096-ptr_max |
| PARAM_VALUE | 0 | p->dev->netdev_ops | 4096-ptr_max |
| PARAM_VALUE | 0 | p->dev->refcnt_tracker.list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | p->dev->type | 1 |
| PARAM_VALUE | 0 | p->dev_tracker | 0,4096-ptr_max |
| PARAM_VALUE | 0 | p->flags | 18528 |
| PARAM_VALUE | 0 | p->path_cost | 2-5,7,19,100,2500 |
| PARAM_VALUE | 0 | p->port_no | 0-64 |
| PARAM_VALUE | 0 | p->priority | 32 |
| PARAM_VALUE | 0 | p->state | 4 |
| PARAM_VALUE | 0 | p->topology_change_ack | 0 |
| PARAM_VALUE | 0 | *p->dev->name | 0 |
| PARAM_VALUE | 1 | state | 0 |
| BUF_SIZE | 0 | p | 1392 |
| CAPPED_DATA | 0 | p->port_no | 1 |
| DATA_SOURCE | 0 | p | r _kzalloc_noprof |
| NOSPEC | 0 | p->dev->ifindex | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | p->dev->ifindex | 0-s32max[c] |
| NO_OVERFLOW_SIMPLE | 0 | p->dev->group | |
| HALF_LOCKED2 | global &rtnl_mutex |
net/bridge/br_stp_timer.c br_forward_delay_timer_expired() -> br_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->br | 4096-ptr_max |
| PARAM_VALUE | 0 | p->br->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | p->port_no | 0-u16max |
| PARAM_VALUE | 0 | p->state | 1 |
| PARAM_VALUE | 1 | state | 2 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &br->lock | ||
| TYPE_LOCK | (struct net_bridge)->lock |
net/bridge/br_stp_timer.c br_forward_delay_timer_expired() -> br_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->br | 4096-ptr_max |
| PARAM_VALUE | 0 | p->br->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | p->port_no | 0-u16max |
| PARAM_VALUE | 0 | p->state | 2 |
| PARAM_VALUE | 1 | state | 3 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &br->lock | ||
| TYPE_LOCK | (struct net_bridge)->lock |
net/bridge/br_netlink.c br_set_port_state() -> br_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->br | 4096-ptr_max |
| PARAM_VALUE | 0 | p->br->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | p->br->stp_enabled | 0,2-u32max |
| PARAM_VALUE | 0 | p->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | state | 0-4 |
| DATA_SOURCE | 0 | p | $0 |
| DATA_SOURCE | 1 | state | $1 |
| FUZZY_MAX | 1 | state | 4 |
| HARD_MAX | 1 | state | 4 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | bh | ||
| LOCK2 | 0 | &p->br->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 &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| TYPE_LOCK | (struct net_bridge)->lock |
net/bridge/br_stp_if.c br_init_port() -> br_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->br | 4096-ptr_max |
| PARAM_VALUE | 1 | state | 4 |
| BUF_SIZE | 0 | p | (-1),1216,1392 |
| BUF_SIZE | 0 | p | (-1),1216,1392 |
| CAPPED_DATA | 0 | p | 1 |
| DATA_SOURCE | 0 | p | $0 |
| NOSPEC | 0 | p->dev->ifindex | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | p->designated_port | 0-65534[c] |
| USER_DATA | 0 | p->dev->flags | 0-527362[c] |
| USER_DATA | 0 | p->dev->ifindex | 0-s32max[c] |
| USER_DATA | 0 | p->dev->mtu | 0-s32max[c] |
| NO_OVERFLOW_SIMPLE | 0 | p->dev->group | |
| NO_OVERFLOW_SIMPLE | 0 | p->dev->num_napi_configs | |
| NO_OVERFLOW_SIMPLE | 0 | p->dev->num_rx_queues | |
| NO_OVERFLOW_SIMPLE | 0 | p->dev->num_tx_queues | |
| NO_OVERFLOW_SIMPLE | 0 | p->dev->proto_down | |
| NO_OVERFLOW_SIMPLE | 0 | p->dev->real_num_rx_queues | |
| NO_OVERFLOW_SIMPLE | 0 | p->dev->real_num_tx_queues | |
| HALF_LOCKED2 | &br->lock | ||
| HALF_LOCKED2 | bh |
net/bridge/br_stp_if.c br_stp_disable_port() -> br_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->br | 4096-ptr_max |
| PARAM_VALUE | 0 | p->dev->rtnl_link_ops->priv_size | 0,8,32,48,56,88,112,120,144,160,224,240,256,296,616,624,728,736,744,1056,1128,1336,1616,2176,2240,2272,2560,3296,3720,9688-u64max |
| PARAM_VALUE | 1 | state | 0 |
| DATA_SOURCE | 0 | p | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &br->lock | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct net_bridge)->lock |
net/bridge/br_stp.c br_make_blocking() -> br_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->config_pending | 0 |
| PARAM_VALUE | 0 | p->dev->ethtool_ops->op_needs_rtnl | 0-4294967295 |
| PARAM_VALUE | 0 | p->state | 1-3,5-255 |
| PARAM_VALUE | 0 | p->topology_change_ack | 0 |
| PARAM_VALUE | 1 | state | 4 |
| DATA_SOURCE | 0 | p | $0 |
| FUZZY_MAX | 0 | p->state | 3 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &br->lock | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct net_bridge)->lock |
net/bridge/br_stp.c br_make_forwarding() -> br_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->br | 4096-ptr_max |
| PARAM_VALUE | 0 | p->dev->ethtool_ops->op_needs_rtnl | 0-4294967295 |
| PARAM_VALUE | 0 | p->state | 4 |
| PARAM_VALUE | 1 | state | 3 |
| DATA_SOURCE | 0 | p | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &br->lock | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct net_bridge)->lock |
net/bridge/br_stp.c br_make_forwarding() -> br_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->br | 4096-ptr_max |
| PARAM_VALUE | 0 | p->br->forward_delay | 1-u64max |
| PARAM_VALUE | 0 | p->br->stp_enabled | 1 |
| PARAM_VALUE | 0 | p->dev->ethtool_ops->op_needs_rtnl | 0-4294967295 |
| PARAM_VALUE | 0 | p->state | 4 |
| PARAM_VALUE | 1 | state | 1 |
| DATA_SOURCE | 0 | p | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &br->lock | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct net_bridge)->lock |
net/bridge/br_stp.c br_make_forwarding() -> br_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->br | 4096-ptr_max |
| PARAM_VALUE | 0 | p->br->forward_delay | 1-u64max |
| PARAM_VALUE | 0 | p->br->stp_enabled | 2-u32max |
| PARAM_VALUE | 0 | p->dev->ethtool_ops->op_needs_rtnl | 0-4294967295 |
| PARAM_VALUE | 0 | p->state | 4 |
| PARAM_VALUE | 1 | state | 2 |
| DATA_SOURCE | 0 | p | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &br->lock | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct net_bridge)->lock |
net/bridge/br_stp.c br_root_port_block() -> br_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | p->port_no | 0-u16max |
| PARAM_VALUE | 0 | p->state | 1-255 |
| PARAM_VALUE | 1 | state | 1 |
| DATA_SOURCE | 0 | p | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &br->lock | ||
| HALF_LOCKED2 | &br->lock | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct net_bridge)->lock |