Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c i40e_alloc_vsi_res() -> i40e_add_mac_filter()

Type Parameter Key Value
PARAM_VALUE 0 vsi 4096-ptr_max
PARAM_VALUE 0 vsi->mac_filter_hash_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 macaddr 4096-ptr_max
BUF_SIZE 1 macaddr 6
DATA_SOURCE 0 vsi r i40e_vsi_setup
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 vsi->back->hw.aq.asq_last_status 0-11,13-255[c][u]
USER_DATA 0 vsi->info.pvid 1-u16max
LOCK2 bh
LOCK2 0 &vsi->mac_filter_hash_lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &pdev->dev.mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &pci_rescan_remove_lock
TYPE_LOCK (struct i40e_vsi)->mac_filter_hash_lock

drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c i40e_alloc_vsi_res() -> i40e_add_mac_filter()

Type Parameter Key Value
PARAM_VALUE 0 vsi 4096-ptr_max
PARAM_VALUE 0 vsi->mac_filter_hash_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 macaddr 6004978218292387840
BUF_SIZE 1 macaddr 6
DATA_SOURCE 0 vsi r i40e_vsi_setup
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 vsi->back->hw.aq.asq_last_status 0-11,13-255[c][u]
USER_DATA 0 vsi->info.pvid 1-u16max
LOCK2 bh
LOCK2 0 &vsi->mac_filter_hash_lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &pdev->dev.mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &pci_rescan_remove_lock
TYPE_LOCK (struct i40e_vsi)->mac_filter_hash_lock

drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c i40e_vc_add_mac_addr_msg() -> i40e_add_mac_filter()

Type Parameter Key Value
PARAM_VALUE 0 vsi 4096-ptr_max
PARAM_VALUE 0 vsi->mac_filter_hash_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 macaddr 0,4096-ptr_max
BUF_SIZE 1 macaddr 6
PREEMPT_ADD <- disables preempt
LOCK2 bh
LOCK2 0 &vsi->mac_filter_hash_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct i40e_vsi)->mac_filter_hash_lock

drivers/net/ethernet/intel/i40e/i40e_main.c i40e_addr_sync() -> i40e_add_mac_filter()

Type Parameter Key Value
BUF_SIZE 1 macaddr 32
BUF_SIZE 1 macaddr 32
DATA_SOURCE 1 macaddr $1

drivers/net/ethernet/intel/i40e/i40e_main.c i40e_config_netdev() -> i40e_add_mac_filter()

Type Parameter Key Value
PARAM_VALUE 0 vsi 4096-ptr_max
PARAM_VALUE 0 vsi->alloc_queue_pairs 1
PARAM_VALUE 0 vsi->back 4096-ptr_max
PARAM_VALUE 0 vsi->back->flags 4096-ptr_max
PARAM_VALUE 0 vsi->back->hw.aq.asq_last_status 0-255
PARAM_VALUE 0 vsi->back->hw.aq.asq_mutex.dep_map->name 0-255
PARAM_VALUE 0 vsi->back->hw.aq.asq_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 vsi->back->hw.aq.asq_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 vsi->back->hw.aq.asq_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 vsi->back->hw.aq.asq_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 vsi->back->hw.aq.asq_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 vsi->back->hw.aq.asq_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 vsi->back->hw.aq.asq_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter 0-s32max
PARAM_VALUE 0 vsi->back->hw.aq.asq_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 vsi->back->hw.aq.asq_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 vsi->back->hw.caps 4096-ptr_max
PARAM_VALUE 0 vsi->mac_filter_hash_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 vsi->netdev 4096-ptr_max
PARAM_VALUE 0 vsi->type 0
PARAM_VALUE 1 macaddr 6907553157140557824
BUF_SIZE 0 vsi->netdev s32min-s32max
BUF_SIZE 1 macaddr 6
CAPPED_DATA 0 vsi->netdev->num_rx_queues 1
CAPPED_DATA 0 vsi->netdev->num_tx_queues 1
DATA_SOURCE 0 vsi $0
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 bh
LOCK2 0 &vsi->mac_filter_hash_lock
TYPE_LOCK (struct i40e_vsi)->mac_filter_hash_lock

drivers/net/ethernet/intel/i40e/i40e_main.c i40e_config_netdev() -> i40e_add_mac_filter()

Type Parameter Key Value
PARAM_VALUE 0 vsi 4096-ptr_max
PARAM_VALUE 0 vsi->alloc_queue_pairs 1
PARAM_VALUE 0 vsi->back 4096-ptr_max
PARAM_VALUE 0 vsi->back->flags 4096-ptr_max
PARAM_VALUE 0 vsi->back->hw.caps 4096-ptr_max
PARAM_VALUE 0 vsi->mac_filter_hash_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 vsi->netdev 4096-ptr_max
PARAM_VALUE 0 vsi->type 1-u32max
PARAM_VALUE 1 macaddr 6907553157140557824
BUF_SIZE 0 vsi->netdev s32min-s32max
BUF_SIZE 1 macaddr 6
CAPPED_DATA 0 vsi->netdev->num_rx_queues 1
CAPPED_DATA 0 vsi->netdev->num_tx_queues 1
DATA_SOURCE 0 vsi $0
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 bh
LOCK2 0 &vsi->mac_filter_hash_lock
TYPE_LOCK (struct i40e_vsi)->mac_filter_hash_lock

drivers/net/ethernet/intel/i40e/i40e_main.c i40e_config_netdev() -> i40e_add_mac_filter()

Type Parameter Key Value
PARAM_VALUE 0 vsi 4096-ptr_max
PARAM_VALUE 0 vsi->alloc_queue_pairs 1
PARAM_VALUE 0 vsi->back 4096-ptr_max
PARAM_VALUE 0 vsi->back->flags 4096-ptr_max
PARAM_VALUE 0 vsi->back->hw.caps 4096-ptr_max
PARAM_VALUE 0 vsi->mac_filter_hash_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 vsi->netdev 4096-ptr_max
PARAM_VALUE 1 macaddr 4775664511131574272
BUF_SIZE 0 vsi->netdev s32min-s32max
BUF_SIZE 1 macaddr 6
CAPPED_DATA 0 vsi->netdev->num_rx_queues 1
CAPPED_DATA 0 vsi->netdev->num_tx_queues 1
DATA_SOURCE 0 vsi $0
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 bh
LOCK2 0 &vsi->mac_filter_hash_lock
TYPE_LOCK (struct i40e_vsi)->mac_filter_hash_lock

drivers/net/ethernet/intel/i40e/i40e_main.c i40e_set_mac() -> i40e_add_mac_filter()

Type Parameter Key Value
PARAM_VALUE 0 vsi 4096-ptr_max
PARAM_VALUE 0 vsi->back 4096-ptr_max
PARAM_VALUE 0 vsi->back->state 4096-ptr_max
PARAM_VALUE 0 vsi->mac_filter_hash_lock.rlock.dep_map->name 0-255
BUF_SIZE 1 macaddr 32
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 bh
LOCK2 0 &vsi->mac_filter_hash_lock
HALF_LOCKED2 global &dev_addr_sem
HALF_LOCKED2 global &rtnl_mutex
TYPE_LOCK (struct i40e_vsi)->mac_filter_hash_lock