Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/net/vxlan/vxlan_vnifilter.c vxlan_update_default_fdb_entry() -> vxlan_fdb_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vxlan | 4096-ptr_max |
| PARAM_VALUE | 0 | vxlan->cfg.flags | 131072-u32max |
| PARAM_VALUE | 0 | vxlan->hash_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | mac | 316652219926626304 |
| PARAM_VALUE | 2 | ip | 4096-ptr_max |
| PARAM_VALUE | 3 | state | 130 |
| PARAM_VALUE | 4 | flags | 3072 |
| PARAM_VALUE | 9 | ndm_flags | 2 |
| PARAM_VALUE | 10 | nhid | 0 |
| PARAM_VALUE | 11 | swdev_notify | 1 |
| PARAM_VALUE | 12 | extack | 4971238048455385088 |
| BUF_SIZE | 1 | mac | 8 |
| BUF_SIZE | 2 | ip | (-1)-0,28 |
| BUF_SIZE | 2 | ip | (-1)-0,28 |
| CAPPED_DATA | 0 | vxlan->net | 1 |
| CAPPED_DATA | 0 | vxlan->net->gen | 1 |
| DATA_SOURCE | 0 | vxlan | $0 |
| DATA_SOURCE | 2 | ip | $3 |
| DATA_SOURCE | 6 | src_vni | $1 |
| DATA_SOURCE | 7 | vni | $1 |
| DATA_SOURCE | 12 | extack | $4 |
| BIT_INFO | 0 | vxlan->cfg.flags | 0x20000,0xffffffffffffffff |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 8 | ifindex | unit_array_size |
| LOCK2 | bh | ||
| LOCK2 | 0 | &vxlan->hash_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 vxlan_dev)->hash_lock |
drivers/net/vxlan/vxlan_core.c vxlan_changelink() -> vxlan_fdb_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vxlan | 4096-ptr_max |
| PARAM_VALUE | 0 | vxlan->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | vxlan->dev->flags | 1-u32max |
| PARAM_VALUE | 0 | vxlan->hash_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | mac | 316652219926626304 |
| PARAM_VALUE | 2 | ip | 4101456282291687424 |
| PARAM_VALUE | 2 | ip->sa.sa_family | 1-u16max |
| PARAM_VALUE | 3 | state | 130 |
| PARAM_VALUE | 4 | flags | 3072 |
| PARAM_VALUE | 9 | ndm_flags | 2 |
| PARAM_VALUE | 10 | nhid | 0 |
| PARAM_VALUE | 11 | swdev_notify | 1 |
| PARAM_VALUE | 12 | extack | 4971238048455385088 |
| BUF_SIZE | 1 | mac | 8 |
| CAPPED_DATA | 0 | vxlan->net | 1 |
| CAPPED_DATA | 0 | vxlan->net->gen | 1 |
| CAPPED_DATA | 8 | ifindex | 1 |
| DATA_SOURCE | 12 | extack | $3 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 8 | ifindex | unit_array_size |
| LOCK2 | bh | ||
| LOCK2 | global &rtnl_mutex | ||
| LOCK2 | 0 | &vxlan->hash_lock | |
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | &ops->srcu | ||
| 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 | ||
| TYPE_LOCK | (struct vxlan_dev)->hash_lock |
drivers/net/vxlan/vxlan_core.c vxlan_dev_create() -> vxlan_fdb_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vxlan | 4096-ptr_max |
| PARAM_VALUE | 0 | vxlan->cfg.addrmax | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->cfg.df | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->cfg.dst_port | 0-u16max |
| PARAM_VALUE | 0 | vxlan->cfg.flags | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->cfg.label | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->cfg.label_policy | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->cfg.mtu | s32min-s32max |
| PARAM_VALUE | 0 | vxlan->cfg.no_share | 0-1 |
| PARAM_VALUE | 0 | vxlan->cfg.port_max | 0-u16max |
| PARAM_VALUE | 0 | vxlan->cfg.port_min | 0-u16max |
| PARAM_VALUE | 0 | vxlan->cfg.remote_ifindex | s32min-s32max |
| PARAM_VALUE | 0 | vxlan->cfg.remote_ip.sa.sa_family | 1-u16max |
| PARAM_VALUE | 0 | vxlan->cfg.remote_ip.sin.sin_addr.s_addr | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->cfg.remote_ip.sin.sin_family | 0-u16max |
| PARAM_VALUE | 0 | vxlan->cfg.remote_ip.sin.sin_port | 0-u16max |
| PARAM_VALUE | 0 | vxlan->cfg.remote_ip.sin6.sin6_family | 0-u16max |
| PARAM_VALUE | 0 | vxlan->cfg.remote_ip.sin6.sin6_flowinfo | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->cfg.remote_ip.sin6.sin6_port | 0-u16max |
| PARAM_VALUE | 0 | vxlan->cfg.remote_ip.sin6.sin6_scope_id | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->cfg.reserved_bits.vx_flags | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->cfg.reserved_bits.vx_vni | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->cfg.saddr.sa.sa_family | 1-u16max |
| PARAM_VALUE | 0 | vxlan->cfg.saddr.sin.sin_addr.s_addr | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->cfg.saddr.sin.sin_family | 0-u16max |
| PARAM_VALUE | 0 | vxlan->cfg.saddr.sin.sin_port | 0-u16max |
| PARAM_VALUE | 0 | vxlan->cfg.saddr.sin6.sin6_family | 0-u16max |
| PARAM_VALUE | 0 | vxlan->cfg.saddr.sin6.sin6_flowinfo | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->cfg.saddr.sin6.sin6_port | 0-u16max |
| PARAM_VALUE | 0 | vxlan->cfg.saddr.sin6.sin6_scope_id | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->cfg.tos | 0-255 |
| PARAM_VALUE | 0 | vxlan->cfg.ttl | 0-255 |
| PARAM_VALUE | 0 | vxlan->cfg.vni | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->curr_active_slave->dev->rx_mode_retry_timer.flags | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->default_dst.remote_ip.sin.sin_addr.s_addr | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->default_dst.remote_ip.sin.sin_family | 0-u16max |
| PARAM_VALUE | 0 | vxlan->default_dst.remote_ip.sin.sin_port | 0-u16max |
| PARAM_VALUE | 0 | vxlan->default_dst.remote_ip.sin6.sin6_family | 0-u16max |
| PARAM_VALUE | 0 | vxlan->default_dst.remote_ip.sin6.sin6_flowinfo | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->default_dst.remote_ip.sin6.sin6_port | 0-u16max |
| PARAM_VALUE | 0 | vxlan->default_dst.remote_ip.sin6.sin6_scope_id | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->default_dst.remote_vni | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->hash_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | vxlan->lowerdev->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | vxlan->lowerdev->rx_mode_retry_timer.flags | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->phy_dev->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | vxlan->phy_dev->rx_mode_retry_timer.flags | 0-4294967295 |
| PARAM_VALUE | 0 | vxlan->vf_netdev->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | vxlan->vf_netdev->rx_mode_retry_timer.flags | 0-4294967295 |
| PARAM_VALUE | 1 | mac | 316652219926626304 |
| PARAM_VALUE | 2 | ip | 4096-ptr_max |
| PARAM_VALUE | 3 | state | 130 |
| PARAM_VALUE | 4 | flags | 1536 |
| PARAM_VALUE | 5 | port | 0-u16max |
| PARAM_VALUE | 9 | ndm_flags | 2 |
| PARAM_VALUE | 10 | nhid | 0 |
| PARAM_VALUE | 11 | swdev_notify | 1 |
| PARAM_VALUE | 12 | extack | 4971238048455385088 |
| BUF_SIZE | 1 | mac | 8 |
| CAPPED_DATA | 8 | ifindex | 1 |
| DATA_SOURCE | 12 | extack | $3 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | vxlan->cfg.port_max | 0-u16max |
| USER_DATA | 0 | vxlan->cfg.port_min | 0-u16max |
| UNITS | 8 | ifindex | unit_array_size |
| LOCK2 | bh | ||
| LOCK2 | global &rtnl_mutex | ||
| LOCK2 | 0 | &vxlan->hash_lock | |
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | &ops->srcu | ||
| 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 | ||
| TYPE_LOCK | (struct vxlan_dev)->hash_lock |
drivers/net/vxlan/vxlan_core.c vxlan_fdb_add() -> vxlan_fdb_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vxlan | 4096-ptr_max |
| PARAM_VALUE | 0 | vxlan->default_dst.remote_ip.sa.sa_family | 2,10 |
| PARAM_VALUE | 0 | vxlan->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | vxlan->hash_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | ip | 8874738499944095744 |
| PARAM_VALUE | 2 | ip->sa.sa_family | 2,10 |
| PARAM_VALUE | 3 | state | 2-u16max |
| PARAM_VALUE | 4 | flags | 1-u16max |
| PARAM_VALUE | 9 | ndm_flags | 256-511 |
| PARAM_VALUE | 11 | swdev_notify | 1 |
| PARAM_VALUE | 12 | extack | 4971238048455385088 |
| PARAM_VALUE | 12 | extack->_msg | 0 |
| PARAM_VALUE | 12 | extack->bad_attr | 0 |
| PARAM_VALUE | 12 | extack->policy | 0 |
| CAPPED_DATA | 0 | vxlan->default_dst.remote_ip.sa.sa_family | 1 |
| CAPPED_DATA | 0 | vxlan->dev->nd_net.net | 1 |
| DATA_SOURCE | 1 | mac | $3 |
| DATA_SOURCE | 4 | flags | $5 |
| DATA_SOURCE | 12 | extack | $7 |
| BIT_INFO | 4 | flags | 0x1,0xffff |
| BIT_INFO | 9 | ndm_flags | 0x100,0x1ff |
| MEM_ZERO | 12 | extack | |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *mac | 0-255 |
| USER_DATA | 3 | state | 2-u16max |
| USER_DATA | 4 | flags | 1-u16max[u] |
| USER_DATA | 9 | ndm_flags | 256-511 |
| USER_PTR | 1 | mac | |
| LOCK2 | bh | ||
| LOCK2 | 0 | &vxlan->hash_lock | |
| 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 | ||
| TYPE_LOCK | (struct vxlan_dev)->hash_lock |
drivers/net/vxlan/vxlan_core.c vxlan_fdb_external_learn_add() -> vxlan_fdb_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vxlan | 4096-ptr_max |
| PARAM_VALUE | 0 | vxlan->hash_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | ip | 4096-ptr_max |
| PARAM_VALUE | 3 | state | 2 |
| PARAM_VALUE | 4 | flags | 1280 |
| PARAM_VALUE | 9 | ndm_flags | 19 |
| PARAM_VALUE | 10 | nhid | 0 |
| PARAM_VALUE | 11 | swdev_notify | 0 |
| BUF_SIZE | 1 | mac | 6 |
| PREEMPT_ADD | <- disables preempt | ||
| UNITS | 8 | ifindex | unit_array_size |
| LOCK2 | bh | ||
| LOCK2 | 0 | &vxlan->hash_lock | |
| TYPE_LOCK | (struct vxlan_dev)->hash_lock |
drivers/net/vxlan/vxlan_core.c vxlan_snoop() -> vxlan_fdb_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vxlan | 4096-ptr_max |
| PARAM_VALUE | 0 | vxlan->cfg.flags | 8192-u32max |
| PARAM_VALUE | 0 | vxlan->fdb_hash_tbl.p.hashfn | 4096-ptr_max |
| PARAM_VALUE | 0 | vxlan->hash_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | mac | 4096-ptr_max |
| PARAM_VALUE | 2 | ip | 2188733320260972544,6820781443105198080 |
| PARAM_VALUE | 2 | ip->sa.sa_family | 2,10 |
| PARAM_VALUE | 3 | state | 2 |
| PARAM_VALUE | 4 | flags | 1536 |
| PARAM_VALUE | 9 | ndm_flags | 2 |
| PARAM_VALUE | 10 | nhid | 0 |
| PARAM_VALUE | 11 | swdev_notify | 1 |
| PARAM_VALUE | 12 | extack | 0 |
| BUF_SIZE | 1 | mac | 6 |
| BUF_SIZE | 1 | mac | 6 |
| DATA_SOURCE | 1 | mac | $2 |
| DATA_SOURCE | 2 | ip | $1 |
| DATA_SOURCE | 6 | src_vni | $4 |
| BIT_INFO | 2 | ip->sa.sa_family | 0x2,0xa |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 8 | ifindex | unit_array_size |
| LOCK2 | 0 | &vxlan->hash_lock | |
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct vxlan_dev)->hash_lock |