Defined in 2 files as a function:
- include/net/ip_tunnels.h, line 708 (as a function)
- include/net/ip_tunnels.h, line 758 (as a function)
Referenced in 6 files:
- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c, line 5695
- drivers/net/geneve.c, line 300
- net/core/filter.c, line 5028
- net/ipv4/ip_tunnel_core.c, line 167
- net/netfilter/nft_tunnel.c, line 496
- net/openvswitch/flow_netlink.c, line 2873
Smatch caller information:
drivers/net/geneve.c geneve_rx() -> ip_tunnel_info_opts_set()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | flags | 6361735526824390656 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
net/openvswitch/flow_netlink.c validate_and_copy_set_tun() -> ip_tunnel_info_opts_set()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info | 4096-ptr_max |
| PARAM_VALUE | 0 | info->dst_cache.cache | 4096-ptr_max |
| PARAM_VALUE | 0 | info->mode | 1,3,5 |
| PARAM_VALUE | 1 | *from | 0-255 |
| PARAM_VALUE | 2 | len | 0,4 |
| PARAM_VALUE | 3 | flags | 633753469839015936 |
| BUF_SIZE | 0 | info | 96 |
| FUZZY_MAX | 0 | info->mode | 1 |
| BIT_INFO | 0 | info->mode | 0x1,0x7 |
| BIT_INFO | 2 | len | 0x0,0x4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | from | unit_byte |
| UNITS | 2 | len | unit_byte |
net/core/filter.c ____bpf_skb_set_tunnel_opt() -> ip_tunnel_info_opts_set()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | len | 0-255 |
| PARAM_VALUE | 3 | flags | 8221193479446323200 |
| BUF_SIZE | 0 | info | (-1),96 |
| BUF_SIZE | 0 | info | (-1),96 |
| CAPPED_DATA | 0 | info | 1 |
| DATA_SOURCE | 0 | info | r skb_tunnel_info |
| DATA_SOURCE | 1 | from | $1 |
| DATA_SOURCE | 2 | len | $2 |
| BIT_INFO | 2 | len | 0x0,0xfc |
| NOCHECK_CALL |
net/ipv4/ip_tunnel_core.c iptunnel_metadata_reply() -> ip_tunnel_info_opts_set()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info | 4096-ptr_max |
| PARAM_VALUE | 3 | flags | 4920929639673667584 |
| BUF_SIZE | 0 | info | 96 |
| BIT_INFO | 0 | info->mode | 0x1,0xff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
| HALF_LOCKED2 | &tbl->proxy_queue.lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
net/netfilter/nft_tunnel.c nft_tunnel_obj_init() -> ip_tunnel_info_opts_set()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info->dst_cache.cache | 4096-ptr_max |
| PARAM_VALUE | 0 | info->key.tun_id | 0,4294967296-18446744069414584320 |
| PARAM_VALUE | 0 | info->mode | 1,3 |
| PARAM_VALUE | 1 | from | 4096-ptr_max |
| BUF_SIZE | 1 | from | 256 |
| MEM_ZERO | 0 | info | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
| HALF_LOCKED2 | &nft_net->commit_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mlx5e_tc_restore_tunnel() -> ip_tunnel_info_opts_set()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info->key.tun_id | 0,4294967296-18446744069414584320 |
| PARAM_VALUE | 0 | info->mode | 0,2 |
| PARAM_VALUE | 0 | info->options_len | 0 |
| PARAM_VALUE | 2 | len | 1-255 |
| PARAM_VALUE | 3 | flags | 7959247863790592000 |
| BUF_SIZE | 1 | from | 255 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | bh |