Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- drivers/net/dsa/ocelot/felix.c
- drivers/net/ethernet/mscc/ocelot.c
- drivers/net/ethernet/mscc/ocelot_flower.c, line 960
- drivers/net/ethernet/mscc/ocelot_mrp.c, line 73
- drivers/net/ethernet/mscc/ocelot_vcap.c, line 1221
Smatch caller information:
drivers/net/ethernet/mscc/ocelot.c ocelot_trap_add() -> ocelot_vcap_filter_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ocelot | 4096-ptr_max |
| PARAM_VALUE | 0 | ocelot->block | 4096-ptr_max |
| PARAM_VALUE | 0 | ocelot->ports | 4096-ptr_max |
| PARAM_VALUE | 1 | filter | 4096-ptr_max |
| PARAM_VALUE | 1 | filter->action.cpu_copy_ena | 1 |
| PARAM_VALUE | 1 | filter->action.mask_mode | 1 |
| PARAM_VALUE | 1 | filter->action.port_mask | 0 |
| PARAM_VALUE | 1 | filter->block_id | 2 |
| PARAM_VALUE | 1 | filter->id.cookie | 0-515 |
| PARAM_VALUE | 1 | filter->id.tc_offload | 0 |
| PARAM_VALUE | 1 | filter->is_trap | 1 |
| PARAM_VALUE | 1 | filter->lookup | 0 |
| PARAM_VALUE | 1 | filter->prio | 1 |
| PARAM_VALUE | 1 | filter->type | 2 |
| PARAM_VALUE | 1 | *filter->key.etype.dmac.value | 0-255 |
| PARAM_VALUE | 1 | *filter->key.etype.etype.mask | 0-255,u16max |
| PARAM_VALUE | 1 | *filter->key.etype.etype.value | 0-255,35063 |
| PARAM_VALUE | 2 | extack | 0 |
| BUF_SIZE | 0 | ocelot | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ocelot | s32min-(-1),1-s32max |
| BUF_SIZE | 1 | filter | 304 |
| CAPPED_DATA | 1 | filter->id.cookie | 1 |
| DATA_SOURCE | 0 | ocelot | $0 |
| DATA_SOURCE | 1 | filter | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | ocelot | unit_byte |
drivers/net/ethernet/mscc/ocelot.c ocelot_update_vlan_reclassify_rule() -> ocelot_vcap_filter_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ocelot | 4096-ptr_max |
| PARAM_VALUE | 0 | ocelot->block | 4096-ptr_max |
| PARAM_VALUE | 0 | ocelot->map | 4096-ptr_max |
| PARAM_VALUE | 0 | ocelot->ports | 4096-ptr_max |
| PARAM_VALUE | 1 | filter | 4096-ptr_max |
| PARAM_VALUE | 1 | filter->action.dei | 0-1 |
| PARAM_VALUE | 1 | filter->action.pcp | 0-7 |
| PARAM_VALUE | 1 | filter->action.pcp_dei_ena | 1 |
| PARAM_VALUE | 1 | filter->action.vid_replace_ena | 1 |
| PARAM_VALUE | 1 | filter->block_id | 1 |
| PARAM_VALUE | 1 | filter->id.cookie | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 1 | filter->id.tc_offload | 0 |
| PARAM_VALUE | 1 | filter->key_type | 0 |
| PARAM_VALUE | 1 | filter->lookup | 0 |
| PARAM_VALUE | 1 | filter->prio | 1 |
| PARAM_VALUE | 1 | filter->type | 2 |
| PARAM_VALUE | 1 | filter->vlan.tpid | 2 |
| PARAM_VALUE | 2 | extack | 0 |
| BUF_SIZE | 0 | ocelot | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ocelot | s32min-(-1),1-s32max |
| BUF_SIZE | 1 | filter | 304 |
| CAPPED_DATA | 1 | filter->id.cookie | 1 |
| DATA_SOURCE | 0 | ocelot | $0 |
| DATA_SOURCE | 1 | filter | r _kzalloc_noprof |
| BIT_INFO | 1 | filter->id.cookie | 0x0,0xffffffff |
| NOSPEC | 1 | filter->id.cookie | |
| POWER_OF_TWO | 1 | *filter | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | filter->id.cookie | 1-509[c] |
| UNITS | 0 | ocelot | unit_byte |
| HALF_LOCKED2 | 0 | &ocelot->fwd_domain_lock |
drivers/net/ethernet/mscc/ocelot_flower.c ocelot_cls_flower_replace() -> ocelot_vcap_filter_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ocelot->block | 4096-ptr_max |
| PARAM_VALUE | 1 | filter | 4096-ptr_max |
| PARAM_VALUE | 1 | filter->action.cpu_copy_ena | 1 |
| PARAM_VALUE | 1 | filter->action.cpu_qu_num | 0 |
| PARAM_VALUE | 1 | filter->action.mask_mode | 1,3 |
| PARAM_VALUE | 1 | filter->action.mirror_ena | 1 |
| PARAM_VALUE | 1 | filter->action.pag_override_mask | 255 |
| PARAM_VALUE | 1 | filter->action.pol_ix | 0-65534 |
| PARAM_VALUE | 1 | filter->action.police_ena | 1 |
| PARAM_VALUE | 1 | filter->action.push_outer_tag | 1 |
| PARAM_VALUE | 1 | filter->action.tag_a_pcp_sel | 1 |
| PARAM_VALUE | 1 | filter->action.tag_a_tpid_sel | 0-1 |
| PARAM_VALUE | 1 | filter->action.tag_a_vid_sel | 0-1 |
| PARAM_VALUE | 1 | filter->block_id | 0-3 |
| PARAM_VALUE | 1 | filter->goto_target | s32min-(-1),10000,11000,12000,20000-20255,21000-21255,30000 |
| PARAM_VALUE | 1 | filter->id.tc_offload | 1 |
| PARAM_VALUE | 1 | filter->is_trap | 1 |
| PARAM_VALUE | 1 | filter->key_type | 0-1,5-6 |
| PARAM_VALUE | 1 | filter->lookup | 0-9 |
| PARAM_VALUE | 1 | filter->type | 1-2 |
| PARAM_VALUE | 1 | filter->vlan.vid.mask | 0-4095 |
| PARAM_VALUE | 1 | filter->vlan.vid.value | 0-4095 |
| PARAM_VALUE | 1 | *filter->key.etype.etype.mask | u16max |
| PARAM_VALUE | 1 | *filter->key.etype.etype.value | 1536-u16max |
| PARAM_VALUE | 2 | *extack->_msg_buf | 0-255 |
| BUF_SIZE | 0 | ocelot | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ocelot | s32min-(-1),1-s32max |
| BUF_SIZE | 1 | filter | 304 |
| DATA_SOURCE | 0 | ocelot | $0 |
| DATA_SOURCE | 1 | filter | r ocelot_vcap_filter_create |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | ocelot | unit_byte |
| HALF_LOCKED2 | &block->cb_lock | ||
| HALF_LOCKED2 | &flowtable->flow_block_lock |
drivers/net/ethernet/mscc/ocelot_mrp.c ocelot_mrp_redirect_add_vcap() -> ocelot_vcap_filter_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ocelot | 4096-ptr_max |
| PARAM_VALUE | 0 | ocelot->mact_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ocelot->mact_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ocelot->mact_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | ocelot->mact_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | ocelot->mact_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | ocelot->mact_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | ocelot->map | 4096-ptr_max |
| PARAM_VALUE | 0 | ocelot->num_phys_ports | 1-255 |
| PARAM_VALUE | 0 | ocelot->ports | 4096-ptr_max |
| PARAM_VALUE | 1 | filter | 4096-ptr_max |
| PARAM_VALUE | 1 | filter->action.mask_mode | 3 |
| PARAM_VALUE | 1 | filter->block_id | 2 |
| PARAM_VALUE | 1 | filter->id.cookie | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 1 | filter->id.tc_offload | 0 |
| PARAM_VALUE | 1 | filter->key.etype.dmac.mask | 4096-ptr_max |
| PARAM_VALUE | 1 | filter->key.etype.dmac.value | 4096-ptr_max |
| PARAM_VALUE | 1 | filter->key_type | 1 |
| PARAM_VALUE | 1 | filter->prio | 1 |
| PARAM_VALUE | 1 | filter->type | 2 |
| PARAM_VALUE | 1 | *filter->key.etype.dmac.value | 1 |
| PARAM_VALUE | 2 | extack | 0 |
| BUF_SIZE | 0 | ocelot | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ocelot | s32min-(-1),1-s32max |
| BUF_SIZE | 1 | filter | 304 |
| CAPPED_DATA | 0 | ocelot->num_phys_ports | 1 |
| CAPPED_DATA | 1 | filter->action.port_mask | 1 |
| DATA_SOURCE | 0 | ocelot | $0 |
| DATA_SOURCE | 1 | filter | r _kzalloc_noprof |
| BIT_INFO | 1 | filter->id.cookie | 0x0,0xffffffff |
| POWER_OF_TWO | 1 | filter->action | |
| POWER_OF_TWO | 1 | *filter | |
| UNITS | 0 | ocelot | unit_byte |
drivers/net/dsa/ocelot/felix.c felix_tag_8021q_vlan_add_rx() -> ocelot_vcap_filter_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ocelot | 4096-ptr_max |
| PARAM_VALUE | 0 | ocelot->vcap | 4096-ptr_max |
| PARAM_VALUE | 1 | filter | 4096-ptr_max |
| PARAM_VALUE | 1 | filter->action.push_inner_tag | 0-1 |
| PARAM_VALUE | 1 | filter->action.push_outer_tag | 1 |
| PARAM_VALUE | 1 | filter->action.tag_a_tpid_sel | 1 |
| PARAM_VALUE | 1 | filter->action.tag_a_vid_sel | 1 |
| PARAM_VALUE | 1 | filter->block_id | 0 |
| PARAM_VALUE | 1 | filter->id.cookie | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 1 | filter->id.tc_offload | 0 |
| PARAM_VALUE | 1 | filter->key_type | 0 |
| PARAM_VALUE | 1 | filter->lookup | 0 |
| PARAM_VALUE | 1 | filter->prio | 1 |
| PARAM_VALUE | 1 | filter->type | 2 |
| PARAM_VALUE | 2 | extack | 0 |
| BUF_SIZE | 0 | ocelot | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ocelot | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | filter | 304 |
| CAPPED_DATA | 1 | filter->egress_port.mask | 1 |
| CAPPED_DATA | 1 | filter->ingress_port.mask | 1 |
| DATA_SOURCE | 1 | filter | r _kzalloc_noprof |
| BIT_INFO | 1 | filter->id.cookie | 0x0,0xffffffff |
| UNITS | 0 | ocelot | unit_byte |
drivers/net/dsa/ocelot/felix.c felix_tag_8021q_vlan_add_tx() -> ocelot_vcap_filter_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | filter | 4096-ptr_max |
| PARAM_VALUE | 1 | filter->action.pag_override_mask | 255 |
| PARAM_VALUE | 1 | filter->action.vlan_pop_cnt | 1 |
| PARAM_VALUE | 1 | filter->action.vlan_pop_cnt_ena | 1 |
| PARAM_VALUE | 1 | filter->block_id | 1 |
| PARAM_VALUE | 1 | filter->id.cookie | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 1 | filter->id.tc_offload | 0 |
| PARAM_VALUE | 1 | filter->ingress_port_mask | 0-u32max |
| PARAM_VALUE | 1 | filter->key_type | 0 |
| PARAM_VALUE | 1 | filter->lookup | 0 |
| PARAM_VALUE | 1 | filter->prio | 1 |
| PARAM_VALUE | 1 | filter->type | 2 |
| PARAM_VALUE | 1 | filter->vlan.vid.mask | 4095 |
| PARAM_VALUE | 2 | extack | 0 |
| BUF_SIZE | 0 | ocelot | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ocelot | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | filter | 304 |
| DATA_SOURCE | 1 | filter | r _kzalloc_noprof |
| BIT_INFO | 1 | filter->id.cookie | 0x0,0xffffffff |
| UNITS | 0 | ocelot | unit_byte |
drivers/net/dsa/ocelot/felix.c felix_tag_8021q_vlan_add_tx() -> ocelot_vcap_filter_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ocelot->mirror | 4096-ptr_max |
| PARAM_VALUE | 0 | ocelot->vcap_pol.pol_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ocelot->vcap_pol.pol_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ocelot->vcap_pol.pol_list.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | filter | 4096-ptr_max |
| PARAM_VALUE | 1 | filter->action.mask_mode | 3 |
| PARAM_VALUE | 1 | filter->block_id | 2 |
| PARAM_VALUE | 1 | filter->id.cookie | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 1 | filter->id.tc_offload | 0 |
| PARAM_VALUE | 1 | filter->ingress_port_mask | 0-u32max |
| PARAM_VALUE | 1 | filter->key_type | 0 |
| PARAM_VALUE | 1 | filter->lookup | 0 |
| PARAM_VALUE | 1 | filter->prio | 1 |
| PARAM_VALUE | 1 | filter->type | 2 |
| PARAM_VALUE | 2 | extack | 0 |
| BUF_SIZE | 0 | ocelot | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ocelot | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | filter | 304 |
| DATA_SOURCE | 1 | filter | r _kzalloc_noprof |
| BIT_INFO | 1 | filter->id.cookie | 0x0,0x7fffffff |
| POWER_OF_TWO | 1 | filter->action | |
| UNITS | 0 | ocelot | unit_byte |