Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c mlx5_ipsec_create_sa_ctx() -> mlx5_create_encryption_key()

Type Parameter Key Value
PARAM_VALUE 1 key 0
PARAM_VALUE 2 sz_bytes 0
PARAM_VALUE 3 key_type 2
PARAM_VALUE 4 p_key_id 4096-ptr_max
BUF_SIZE 1 key 32
RX_PATH
TASK_NOT_RUNNING
UNITS 0 mdev unit_byte
HALF_LOCKED2 &bond->ipsec_lock
HALF_LOCKED2 global &uld_mutex
HALF_LOCKED2 rcu_read

drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp.c mlx5e_psp_assoc_add() -> mlx5_create_encryption_key()

Type Parameter Key Value
PARAM_VALUE 2 sz_bytes 0,16,32
PARAM_VALUE 3 key_type 6
BUF_SIZE 1 key 32
TASK_NOT_RUNNING
UNITS 0 mdev unit_byte
LOCK2 sk
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &devlink->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 &dpll_lock
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &net_dm_mutex
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex
HALF_LOCKED2 rcu_read

drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c mlx5e_macsec_add_rxsa() -> mlx5_create_encryption_key()

Type Parameter Key Value
PARAM_VALUE 3 key_type 4
PARAM_VALUE 4 p_key_id 4096-ptr_max
BUF_SIZE 1 key 128
RX_PATH
TASK_NOT_RUNNING
UNITS 0 mdev unit_byte
LOCK2 &priv->macsec->lock
HALF_LOCKED2 &ctx->phydev->lock
HALF_LOCKED2 global &rtnl_mutex
TYPE_LOCK (struct mlx5e_macsec)->lock

drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c mlx5e_macsec_add_txsa() -> mlx5_create_encryption_key()

Type Parameter Key Value
PARAM_VALUE 3 key_type 4
PARAM_VALUE 4 p_key_id 4096-ptr_max
BUF_SIZE 1 key 128
RX_PATH
TASK_NOT_RUNNING
UNITS 0 mdev unit_byte
LOCK2 &priv->macsec->lock
HALF_LOCKED2 &ctx->phydev->lock
HALF_LOCKED2 global &rtnl_mutex
TYPE_LOCK (struct mlx5e_macsec)->lock