Lines Matching refs:nlattr
52 static bool actions_may_change_flow(const struct nlattr *actions) in actions_may_change_flow()
54 struct nlattr *nla; in actions_may_change_flow()
468 static int __parse_flow_nlattrs(const struct nlattr *attr, in __parse_flow_nlattrs()
469 const struct nlattr *a[], in __parse_flow_nlattrs()
472 const struct nlattr *nla; in __parse_flow_nlattrs()
520 static int parse_flow_mask_nlattrs(const struct nlattr *attr, in parse_flow_mask_nlattrs()
521 const struct nlattr *a[], u64 *attrsp, in parse_flow_mask_nlattrs()
527 int parse_flow_nlattrs(const struct nlattr *attr, const struct nlattr *a[], in parse_flow_nlattrs()
533 static int genev_tun_opt_from_nlattr(const struct nlattr *a, in genev_tun_opt_from_nlattr()
584 static int vxlan_tun_opt_from_nlattr(const struct nlattr *attr, in vxlan_tun_opt_from_nlattr()
588 struct nlattr *a; in vxlan_tun_opt_from_nlattr()
640 static int erspan_tun_opt_from_nlattr(const struct nlattr *a, in erspan_tun_opt_from_nlattr()
667 static int ip_tun_from_nlattr(const struct nlattr *attr, in ip_tun_from_nlattr()
675 struct nlattr *a; in ip_tun_from_nlattr()
858 struct nlattr *nla; in vxlan_opt_to_nlattr()
949 struct nlattr *nla; in ip_tun_to_nlattr()
975 const struct nlattr *a[], in encode_vlan_from_nlattrs()
999 const struct nlattr **a, bool log) in validate_vlan_from_nlattrs()
1037 const struct nlattr **a, bool log) in validate_vlan_mask_from_nlattrs()
1079 const struct nlattr **a, bool is_mask, in __parse_vlan_from_nlattrs()
1083 const struct nlattr *encap; in __parse_vlan_from_nlattrs()
1113 u64 *key_attrs, const struct nlattr **a, in parse_vlan_from_nlattrs()
1136 u64 *attrs, const struct nlattr **a, in parse_eth_type_from_nlattrs()
1157 u64 *attrs, const struct nlattr **a, in metadata_from_nlattrs()
1294 int nsh_hdr_from_nlattr(const struct nlattr *attr, in nsh_hdr_from_nlattr()
1297 struct nlattr *a; in nsh_hdr_from_nlattr()
1348 int nsh_key_from_nlattr(const struct nlattr *attr, in nsh_key_from_nlattr()
1351 struct nlattr *a; in nsh_key_from_nlattr()
1388 static int nsh_key_put_from_nlattr(const struct nlattr *attr, in nsh_key_put_from_nlattr()
1392 struct nlattr *a; in nsh_key_put_from_nlattr()
1510 u64 attrs, const struct nlattr **a, in ovs_key_from_nlattrs()
1759 static void nlattr_set(struct nlattr *attr, u8 val, in nlattr_set()
1762 struct nlattr *nla; in nlattr_set()
1777 static void mask_set_nlattr(struct nlattr *attr, u8 val) in mask_set_nlattr()
1799 const struct nlattr *nla_key, in ovs_nla_get_match()
1800 const struct nlattr *nla_mask, in ovs_nla_get_match()
1803 const struct nlattr *a[OVS_KEY_ATTR_MAX + 1]; in ovs_nla_get_match()
1804 struct nlattr *newmask = NULL; in ovs_nla_get_match()
1877 static size_t get_ufid_len(const struct nlattr *attr, bool log) in get_ufid_len()
1897 bool ovs_nla_get_ufid(struct sw_flow_id *sfid, const struct nlattr *attr, in ovs_nla_get_ufid()
1907 int ovs_nla_get_identifier(struct sw_flow_id *sfid, const struct nlattr *ufid, in ovs_nla_get_identifier()
1925 u32 ovs_nla_get_ufid_flags(const struct nlattr *attr) in ovs_nla_get_ufid_flags()
1951 const struct nlattr *a[OVS_KEY_ATTR_MAX + 1], in ovs_nla_get_flow_metadata()
1985 struct nlattr *start; in nsh_key_to_nlattr()
2015 struct nlattr *nla; in __ovs_nla_put_key()
2016 struct nlattr *encap = NULL; in __ovs_nla_put_key()
2017 struct nlattr *in_encap = NULL; in __ovs_nla_put_key()
2268 struct nlattr *nla; in ovs_nla_put_key()
2322 static void ovs_nla_free_nested_actions(const struct nlattr *actions, int len);
2324 static void ovs_nla_free_check_pkt_len_action(const struct nlattr *action) in ovs_nla_free_check_pkt_len_action()
2326 const struct nlattr *a; in ovs_nla_free_check_pkt_len_action()
2339 static void ovs_nla_free_clone_action(const struct nlattr *action) in ovs_nla_free_clone_action()
2341 const struct nlattr *a = nla_data(action); in ovs_nla_free_clone_action()
2353 static void ovs_nla_free_dec_ttl_action(const struct nlattr *action) in ovs_nla_free_dec_ttl_action()
2355 const struct nlattr *a = nla_data(action); in ovs_nla_free_dec_ttl_action()
2364 static void ovs_nla_free_sample_action(const struct nlattr *action) in ovs_nla_free_sample_action()
2366 const struct nlattr *a = nla_data(action); in ovs_nla_free_sample_action()
2378 static void ovs_nla_free_set_action(const struct nlattr *a) in ovs_nla_free_set_action()
2380 const struct nlattr *ovs_key = nla_data(a); in ovs_nla_free_set_action()
2391 static void ovs_nla_free_nested_actions(const struct nlattr *actions, int len) in ovs_nla_free_nested_actions()
2393 const struct nlattr *a; in ovs_nla_free_nested_actions()
2454 static struct nlattr *reserve_sfa_size(struct sw_flow_actions **sfa, in reserve_sfa_size()
2490 return (struct nlattr *) ((unsigned char *)(*sfa) + next_offset); in reserve_sfa_size()
2493 static struct nlattr *__add_action(struct sw_flow_actions **sfa, in __add_action()
2496 struct nlattr *a; in __add_action()
2515 struct nlattr *a; in ovs_nla_add_action()
2538 struct nlattr *a = (struct nlattr *) ((unsigned char *)sfa->actions + in add_nested_action_end()
2544 static int __ovs_nla_copy_actions(struct net *net, const struct nlattr *attr,
2550 static int validate_and_copy_sample(struct net *net, const struct nlattr *attr, in validate_and_copy_sample()
2556 const struct nlattr *attrs[OVS_SAMPLE_ATTR_MAX + 1]; in validate_and_copy_sample()
2557 const struct nlattr *probability, *actions; in validate_and_copy_sample()
2558 const struct nlattr *a; in validate_and_copy_sample()
2616 const struct nlattr *attr, in validate_and_copy_dec_ttl()
2622 const struct nlattr *attrs[OVS_DEC_TTL_ATTR_MAX + 1]; in validate_and_copy_dec_ttl()
2624 const struct nlattr *a, *actions; in validate_and_copy_dec_ttl()
2673 const struct nlattr *attr, in validate_and_copy_clone()
2752 static int validate_and_copy_set_tun(const struct nlattr *attr, in validate_and_copy_set_tun()
2760 struct nlattr *a; in validate_and_copy_set_tun()
2833 static bool validate_nsh(const struct nlattr *attr, bool is_mask, in validate_nsh()
2860 static int validate_set(const struct nlattr *a, in validate_set()
2865 const struct nlattr *ovs_key = nla_data(a); in validate_set()
3004 struct nlattr *at; in validate_set()
3032 static int validate_userspace(const struct nlattr *attr) in validate_userspace()
3039 struct nlattr *a[OVS_USERSPACE_ATTR_MAX + 1]; in validate_userspace()
3061 const struct nlattr *attr, in validate_and_copy_check_pkt_len()
3068 const struct nlattr *acts_if_greater, *acts_if_lesser_eq; in validate_and_copy_check_pkt_len()
3069 struct nlattr *a[OVS_CHECK_PKT_LEN_ATTR_MAX + 1]; in validate_and_copy_check_pkt_len()
3137 static int copy_action(const struct nlattr *from, in copy_action()
3141 struct nlattr *to; in copy_action()
3151 static int __ovs_nla_copy_actions(struct net *net, const struct nlattr *attr, in __ovs_nla_copy_actions()
3158 const struct nlattr *a; in __ovs_nla_copy_actions()
3482 int ovs_nla_copy_actions(struct net *net, const struct nlattr *attr, in ovs_nla_copy_actions()
3505 static int sample_action_to_attr(const struct nlattr *attr, in sample_action_to_attr()
3508 struct nlattr *start, *ac_start = NULL, *sample_arg; in sample_action_to_attr()
3511 struct nlattr *actions; in sample_action_to_attr()
3546 static int clone_action_to_attr(const struct nlattr *attr, in clone_action_to_attr()
3549 struct nlattr *start; in clone_action_to_attr()
3568 static int check_pkt_len_action_to_attr(const struct nlattr *attr, in check_pkt_len_action_to_attr()
3571 struct nlattr *start, *ac_start = NULL; in check_pkt_len_action_to_attr()
3573 const struct nlattr *a, *cpl_arg; in check_pkt_len_action_to_attr()
3637 static int dec_ttl_action_to_attr(const struct nlattr *attr, in dec_ttl_action_to_attr()
3640 struct nlattr *start, *action_start; in dec_ttl_action_to_attr()
3641 const struct nlattr *a; in dec_ttl_action_to_attr()
3679 static int set_action_to_attr(const struct nlattr *a, struct sk_buff *skb) in set_action_to_attr()
3681 const struct nlattr *ovs_key = nla_data(a); in set_action_to_attr()
3683 struct nlattr *start; in set_action_to_attr()
3713 static int masked_set_action_to_set_action_attr(const struct nlattr *a, in masked_set_action_to_set_action_attr()
3716 const struct nlattr *ovs_key = nla_data(a); in masked_set_action_to_set_action_attr()
3717 struct nlattr *nla; in masked_set_action_to_set_action_attr()
3734 int ovs_nla_put_actions(const struct nlattr *attr, int len, struct sk_buff *skb) in ovs_nla_put_actions()
3736 const struct nlattr *a; in ovs_nla_put_actions()