Defined in 1 files as a function:

Referenced in 7 files:

Smatch caller information:

net/bridge/br_vlan_options.c br_vlan_process_options() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 1-u64max
DATA_SOURCE 0 v $2
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 &pool->lock
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

net/bridge/br_vlan_options.c br_vlan_process_options() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 1-u64max
DATA_SOURCE 0 v $3
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 &pool->lock
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

net/bridge/br_vlan_options.c br_vlan_process_options() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 1-u64max
DATA_SOURCE 0 v r br_vlan_find
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 v->br_mcast_ctx.multicast_router
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 &pool->lock
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

net/bridge/br_fdb.c br_fdb_add() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 1-u64max
DATA_SOURCE 0 v r br_vlan_find
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 &pool->lock
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

net/bridge/br_fdb.c br_fdb_add() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
CAPPED_DATA 0 &v->vlist 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 &pool->lock
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

net/bridge/br_fdb.c br_fdb_change_mac_address() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
CAPPED_DATA 0 &v->vlist 1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &br->hash_lock
LOCK2 bh
HALF_LOCKED2 &br->lock
TYPE_LOCK (struct net_bridge)->hash_lock

net/bridge/br_fdb.c br_fdb_delete() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
CAPPED_DATA 0 &v->vlist 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 &pool->lock
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

net/bridge/br_fdb.c br_fdb_insert_locals_per_vlan_port() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
CAPPED_DATA 0 &v->vlist 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &rtnl_mutex
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 &ops->srcu
HALF_LOCKED2 &pool->lock
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 &rx_queue_mutex

net/bridge/br_fdb.c fdb_delete_local() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 1-u64max
DATA_SOURCE 0 v r br_vlan_find
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &br->hash_lock
LOCK2 bh
HALF_LOCKED2 &br->lock
TYPE_LOCK (struct net_bridge)->hash_lock

net/bridge/br_netlink_tunnel.c __get_num_vlan_tunnel_infos() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read

net/bridge/br_netlink_tunnel.c br_fill_vlan_tunnel_info() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read

net/bridge/br_vlan.c __allowed_ingress() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 1-u64max
DATA_SOURCE 0 v r br_vlan_find
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 bh
HALF_LOCKED2 rcu_read

net/bridge/br_vlan.c __br_vlan_set_default_pvid() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 1-u64max
DATA_SOURCE 0 v r br_vlan_find
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &rtnl_mutex
HALF_LOCKED2 &of->mutex

net/bridge/br_vlan.c __vlan_add() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
BUF_SIZE 0 v 1304
BUF_SIZE 0 v->stats (-1),32
DATA_SOURCE 0 v $0
NOSPEC 0 v->vid
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 v->flags 1-65533[c]
USER_DATA 0 v->vid 1-4094
NO_OVERFLOW_SIMPLE 0 v->br->vlan_proto
HALF_LOCKED2 global &rtnl_mutex

net/bridge/br_vlan.c __vlan_add() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
BUF_SIZE 0 v 1304
BUF_SIZE 0 v->stats 32,u64max
DATA_SOURCE 0 v $0
NOSPEC 0 v->br_mcast_ctx.vlan->vid
NOSPEC 0 v->port_mcast_ctx.vlan->vid
NOSPEC 0 v->vid
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 v->br_mcast_ctx.vlan->flags 1-65533[c]
USER_DATA 0 v->br_mcast_ctx.vlan->vid 1-4094
USER_DATA 0 v->flags 1-65533[c]
USER_DATA 0 v->port_mcast_ctx.port->designated_port 0-65534[c]
USER_DATA 0 v->port_mcast_ctx.vlan->flags 1-65533[c]
USER_DATA 0 v->port_mcast_ctx.vlan->vid 1-4094
USER_DATA 0 v->vid 1-4094
NO_OVERFLOW_SIMPLE 0 v->br->vlan_proto
NO_OVERFLOW_SIMPLE 0 v->br_mcast_ctx.br->vlan_proto
HALF_LOCKED2 global &rtnl_mutex

net/bridge/br_vlan.c __vlan_add() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
BUF_SIZE 0 v 1304
BUF_SIZE 0 v->stats 32,u64max
DATA_SOURCE 0 v $0
NOSPEC 0 v->br_mcast_ctx.vlan->vid
NOSPEC 0 v->port_mcast_ctx.vlan->vid
NOSPEC 0 v->vid
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 v->br_mcast_ctx.vlan->flags 1-65533[c]
USER_DATA 0 v->br_mcast_ctx.vlan->vid 1-4094
USER_DATA 0 v->flags 1-65533[c]
USER_DATA 0 v->port_mcast_ctx.port->designated_port 0-65534[c]
USER_DATA 0 v->port_mcast_ctx.vlan->flags 1-65533[c]
USER_DATA 0 v->port_mcast_ctx.vlan->vid 1-4094
USER_DATA 0 v->vid 1-4094
NO_OVERFLOW_SIMPLE 0 v->br->vlan_proto
NO_OVERFLOW_SIMPLE 0 v->br_mcast_ctx.br->vlan_proto
HALF_LOCKED2 global &rtnl_mutex

net/bridge/br_vlan.c __vlan_del() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
DATA_SOURCE 0 v $0
RX_PATH
TASK_NOT_RUNNING

net/bridge/br_vlan.c br_allowed_egress() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 1-u64max
DATA_SOURCE 0 v r br_vlan_find
RX_PATH
TASK_NOT_RUNNING

net/bridge/br_vlan.c br_handle_vlan() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 1-u64max
DATA_SOURCE 0 v r br_vlan_find
RX_PATH
TASK_NOT_RUNNING

net/bridge/br_vlan.c br_vlan_dump_dev() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read

net/bridge/br_vlan.c br_vlan_fill_forward_path_mode() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 1-u64max
DATA_SOURCE 0 v r br_vlan_find
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &flow_offload_mutex
HALF_LOCKED2 global &mtk_flow_offload_mutex
HALF_LOCKED2 rcu_read

net/bridge/br_vlan.c br_vlan_notify() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 1-u64max
DATA_SOURCE 0 v r br_vlan_find
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &rtnl_mutex

net/bridge/br_vlan.c vlan_default_pvid() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 1-u64max
DATA_SOURCE 0 v r br_vlan_lookup
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &rtnl_mutex
HALF_LOCKED2 &of->mutex

net/bridge/br_switchdev.c br_switchdev_vlan_replay_group() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
CAPPED_DATA 0 &v->vlist 1

net/bridge/br_netlink.c __get_num_vlan_infos() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read

net/bridge/br_netlink.c br_fill_ifvlaninfo() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read

net/bridge/br_netlink.c br_fill_ifvlaninfo_compressed() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read

net/bridge/br_multicast.c br_multicast_update_vlan_mcast_ctx() -> br_vlan_should_use()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
DATA_SOURCE 0 v $0
RX_PATH
TASK_NOT_RUNNING