Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 14 files:

Smatch caller information:

drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c mlx5_esw_bridge_vlan_push_mark_create() -> mlx5_modify_header_alloc()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->cmd.vars.throttle_sem.first_waiter->up 0-1
PARAM_VALUE 0 dev->cmd.vars.unprivileged_sem.first_waiter->up 0-1
PARAM_VALUE 1 ns_type 9
PARAM_VALUE 2 num_actions 1
PARAM_VALUE 3 modify_actions 4096-ptr_max
BUF_SIZE 3 modify_actions 8

drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c setup_modify_header() -> mlx5_modify_header_alloc()

Type Parameter Key Value
PARAM_VALUE 0 dev->cmd.token 1-255
PARAM_VALUE 0 dev->cmd.vars.throttle_sem.lock.owner (-1)
PARAM_VALUE 0 dev->cmd.vars.throttle_sem.lock.owner_cpu u32max
PARAM_VALUE 0 dev->cmd.vars.unprivileged_sem.lock.owner (-1)
PARAM_VALUE 0 dev->cmd.vars.unprivileged_sem.lock.owner_cpu u32max
PARAM_VALUE 1 ns_type 5,9,14
PARAM_VALUE 2 num_actions 1-3
PARAM_VALUE 3 modify_actions 4096-ptr_max
BUF_SIZE 3 modify_actions 24
DATA_SOURCE 1 ns_type r ipsec_fs_get_ns
FUZZY_MAX 2 num_actions 3
HARD_MAX 2 num_actions 3
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte

drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c sample_modify_hdr_get() -> mlx5_modify_header_alloc()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 ns_type 9
PARAM_VALUE 3 modify_actions 1-u64max
BUF_SIZE 3 modify_actions 80
DATA_SOURCE 0 dev $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &tc_psample->restore_lock
TYPE_LOCK (struct mlx5e_tc_psample)->restore_lock

drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c mlx5_tc_ct_entry_create_mod_hdr() -> mlx5_modify_header_alloc()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->cmd.vars.throttle_sem.first_waiter->up 0-1
PARAM_VALUE 0 dev->cmd.vars.unprivileged_sem.first_waiter->up 0-1
PARAM_VALUE 3 modify_actions 1-u64max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
HALF_LOCKED2 &block->cb_lock
HALF_LOCKED2 &flowtable->flow_block_lock

drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c tc_ct_pre_ct_add_rules() -> mlx5_modify_header_alloc()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 3 modify_actions 1-u64max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
LOCK2 &ct_priv->control_lock
HALF_LOCKED2 &block->cb_lock
HALF_LOCKED2 &flowtable->flow_block_lock
HALF_LOCKED2 &priv->mdev->priv.eswitch->mode_lock
TYPE_LOCK (struct mlx5_tc_ct_priv)->control_lock

drivers/net/ethernet/mellanox/mlx5/core/lib/macsec_fs.c macsec_fs_rx_add_rule() -> mlx5_modify_header_alloc()

Type Parameter Key Value
PARAM_VALUE 1 ns_type 1
PARAM_VALUE 2 num_actions 1
PARAM_VALUE 3 modify_actions 4096-ptr_max
BUF_SIZE 3 modify_actions 8
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
LOCK2 &priv->macsec->lock
HALF_LOCKED2 &macsec_ctx->phydev->lock
HALF_LOCKED2 global &rtnl_mutex
TYPE_LOCK (struct mlx5e_macsec)->lock

drivers/net/ethernet/mellanox/mlx5/core/lib/macsec_fs.c macsec_fs_rx_roce_jump_to_rdma_rules_create() -> mlx5_modify_header_alloc()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->macsec_fs 1-u64max
PARAM_VALUE 0 dev->priv.steering 4096-ptr_max
PARAM_VALUE 1 ns_type 1
PARAM_VALUE 2 num_actions 1
PARAM_VALUE 3 modify_actions 4096-ptr_max
BUF_SIZE 3 modify_actions 8
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
LOCK2 &priv->macsec->lock
HALF_LOCKED2 &macsec_ctx->phydev->lock
HALF_LOCKED2 global &rtnl_mutex
TYPE_LOCK (struct mlx5e_macsec)->lock

drivers/net/ethernet/mellanox/mlx5/core/lib/macsec_fs.c mlx5_macsec_fs_add_roce_rule_tx() -> mlx5_modify_header_alloc()

Type Parameter Key Value
PARAM_VALUE 1 ns_type 26
PARAM_VALUE 2 num_actions 1
PARAM_VALUE 3 modify_actions 4096-ptr_max
BUF_SIZE 3 modify_actions 8
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
HALF_LOCKED2 &dev->macsec.lock
HALF_LOCKED2 &macsec->lock
HALF_LOCKED2 &table->lock
TYPE_LOCK (struct mlx5_macsec)->lock

drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw_create_restore_table() -> mlx5_modify_header_alloc()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->caps.hca 4096-ptr_max
PARAM_VALUE 0 dev->clock->ptp 0,4096-u64max
PARAM_VALUE 0 dev->cmd.vars.throttle_sem.first_waiter->up 0-1
PARAM_VALUE 0 dev->cmd.vars.throttle_sem.lock.raw_lock.val.counter 0-s32max
PARAM_VALUE 0 dev->cmd.vars.unprivileged_sem.first_waiter->up 0-1
PARAM_VALUE 0 dev->cmd.vars.unprivileged_sem.lock.raw_lock.val.counter 0-s32max
PARAM_VALUE 0 dev->priv.lag->port_sel.outer.ttc->groups 0-s64max
PARAM_VALUE 0 dev->priv.mpfs->enabled 0-1
PARAM_VALUE 0 dev->priv.mpfs->size 0-4294967295
PARAM_VALUE 0 dev->priv.roce.fg->node.parent->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 dev->priv.roce.fg->node.parent->lock.first_waiter->type 0-1
PARAM_VALUE 0 dev->priv.roce.ft->autogroup.active 1
PARAM_VALUE 0 dev->priv.roce.ft->node.parent->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 dev->priv.roce.ft->node.parent->lock.first_waiter->type 0-1
PARAM_VALUE 0 dev->priv.steering 4096-ptr_max
PARAM_VALUE 0 *dev->priv.lag->lag_mpesw.pf_metadata 0-4294967295
PARAM_VALUE 1 ns_type 5
PARAM_VALUE 2 num_actions 1
PARAM_VALUE 3 modify_actions 4096-ptr_max
BUF_SIZE 3 modify_actions 8
CAPPED_DATA 0 dev 1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 dev->cmd.pool->allocation
LOCK2 &esw->offloads.reps_lock
HALF_LOCKED2 &devlink->lock
TYPE_LOCK (struct mlx5_esw_offload)->reps_lock

drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c mlx5_esw_indir_table_rule_get() -> mlx5_modify_header_alloc()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 ns_type 9
PARAM_VALUE 3 modify_actions 1-u64max
CAPPED_DATA 0 dev 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &esw->fdb_table.offloads.indir->lock
TYPE_LOCK (struct mlx5_esw_indir_table)->lock

drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c esw_acl_ingress_mod_metadata_create() -> mlx5_modify_header_alloc()

Type Parameter Key Value
PARAM_VALUE 0 dev->cmd.vars.throttle_sem.first_waiter->up 0-1
PARAM_VALUE 0 dev->cmd.vars.unprivileged_sem.first_waiter->up 0-1
PARAM_VALUE 1 ns_type 11
PARAM_VALUE 2 num_actions 1
PARAM_VALUE 3 modify_actions 4096-ptr_max
BUF_SIZE 3 modify_actions 8
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 dev->cmd.pool->allocation
HALF_LOCKED2 &esw->offloads.reps_lock
HALF_LOCKED2 &esw->state_lock

drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp.c accel_psp_fs_rx_decrypt_ft_create() -> mlx5_modify_header_alloc()

Type Parameter Key Value
PARAM_VALUE 0 dev->device 0,4096-ptr_max
PARAM_VALUE 1 ns_type 5
PARAM_VALUE 2 num_actions 1
PARAM_VALUE 3 modify_actions 4096-ptr_max
BUF_SIZE 3 modify_actions 8
RX_PATH
UNITS 0 dev unit_byte

drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec_fs.c mlx5_esw_ipsec_rx_setup_modify_header() -> mlx5_modify_header_alloc()

Type Parameter Key Value
PARAM_VALUE 1 ns_type 9
PARAM_VALUE 2 num_actions 1
PARAM_VALUE 3 modify_actions 4096-ptr_max
BUF_SIZE 3 modify_actions 8
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
HALF_LOCKED2 &pool->lock

drivers/infiniband/hw/mlx5/fs.c mlx5_ib_create_modify_header() -> mlx5_modify_header_alloc()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 ns_type 0,8,14,17,19,27-28
BUF_SIZE 3 modify_actions (-1),8
BUF_SIZE 3 modify_actions (-1),8
DATA_SOURCE 2 num_actions $2
DATA_SOURCE 3 modify_actions $3
UNITS 0 dev unit_byte

drivers/net/ethernet/mellanox/mlx5/core/lib/fs_chains.c create_chain_restore() -> mlx5_modify_header_alloc()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 ns_type 5,9
PARAM_VALUE 2 num_actions 1
PARAM_VALUE 3 modify_actions 4096-ptr_max
BUF_SIZE 3 modify_actions 8
BIT_INFO 1 ns_type 0x1,0xd
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
LOCK2 &chains->lock
HALF_LOCKED2 &esw->fdb_table.offloads.indir->lock
HALF_LOCKED2 &rx->ft.mutex
HALF_LOCKED2 &tc->t_lock
TYPE_LOCK (struct mlx5_fs_chains)->lock

drivers/net/ethernet/mellanox/mlx5/core/en/mod_hdr.c mlx5e_mod_hdr_attach() -> mlx5_modify_header_alloc()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->cmd.vars.throttle_sem.first_waiter->up 0-1
PARAM_VALUE 0 dev->cmd.vars.unprivileged_sem.first_waiter->up 0-1
PARAM_VALUE 0 dev->pdev->bus->self->link_bwctrl->cdev (-22),(-19),(-12),0,4096-s64max
BUF_SIZE 3 modify_actions 80
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 ns_type $2
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
UNITS 3 modify_actions unit_byte
HALF_LOCKED2 0 &dev->priv.eswitch->mode_lock