Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 4 files:
- net/core/lwtunnel.c
- net/ipv4/fib_frontend.c, line 848
- net/ipv4/nexthop.c, line 3268
- net/ipv6/route.c, line 5315
Smatch caller information:
net/ipv4/nexthop.c rtm_to_nh_config() -> lwtunnel_valid_encap_type()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | extack | 4971238048455385088 |
| PARAM_VALUE | 1 | extack->bad_attr | 0 |
| PARAM_VALUE | 1 | extack->policy | 0 |
| DATA_SOURCE | 0 | encap_type | r nla_get_u16 |
| DATA_SOURCE | 1 | extack | $5 |
| MEM_ZERO | 1 | extack | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| 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/ipv4/fib_frontend.c rtm_to_fib_config() -> lwtunnel_valid_encap_type()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | extack | 4971238048455385088 |
| PARAM_VALUE | 1 | extack->bad_attr | 0 |
| PARAM_VALUE | 1 | extack->policy | 0 |
| DATA_SOURCE | 0 | encap_type | r nla_get_u16 |
| DATA_SOURCE | 1 | extack | $4 |
| MEM_ZERO | 1 | extack | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| 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/lwtunnel.c lwtunnel_valid_encap_type_attr() -> lwtunnel_valid_encap_type()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | extack | 4971238048455385088 |
| DATA_SOURCE | 0 | encap_type | r nla_get_u16 |
| DATA_SOURCE | 1 | extack | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| 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 |
net/ipv6/route.c rtm_to_fib6_config() -> lwtunnel_valid_encap_type()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | extack | 4971238048455385088 |
| PARAM_VALUE | 1 | extack->bad_attr | 0 |
| PARAM_VALUE | 1 | extack->policy | 0 |
| DATA_SOURCE | 0 | encap_type | r nla_get_u16 |
| DATA_SOURCE | 1 | extack | $3 |
| MEM_ZERO | 1 | extack | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| 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 |