Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

drivers/net/ethernet/intel/ixgbe/ixgbe_main.c ixgbe_ndo_fdb_add() -> ndo_dflt_fdb_add()

Type Parameter Key Value
PARAM_VALUE 0 ndm 4096-ptr_max
PARAM_VALUE 0 ndm->ndm_ifindex s32min-(-1),1-s32max
PARAM_VALUE 1 tb 4096-ptr_max
PARAM_VALUE 1 (*tb).nla_len 0
PARAM_VALUE 1 (*tb).nla_type 0
PARAM_VALUE 2 dev 4096-ptr_max
PARAM_VALUE 2 dev->netdev_ops->ndo_fdb_add 0,4096-ptr_max
PARAM_VALUE 2 dev->type 1
PARAM_VALUE 3 addr 4096-ptr_max
PARAM_VALUE 3 *addr 1-255
PARAM_VALUE 4 vid 0-4094
PARAM_VALUE 5 flags 1-u16max
BUF_SIZE 1 tb 144
BUF_SIZE 1 tb 144
CAPPED_DATA 0 ndm->ndm_ifindex 1
CAPPED_DATA 2 dev->ifindex 1
DATA_SOURCE 0 ndm $0
DATA_SOURCE 1 tb $1
DATA_SOURCE 2 dev $2
DATA_SOURCE 3 addr $3
DATA_SOURCE 4 vid $4
DATA_SOURCE 5 flags $5
BIT_INFO 5 flags 0x1,0xffff
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 ndm->ndm_family 0-255
USER_DATA 0 ndm->ndm_flags 0-255
USER_DATA 0 ndm->ndm_ifindex s32min-(-1),1-s32max[c]
USER_DATA 0 ndm->ndm_pad1 0-255
USER_DATA 0 ndm->ndm_pad2 0-u16max
USER_DATA 0 ndm->ndm_state 0-u16max
USER_DATA 0 ndm->ndm_type 0-255
USER_DATA 3 *addr 1-255
USER_DATA 5 flags 1-u16max[u]
USER_PTR 0 ndm
USER_PTR 3 addr
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

drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c qlcnic_fdb_add() -> ndo_dflt_fdb_add()

Type Parameter Key Value
PARAM_VALUE 0 ndm 4096-ptr_max
PARAM_VALUE 0 ndm->ndm_ifindex s32min-(-1),1-s32max
PARAM_VALUE 1 tb 4096-ptr_max
PARAM_VALUE 1 (*tb).nla_len 0
PARAM_VALUE 1 (*tb).nla_type 0
PARAM_VALUE 2 dev 4096-ptr_max
PARAM_VALUE 2 dev->netdev_ops->ndo_fdb_add 0,4096-ptr_max
PARAM_VALUE 2 dev->priv->fdb_mac_learn 0
PARAM_VALUE 2 dev->type 1
PARAM_VALUE 4 vid 0-4094
PARAM_VALUE 5 flags 1-u16max
BUF_SIZE 1 tb 144
BUF_SIZE 1 tb 144
CAPPED_DATA 0 ndm->ndm_ifindex 1
CAPPED_DATA 2 dev->ifindex 1
DATA_SOURCE 0 ndm $0
DATA_SOURCE 1 tb $1
DATA_SOURCE 2 dev $2
DATA_SOURCE 3 addr $3
DATA_SOURCE 4 vid $4
DATA_SOURCE 5 flags $5
BIT_INFO 5 flags 0x1,0xffff
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 ndm->ndm_family 0-255
USER_DATA 0 ndm->ndm_flags 0-255
USER_DATA 0 ndm->ndm_ifindex s32min-(-1),1-s32max[c]
USER_DATA 0 ndm->ndm_pad1 0-255
USER_DATA 0 ndm->ndm_pad2 0-u16max
USER_DATA 0 ndm->ndm_state 0-u16max
USER_DATA 0 ndm->ndm_type 0-255
USER_DATA 3 *addr 0-255
USER_DATA 5 flags 1-u16max[u]
USER_PTR 0 ndm
USER_PTR 3 addr
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

