Lines Matching refs:nlattr

53 static bool actions_may_change_flow(const struct nlattr *actions)  in actions_may_change_flow()
55 struct nlattr *nla; in actions_may_change_flow()
477 static int __parse_flow_nlattrs(const struct nlattr *attr, in __parse_flow_nlattrs()
478 const struct nlattr *a[], in __parse_flow_nlattrs()
481 const struct nlattr *nla; in __parse_flow_nlattrs()
529 static int parse_flow_mask_nlattrs(const struct nlattr *attr, in parse_flow_mask_nlattrs()
530 const struct nlattr *a[], u64 *attrsp, in parse_flow_mask_nlattrs()
536 int parse_flow_nlattrs(const struct nlattr *attr, const struct nlattr *a[], in parse_flow_nlattrs()
542 static int genev_tun_opt_from_nlattr(const struct nlattr *a, in genev_tun_opt_from_nlattr()
593 static int vxlan_tun_opt_from_nlattr(const struct nlattr *attr, in vxlan_tun_opt_from_nlattr()
597 struct nlattr *a; in vxlan_tun_opt_from_nlattr()
649 static int erspan_tun_opt_from_nlattr(const struct nlattr *a, in erspan_tun_opt_from_nlattr()
676 static int ip_tun_from_nlattr(const struct nlattr *attr, in ip_tun_from_nlattr()
684 struct nlattr *a; in ip_tun_from_nlattr()
870 struct nlattr *nla; in vxlan_opt_to_nlattr()
963 struct nlattr *nla; in ip_tun_to_nlattr()
989 const struct nlattr *a[], in encode_vlan_from_nlattrs()
1013 const struct nlattr **a, bool log) in validate_vlan_from_nlattrs()
1051 const struct nlattr **a, bool log) in validate_vlan_mask_from_nlattrs()
1093 const struct nlattr **a, bool is_mask, in __parse_vlan_from_nlattrs()
1097 const struct nlattr *encap; in __parse_vlan_from_nlattrs()
1127 u64 *key_attrs, const struct nlattr **a, in parse_vlan_from_nlattrs()
1150 u64 *attrs, const struct nlattr **a, in parse_eth_type_from_nlattrs()
1171 u64 *attrs, const struct nlattr **a, in metadata_from_nlattrs()
1308 int nsh_hdr_from_nlattr(const struct nlattr *attr, in nsh_hdr_from_nlattr()
1311 struct nlattr *a; in nsh_hdr_from_nlattr()
1362 int nsh_key_from_nlattr(const struct nlattr *attr, in nsh_key_from_nlattr()
1365 struct nlattr *a; in nsh_key_from_nlattr()
1402 static int nsh_key_put_from_nlattr(const struct nlattr *attr, in nsh_key_put_from_nlattr()
1406 struct nlattr *a; in nsh_key_put_from_nlattr()
1524 u64 attrs, const struct nlattr **a, in ovs_key_from_nlattrs()
1773 static void nlattr_set(struct nlattr *attr, u8 val, in nlattr_set()
1776 struct nlattr *nla; in nlattr_set()
1791 static void mask_set_nlattr(struct nlattr *attr, u8 val) in mask_set_nlattr()
1813 const struct nlattr *nla_key, in ovs_nla_get_match()
1814 const struct nlattr *nla_mask, in ovs_nla_get_match()
1817 const struct nlattr *a[OVS_KEY_ATTR_MAX + 1]; in ovs_nla_get_match()
1818 struct nlattr *newmask = NULL; in ovs_nla_get_match()
1891 static size_t get_ufid_len(const struct nlattr *attr, bool log) in get_ufid_len()
1911 bool ovs_nla_get_ufid(struct sw_flow_id *sfid, const struct nlattr *attr, in ovs_nla_get_ufid()
1921 int ovs_nla_get_identifier(struct sw_flow_id *sfid, const struct nlattr *ufid, in ovs_nla_get_identifier()
1939 u32 ovs_nla_get_ufid_flags(const struct nlattr *attr) in ovs_nla_get_ufid_flags()
1965 const struct nlattr *a[OVS_KEY_ATTR_MAX + 1], in ovs_nla_get_flow_metadata()
1999 struct nlattr *start; in nsh_key_to_nlattr()
2029 struct nlattr *nla; in __ovs_nla_put_key()
2030 struct nlattr *encap = NULL; in __ovs_nla_put_key()
2031 struct nlattr *in_encap = NULL; in __ovs_nla_put_key()
2282 struct nlattr *nla; in ovs_nla_put_key()
2336 static void ovs_nla_free_nested_actions(const struct nlattr *actions, int len);
2338 static void ovs_nla_free_check_pkt_len_action(const struct nlattr *action) in ovs_nla_free_check_pkt_len_action()
2340 const struct nlattr *a; in ovs_nla_free_check_pkt_len_action()
2353 static void ovs_nla_free_clone_action(const struct nlattr *action) in ovs_nla_free_clone_action()
2355 const struct nlattr *a = nla_data(action); in ovs_nla_free_clone_action()
2367 static void ovs_nla_free_dec_ttl_action(const struct nlattr *action) in ovs_nla_free_dec_ttl_action()
2369 const struct nlattr *a = nla_data(action); in ovs_nla_free_dec_ttl_action()
2378 static void ovs_nla_free_sample_action(const struct nlattr *action) in ovs_nla_free_sample_action()
2380 const struct nlattr *a = nla_data(action); in ovs_nla_free_sample_action()
2392 static void ovs_nla_free_set_action(const struct nlattr *a) in ovs_nla_free_set_action()
2394 const struct nlattr *ovs_key = nla_data(a); in ovs_nla_free_set_action()
2405 static void ovs_nla_free_nested_actions(const struct nlattr *actions, int len) in ovs_nla_free_nested_actions()
2407 const struct nlattr *a; in ovs_nla_free_nested_actions()
2468 static struct nlattr *reserve_sfa_size(struct sw_flow_actions **sfa, in reserve_sfa_size()
2504 return (struct nlattr *) ((unsigned char *)(*sfa) + next_offset); in reserve_sfa_size()
2507 static struct nlattr *__add_action(struct sw_flow_actions **sfa, in __add_action()
2510 struct nlattr *a; in __add_action()
2529 struct nlattr *a; in ovs_nla_add_action()
2552 struct nlattr *a = (struct nlattr *) ((unsigned char *)sfa->actions + in add_nested_action_end()
2558 static int __ovs_nla_copy_actions(struct net *net, const struct nlattr *attr,
2565 static int validate_and_copy_sample(struct net *net, const struct nlattr *attr, in validate_and_copy_sample()
2572 const struct nlattr *attrs[OVS_SAMPLE_ATTR_MAX + 1]; in validate_and_copy_sample()
2573 const struct nlattr *probability, *actions; in validate_and_copy_sample()
2574 const struct nlattr *a; in validate_and_copy_sample()
2633 const struct nlattr *attr, in validate_and_copy_dec_ttl()
2640 const struct nlattr *attrs[OVS_DEC_TTL_ATTR_MAX + 1]; in validate_and_copy_dec_ttl()
2642 const struct nlattr *a, *actions; in validate_and_copy_dec_ttl()
2692 const struct nlattr *attr, in validate_and_copy_clone()
2774 static int validate_and_copy_set_tun(const struct nlattr *attr, in validate_and_copy_set_tun()
2783 struct nlattr *a; in validate_and_copy_set_tun()
2855 static bool validate_nsh(const struct nlattr *attr, bool is_mask, in validate_nsh()
2882 static int validate_set(const struct nlattr *a, in validate_set()
2887 const struct nlattr *ovs_key = nla_data(a); in validate_set()
3026 struct nlattr *at; in validate_set()
3054 static int validate_userspace(const struct nlattr *attr) in validate_userspace()
3061 struct nlattr *a[OVS_USERSPACE_ATTR_MAX + 1]; in validate_userspace()
3083 const struct nlattr *attr, in validate_and_copy_check_pkt_len()
3090 const struct nlattr *acts_if_greater, *acts_if_lesser_eq; in validate_and_copy_check_pkt_len()
3091 struct nlattr *a[OVS_CHECK_PKT_LEN_ATTR_MAX + 1]; in validate_and_copy_check_pkt_len()
3161 static int validate_psample(const struct nlattr *attr) in validate_psample()
3170 struct nlattr *a[OVS_PSAMPLE_ATTR_MAX + 1]; in validate_psample()
3183 static int copy_action(const struct nlattr *from, in copy_action()
3187 struct nlattr *to; in copy_action()
3197 static int __ovs_nla_copy_actions(struct net *net, const struct nlattr *attr, in __ovs_nla_copy_actions()
3205 const struct nlattr *a; in __ovs_nla_copy_actions()
3541 int ovs_nla_copy_actions(struct net *net, const struct nlattr *attr, in ovs_nla_copy_actions()
3565 static int sample_action_to_attr(const struct nlattr *attr, in sample_action_to_attr()
3568 struct nlattr *start, *ac_start = NULL, *sample_arg; in sample_action_to_attr()
3571 struct nlattr *actions; in sample_action_to_attr()
3606 static int clone_action_to_attr(const struct nlattr *attr, in clone_action_to_attr()
3609 struct nlattr *start; in clone_action_to_attr()
3628 static int check_pkt_len_action_to_attr(const struct nlattr *attr, in check_pkt_len_action_to_attr()
3631 struct nlattr *start, *ac_start = NULL; in check_pkt_len_action_to_attr()
3633 const struct nlattr *a, *cpl_arg; in check_pkt_len_action_to_attr()
3697 static int dec_ttl_action_to_attr(const struct nlattr *attr, in dec_ttl_action_to_attr()
3700 struct nlattr *start, *action_start; in dec_ttl_action_to_attr()
3701 const struct nlattr *a; in dec_ttl_action_to_attr()
3739 static int set_action_to_attr(const struct nlattr *a, struct sk_buff *skb) in set_action_to_attr()
3741 const struct nlattr *ovs_key = nla_data(a); in set_action_to_attr()
3743 struct nlattr *start; in set_action_to_attr()
3773 static int masked_set_action_to_set_action_attr(const struct nlattr *a, in masked_set_action_to_set_action_attr()
3776 const struct nlattr *ovs_key = nla_data(a); in masked_set_action_to_set_action_attr()
3777 struct nlattr *nla; in masked_set_action_to_set_action_attr()
3794 int ovs_nla_put_actions(const struct nlattr *attr, int len, struct sk_buff *skb) in ovs_nla_put_actions()
3796 const struct nlattr *a; in ovs_nla_put_actions()