Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 14 files:
- drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
- drivers/net/macsec.c
- drivers/net/macvlan.c
- drivers/s390/net/qeth_l2_main.c
- drivers/scsi/fcoe/fcoe.c
- include/linux/if_macvlan.h, line 110
- net/8021q/vlan.c, line 313
- net/8021q/vlan_dev.c
- net/bridge/br_fdb.c
- net/core/dev_addr_lists.c, line 827
- net/core/dev_addr_lists_test.c
- net/dsa/port.c, line 1061
- net/dsa/user.c
- net/packet/af_packet.c, line 3680
Smatch caller information:
drivers/net/macsec.c macsec_dev_open() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 1 | addr | 32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *addr | 0-255 |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/macsec.c macsec_set_mac_address() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| BUF_SIZE | 1 | addr | 14 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &dev_addr_sem | ||
| HALF_LOCKED2 | global &rtnl_mutex |
net/packet/af_packet.c packet_dev_mc() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | 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 |
| BUF_SIZE | 1 | addr | 32 |
| CAPPED_DATA | 0 | dev->addr_len | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &rtnl_mutex |
net/bridge/br_fdb.c br_fdb_sync_static() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->priv_flags | 4096-u32max |
| BUF_SIZE | 1 | addr | 6 |
| BIT_INFO | 0 | dev->priv_flags | 0x1000,0xffffffff |
| NOSPEC | 0 | dev->ifindex | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | dev->flags | 0-527874[c] |
| USER_DATA | 0 | dev->ifindex | 0-s32max[c] |
| NO_OVERFLOW_SIMPLE | 0 | dev->group | |
| UNITS | 0 | dev | unit_byte |
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | global &rtnl_mutex |
net/bridge/br_fdb.c fdb_add_hw_addr() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| BUF_SIZE | 1 | addr | (-1),6,14,32 |
| BUF_SIZE | 1 | addr | (-1),6,14,32 |
| DATA_SOURCE | 1 | addr | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | dev->flags | 0-527874[c] |
| USER_DATA | 1 | *addr | 0-255 |
| UNITS | 0 | dev | unit_byte |
| USER_PTR | 1 | addr | |
| LOCK2 | &br->hash_lock | ||
| LOCK2 | bh | ||
| TYPE_LOCK | (struct net_bridge)->hash_lock |
drivers/scsi/fcoe/fcoe.c fcoe_interface_setup() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->addr_len | 0-255 |
| PARAM_VALUE | 0 | dev->flags | 1024-u32max |
| PARAM_VALUE | 0 | dev->netdev_ops | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->netdev_ops->ndo_fcoe_enable | 0,2923136493182525440,3532100838410285056,4317290564582428672 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| BUF_SIZE | 1 | addr | 6 |
| CAPPED_DATA | 0 | dev | 1 |
| DATA_SOURCE | 0 | dev | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &fcoe_config_mutex | ||
| LOCK2 | global &ft_mutex | ||
| LOCK2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | &of->mutex |
drivers/scsi/fcoe/fcoe.c fcoe_interface_setup() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->addr_list_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->netdev_ops | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->netdev_ops->ndo_fcoe_enable | 0,2923136493182525440,3532100838410285056,4317290564582428672 |
| BUF_SIZE | 1 | addr | 6 |
| CAPPED_DATA | 0 | dev | 1 |
| CAPPED_DATA | 0 | dev->addr_len | 1 |
| DATA_SOURCE | 0 | dev | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &fcoe_config_mutex | ||
| LOCK2 | global &ft_mutex | ||
| LOCK2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | &of->mutex |
drivers/scsi/fcoe/fcoe.c fcoe_update_src_mac() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| BUF_SIZE | 1 | addr | 6 |
| BUF_SIZE | 1 | addr | 6 |
| DATA_SOURCE | 1 | addr | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &fip->ctlr_mutex |
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c macvlan_release_l2fw_offload() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 1 | addr | 32 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/macvlan.c macvlan_open() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| BUF_SIZE | 1 | addr | 32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *addr | 0-255 |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/macvlan.c macvlan_sync_address() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 1 | addr | 32,126 |
| BUF_SIZE | 1 | addr | 32,126 |
| DATA_SOURCE | 1 | addr | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c stmmac_test_mcfilt() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| BUF_SIZE | 1 | addr | 6 |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c stmmac_test_pfilt() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| BUF_SIZE | 1 | addr | 6 |
| HALF_LOCKED2 | global &rtnl_mutex |
net/dsa/port.c dsa_port_bridge_host_fdb_add() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->priv_flags | 4096-u32max |
| BUF_SIZE | 1 | addr | 6 |
| BUF_SIZE | 1 | addr | 6 |
| DATA_SOURCE | 0 | dev | r dsa_port_to_conduit |
| DATA_SOURCE | 1 | addr | $1 |
| BIT_INFO | 0 | dev->priv_flags | 0x1000,0xffffffff |
| HALF_LOCKED2 | &pool->lock |
net/core/dev_addr_lists_test.c dev_addr_test_snapshot_add_and_remove() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 8104357071597699072 |
| BUF_SIZE | 0 | dev | s32min,(-10),1-s32max |
| BUF_SIZE | 0 | dev | s32min,(-10),1-s32max |
| BUF_SIZE | 1 | addr | 6 |
| LOCK2 | global &rtnl_mutex |
net/core/dev_addr_lists_test.c dev_addr_test_snapshot_add_and_remove() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->addr_list_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | addr | 8104357071597699072 |
| BUF_SIZE | 0 | dev | s32min,(-10),1-s32max |
| BUF_SIZE | 0 | dev | s32min,(-10),1-s32max |
| BUF_SIZE | 1 | addr | 6 |
| CAPPED_DATA | 0 | dev->addr_len | 1 |
| LOCK2 | global &rtnl_mutex |
net/core/dev_addr_lists_test.c dev_addr_test_snapshot_add_and_remove() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->addr_list_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->uc.tree.rb_node | 4096-ptr_max |
| PARAM_VALUE | 1 | addr | 8104357071597699072 |
| BUF_SIZE | 0 | dev | s32min,(-10),1-s32max |
| BUF_SIZE | 0 | dev | s32min,(-10),1-s32max |
| BUF_SIZE | 1 | addr | 6 |
| CAPPED_DATA | 0 | dev->addr_len | 1 |
| LOCK2 | global &rtnl_mutex |
net/core/dev_addr_lists_test.c dev_addr_test_snapshot_benchmark() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 4484795631571066880 |
| BUF_SIZE | 0 | dev | s32min,(-10),1-s32max |
| BUF_SIZE | 0 | dev | s32min,(-10),1-s32max |
| BUF_SIZE | 1 | addr | 6 |
| LOCK2 | global &rtnl_mutex |
net/core/dev_addr_lists_test.c dev_addr_test_snapshot_readd_during_unsync() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 506624489994240000 |
| BUF_SIZE | 0 | dev | s32min,(-10),1-s32max |
| BUF_SIZE | 0 | dev | s32min,(-10),1-s32max |
| BUF_SIZE | 1 | addr | 6 |
| LOCK2 | global &rtnl_mutex |
net/core/dev_addr_lists_test.c dev_addr_test_snapshot_readd_during_unsync() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->addr_list_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->priv->addr_seen | 0 |
| PARAM_VALUE | 0 | dev->priv->addr_synced | 0 |
| PARAM_VALUE | 0 | dev->priv->addr_unsynced | 0 |
| PARAM_VALUE | 0 | dev->uc.tree.rb_node | 4096-ptr_max |
| PARAM_VALUE | 1 | addr | 506624489994240000 |
| BUF_SIZE | 0 | dev | s32min,(-10),1-s32max |
| BUF_SIZE | 0 | dev | s32min,(-10),1-s32max |
| BUF_SIZE | 1 | addr | 6 |
| CAPPED_DATA | 0 | dev->addr_len | 1 |
| LOCK2 | global &rtnl_mutex |
net/core/dev_addr_lists_test.c dev_addr_test_snapshot_remove_during_sync() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 4196350205490917376 |
| BUF_SIZE | 0 | dev | s32min,(-10),1-s32max |
| BUF_SIZE | 0 | dev | s32min,(-10),1-s32max |
| BUF_SIZE | 1 | addr | 6 |
| LOCK2 | global &rtnl_mutex |
net/core/dev_addr_lists_test.c dev_addr_test_snapshot_sync() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 54480583788064768 |
| BUF_SIZE | 0 | dev | s32min,(-10),1-s32max |
| BUF_SIZE | 0 | dev | s32min,(-10),1-s32max |
| BUF_SIZE | 1 | addr | 6 |
| LOCK2 | global &rtnl_mutex |
net/8021q/vlan_dev.c vlan_dev_open() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev_addr | 4096-ptr_max |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| BUF_SIZE | 1 | addr | 32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *addr | 0-255 |
| UNITS | 0 | dev | unit_byte |
| HALF_LOCKED2 | global &rtnl_mutex |
net/8021q/vlan_dev.c vlan_dev_set_mac_address() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev_addr | 4096-ptr_max |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| BUF_SIZE | 1 | addr | 14 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | dev | unit_byte |
| HALF_LOCKED2 | global &dev_addr_sem | ||
| HALF_LOCKED2 | global &rtnl_mutex |
net/8021q/vlan.c vlan_sync_address() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev_addr | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->vlan_info | 1-u64max |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| BUF_SIZE | 1 | addr | 32 |
| DATA_SOURCE | 0 | dev | $0 |
| NOCHECK_CALL |
drivers/net/ethernet/intel/i40e/i40e_main.c macvlan_release_l2fw_offload() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| BUF_SIZE | 1 | addr | 32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *addr | 0-255 |
| HALF_LOCKED2 | &dev->ethtool->rss_lock | ||
| HALF_LOCKED2 | &dev->lock |
net/dsa/user.c dsa_user_host_uc_install() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev_addr | 4096-ptr_max |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| BUF_SIZE | 1 | addr | 14,32 |
| BUF_SIZE | 1 | addr | 14,32 |
| DATA_SOURCE | 0 | dev | r dsa_user_to_conduit |
| DATA_SOURCE | 1 | addr | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *addr | 0-255 |
| HALF_LOCKED2 | global &rtnl_mutex |
net/dsa/user.c dsa_user_sync_uc() -> dev_uc_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 1 | addr | 32 |
| BUF_SIZE | 1 | addr | 32 |
| DATA_SOURCE | 0 | dev | r dsa_user_to_conduit |
| DATA_SOURCE | 1 | addr | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->addr_list_lock | ||
| HALF_LOCKED2 | bh |