Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
net/mpls/af_mpls.c mpls_nh_build() -> mpls_nh_assign_dev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->mpls.platform_label | 4096-ptr_max |
| PARAM_VALUE | 0 | net->mpls.platform_labels | 17-u64max |
| PARAM_VALUE | 1 | rt | 4096-ptr_max |
| PARAM_VALUE | 1 | rt->rt_nhn | 1-255 |
| PARAM_VALUE | 1 | rt->rt_ttl_propagate | 0-2 |
| PARAM_VALUE | 1 | *rt->rt_nh->nh_label | 0-4294967295 |
| PARAM_VALUE | 2 | nh | 1-u64max |
| PARAM_VALUE | 2 | nh->nh_via_table | 0-3 |
| PARAM_VALUE | 2 | *nh->nh_label | 0-4294967295 |
| BUF_SIZE | 1 | rt | 32-4096 |
| BUF_SIZE | 1 | rt | 32-4096 |
| BUF_SIZE | 2 | nh | (-1)-4064 |
| BUF_SIZE | 2 | nh | (-1)-4064 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 1 | rt | $1 |
| DATA_SOURCE | 2 | nh | $2 |
| DATA_SOURCE | 3 | oif | $3 |
| FUZZY_MAX | 2 | nh->nh_via_table | 3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | rt->rt_nh_size | 0-255[c] |
| USER_DATA | 1 | rt->rt_protocol | 0-255 |
| USER_DATA | 2 | nh->nh_via_alen | 0-32[c] |
| USER_DATA | 3 | oif | s32min-s32max |
| UNITS | 0 | net | unit_byte |
| UNITS | 3 | oif | unit_array_size |
| LOCK2 | &net->mpls.platform_mutex | ||
| 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 | ||
| TYPE_LOCK | (struct netns_mpls)->platform_mutex |
net/mpls/af_mpls.c mpls_nh_build_from_cfg() -> mpls_nh_assign_dev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->mpls.platform_label | 4096-ptr_max |
| PARAM_VALUE | 0 | net->mpls.platform_labels | 17-u64max |
| PARAM_VALUE | 1 | rt | 4096-ptr_max |
| PARAM_VALUE | 1 | rt->rt_nh | 4096-ptr_max |
| PARAM_VALUE | 1 | rt->rt_nh->nh_via_alen | 0-32,254-255 |
| PARAM_VALUE | 1 | rt->rt_nh->nh_via_table | 0-3 |
| PARAM_VALUE | 1 | rt->rt_nhn | 1 |
| PARAM_VALUE | 1 | rt->rt_nhn_alive | 1 |
| PARAM_VALUE | 1 | rt->rt_ttl_propagate | 0-2 |
| PARAM_VALUE | 2 | nh | 4096-ptr_max |
| PARAM_VALUE | 2 | nh->nh_via_alen | 0-32,254-255 |
| PARAM_VALUE | 2 | nh->nh_via_table | 0-3 |
| BUF_SIZE | 1 | rt | 32-4096 |
| BUF_SIZE | 1 | rt | 32-4096 |
| BUF_SIZE | 2 | nh | 0-4064 |
| BUF_SIZE | 2 | nh | 0-4064 |
| CAPPED_DATA | 2 | nh->nh_labels | 1 |
| DATA_SOURCE | 1 | rt | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | rt->rt_nh_size | 0-255[c] |
| USER_DATA | 1 | rt->rt_protocol | 0-255 |
| USER_DATA | 2 | nh->nh_via_alen | 0-32[c] |
| UNITS | 0 | net | unit_byte |
| LOCK2 | &net->mpls.platform_mutex | ||
| 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 | ||
| TYPE_LOCK | (struct netns_mpls)->platform_mutex |