drivers/net/ethernet/intel/igb/igb_main.c igb_ndo_fdb_add() -> ndo_dflt_fdb_add()

Type Parameter Key Value
PARAM_VALUE 0 ndm 4096-ptr_max
PARAM_VALUE 0 ndm->ndm_ifindex s32min-(-1),1-s32max
PARAM_VALUE 1 tb 4096-ptr_max
PARAM_VALUE 1 (*tb).nla_len 0
PARAM_VALUE 1 (*tb).nla_type 0
PARAM_VALUE 2 dev 4096-ptr_max
PARAM_VALUE 2 dev->netdev_ops->ndo_fdb_add 0,4096-ptr_max
PARAM_VALUE 2 dev->type 1
PARAM_VALUE 3 addr 4096-ptr_max
PARAM_VALUE 3 *addr 1-255
PARAM_VALUE 4 vid 0-4094
PARAM_VALUE 5 flags 1-u16max
BUF_SIZE 1 tb 144
BUF_SIZE 1 tb 144
CAPPED_DATA 0 ndm->ndm_ifindex 1
CAPPED_DATA 2 dev->ifindex 1
DATA_SOURCE 0 ndm $0
DATA_SOURCE 1 tb $1
DATA_SOURCE 2 dev $2
DATA_SOURCE 3 addr $3
DATA_SOURCE 4 vid $4
DATA_SOURCE 5 flags $5
BIT_INFO 5 flags 0x1,0xffff
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 ndm->ndm_family 0-255
USER_DATA 0 ndm->ndm_flags 0-255
USER_DATA 0 ndm->ndm_ifindex s32min-(-1),1-s32max[c]
USER_DATA 0 ndm->ndm_pad1 0-255
USER_DATA 0 ndm->ndm_pad2 0-u16max
USER_DATA 0 ndm->ndm_state 0-u16max
USER_DATA 0 ndm->ndm_type 0-255
USER_DATA 3 *addr 1-255
USER_DATA 5 flags 1-u16max[u]
USER_PTR 0 ndm
USER_PTR 3 addr
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/core/rtnetlink.c rtnl_fdb_add() -> ndo_dflt_fdb_add()

Type Parameter Key Value
PARAM_VALUE 0 ndm 4096-ptr_max
PARAM_VALUE 0 ndm->ndm_ifindex s32min-(-1),1-s32max
PARAM_VALUE 1 tb 4096-ptr_max
PARAM_VALUE 1 (*tb).nla_len 0
PARAM_VALUE 1 (*tb).nla_type 0
PARAM_VALUE 2 dev 4096-ptr_max
PARAM_VALUE 2 dev->netdev_ops 4096-ptr_max
PARAM_VALUE 2 dev->netdev_ops->ndo_fdb_add 0
PARAM_VALUE 2 dev->type 1
PARAM_VALUE 4 vid 0-4094
PARAM_VALUE 5 flags 1-u16max
BUF_SIZE 1 tb 144
CAPPED_DATA 0 ndm->ndm_ifindex 1
CAPPED_DATA 2 dev->ifindex 1
DATA_SOURCE 0 ndm r nlmsg_data
DATA_SOURCE 2 dev r __dev_get_by_index
DATA_SOURCE 3 addr r nla_data
BIT_INFO 0 ndm->ndm_flags 0x2,0xff
BIT_INFO 5 flags 0x1,0xffff
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 ndm->ndm_family 0-255
USER_DATA 0 ndm->ndm_flags 0-255
USER_DATA 0 ndm->ndm_ifindex s32min-(-1),1-s32max[c]
USER_DATA 0 ndm->ndm_pad1 0-255
USER_DATA 0 ndm->ndm_pad2 0-u16max
USER_DATA 0 ndm->ndm_state 0-u16max
USER_DATA 0 ndm->ndm_type 0-255
USER_DATA 3 *addr 0-255
USER_DATA 5 flags 1-u16max[u]
USER_PTR 0 ndm
USER_PTR 3 addr
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