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()
469 static int __parse_flow_nlattrs(const struct nlattr *attr, in __parse_flow_nlattrs()
470 const struct nlattr *a[], in __parse_flow_nlattrs()
473 const struct nlattr *nla; in __parse_flow_nlattrs()
521 static int parse_flow_mask_nlattrs(const struct nlattr *attr, in parse_flow_mask_nlattrs()
522 const struct nlattr *a[], u64 *attrsp, in parse_flow_mask_nlattrs()
528 int parse_flow_nlattrs(const struct nlattr *attr, const struct nlattr *a[], in parse_flow_nlattrs()
534 static int genev_tun_opt_from_nlattr(const struct nlattr *a, in genev_tun_opt_from_nlattr()
585 static int vxlan_tun_opt_from_nlattr(const struct nlattr *attr, in vxlan_tun_opt_from_nlattr()
589 struct nlattr *a; in vxlan_tun_opt_from_nlattr()
641 static int erspan_tun_opt_from_nlattr(const struct nlattr *a, in erspan_tun_opt_from_nlattr()
668 static int ip_tun_from_nlattr(const struct nlattr *attr, in ip_tun_from_nlattr()
676 struct nlattr *a; in ip_tun_from_nlattr()
859 struct nlattr *nla; in vxlan_opt_to_nlattr()
950 struct nlattr *nla; in ip_tun_to_nlattr()
976 const struct nlattr *a[], in encode_vlan_from_nlattrs()
1000 const struct nlattr **a, bool log) in validate_vlan_from_nlattrs()
1038 const struct nlattr **a, bool log) in validate_vlan_mask_from_nlattrs()
1080 const struct nlattr **a, bool is_mask, in __parse_vlan_from_nlattrs()
1084 const struct nlattr *encap; in __parse_vlan_from_nlattrs()
1114 u64 *key_attrs, const struct nlattr **a, in parse_vlan_from_nlattrs()
1137 u64 *attrs, const struct nlattr **a, in parse_eth_type_from_nlattrs()
1158 u64 *attrs, const struct nlattr **a, in metadata_from_nlattrs()
1295 int nsh_hdr_from_nlattr(const struct nlattr *attr, in nsh_hdr_from_nlattr()
1298 struct nlattr *a; in nsh_hdr_from_nlattr()
1349 int nsh_key_from_nlattr(const struct nlattr *attr, in nsh_key_from_nlattr()
1352 struct nlattr *a; in nsh_key_from_nlattr()
1389 static int nsh_key_put_from_nlattr(const struct nlattr *attr, in nsh_key_put_from_nlattr()
1393 struct nlattr *a; in nsh_key_put_from_nlattr()
1511 u64 attrs, const struct nlattr **a, in ovs_key_from_nlattrs()
1760 static void nlattr_set(struct nlattr *attr, u8 val, in nlattr_set()
1763 struct nlattr *nla; in nlattr_set()
1778 static void mask_set_nlattr(struct nlattr *attr, u8 val) in mask_set_nlattr()
1800 const struct nlattr *nla_key, in ovs_nla_get_match()
1801 const struct nlattr *nla_mask, in ovs_nla_get_match()
1804 const struct nlattr *a[OVS_KEY_ATTR_MAX + 1]; in ovs_nla_get_match()
1805 struct nlattr *newmask = NULL; in ovs_nla_get_match()
1878 static size_t get_ufid_len(const struct nlattr *attr, bool log) in get_ufid_len()
1898 bool ovs_nla_get_ufid(struct sw_flow_id *sfid, const struct nlattr *attr, in ovs_nla_get_ufid()
1908 int ovs_nla_get_identifier(struct sw_flow_id *sfid, const struct nlattr *ufid, in ovs_nla_get_identifier()
1926 u32 ovs_nla_get_ufid_flags(const struct nlattr *attr) in ovs_nla_get_ufid_flags()
1952 const struct nlattr *a[OVS_KEY_ATTR_MAX + 1], in ovs_nla_get_flow_metadata()
1986 struct nlattr *start; in nsh_key_to_nlattr()
2016 struct nlattr *nla; in __ovs_nla_put_key()
2017 struct nlattr *encap = NULL; in __ovs_nla_put_key()
2018 struct nlattr *in_encap = NULL; in __ovs_nla_put_key()
2269 struct nlattr *nla; in ovs_nla_put_key()
2323 static void ovs_nla_free_nested_actions(const struct nlattr *actions, int len);
2325 static void ovs_nla_free_check_pkt_len_action(const struct nlattr *action) in ovs_nla_free_check_pkt_len_action()
2327 const struct nlattr *a; in ovs_nla_free_check_pkt_len_action()
2340 static void ovs_nla_free_clone_action(const struct nlattr *action) in ovs_nla_free_clone_action()
2342 const struct nlattr *a = nla_data(action); in ovs_nla_free_clone_action()
2354 static void ovs_nla_free_dec_ttl_action(const struct nlattr *action) in ovs_nla_free_dec_ttl_action()
2356 const struct nlattr *a = nla_data(action); in ovs_nla_free_dec_ttl_action()
2365 static void ovs_nla_free_sample_action(const struct nlattr *action) in ovs_nla_free_sample_action()
2367 const struct nlattr *a = nla_data(action); in ovs_nla_free_sample_action()
2379 static void ovs_nla_free_set_action(const struct nlattr *a) in ovs_nla_free_set_action()
2381 const struct nlattr *ovs_key = nla_data(a); in ovs_nla_free_set_action()
2392 static void ovs_nla_free_nested_actions(const struct nlattr *actions, int len) in ovs_nla_free_nested_actions()
2394 const struct nlattr *a; in ovs_nla_free_nested_actions()
2455 static struct nlattr *reserve_sfa_size(struct sw_flow_actions **sfa, in reserve_sfa_size()
2491 return (struct nlattr *) ((unsigned char *)(*sfa) + next_offset); in reserve_sfa_size()
2494 static struct nlattr *__add_action(struct sw_flow_actions **sfa, in __add_action()
2497 struct nlattr *a; in __add_action()
2516 struct nlattr *a; in ovs_nla_add_action()
2539 struct nlattr *a = (struct nlattr *) ((unsigned char *)sfa->actions + in add_nested_action_end()
2545 static int __ovs_nla_copy_actions(struct net *net, const struct nlattr *attr,
2552 static int validate_and_copy_sample(struct net *net, const struct nlattr *attr, in validate_and_copy_sample()
2559 const struct nlattr *attrs[OVS_SAMPLE_ATTR_MAX + 1]; in validate_and_copy_sample()
2560 const struct nlattr *probability, *actions; in validate_and_copy_sample()
2561 const struct nlattr *a; in validate_and_copy_sample()
2620 const struct nlattr *attr, in validate_and_copy_dec_ttl()
2627 const struct nlattr *attrs[OVS_DEC_TTL_ATTR_MAX + 1]; in validate_and_copy_dec_ttl()
2629 const struct nlattr *a, *actions; in validate_and_copy_dec_ttl()
2679 const struct nlattr *attr, in validate_and_copy_clone()
2760 static int validate_and_copy_set_tun(const struct nlattr *attr, in validate_and_copy_set_tun()
2768 struct nlattr *a; in validate_and_copy_set_tun()
2841 static bool validate_nsh(const struct nlattr *attr, bool is_mask, in validate_nsh()
2868 static int validate_set(const struct nlattr *a, in validate_set()
2873 const struct nlattr *ovs_key = nla_data(a); in validate_set()
3012 struct nlattr *at; in validate_set()
3040 static int validate_userspace(const struct nlattr *attr) in validate_userspace()
3047 struct nlattr *a[OVS_USERSPACE_ATTR_MAX + 1]; in validate_userspace()
3069 const struct nlattr *attr, in validate_and_copy_check_pkt_len()
3076 const struct nlattr *acts_if_greater, *acts_if_lesser_eq; in validate_and_copy_check_pkt_len()
3077 struct nlattr *a[OVS_CHECK_PKT_LEN_ATTR_MAX + 1]; in validate_and_copy_check_pkt_len()
3147 static int copy_action(const struct nlattr *from, in copy_action()
3151 struct nlattr *to; in copy_action()
3161 static int __ovs_nla_copy_actions(struct net *net, const struct nlattr *attr, in __ovs_nla_copy_actions()
3169 const struct nlattr *a; in __ovs_nla_copy_actions()
3498 int ovs_nla_copy_actions(struct net *net, const struct nlattr *attr, in ovs_nla_copy_actions()
3522 static int sample_action_to_attr(const struct nlattr *attr, in sample_action_to_attr()
3525 struct nlattr *start, *ac_start = NULL, *sample_arg; in sample_action_to_attr()
3528 struct nlattr *actions; in sample_action_to_attr()
3563 static int clone_action_to_attr(const struct nlattr *attr, in clone_action_to_attr()
3566 struct nlattr *start; in clone_action_to_attr()
3585 static int check_pkt_len_action_to_attr(const struct nlattr *attr, in check_pkt_len_action_to_attr()
3588 struct nlattr *start, *ac_start = NULL; in check_pkt_len_action_to_attr()
3590 const struct nlattr *a, *cpl_arg; in check_pkt_len_action_to_attr()
3654 static int dec_ttl_action_to_attr(const struct nlattr *attr, in dec_ttl_action_to_attr()
3657 struct nlattr *start, *action_start; in dec_ttl_action_to_attr()
3658 const struct nlattr *a; in dec_ttl_action_to_attr()
3696 static int set_action_to_attr(const struct nlattr *a, struct sk_buff *skb) in set_action_to_attr()
3698 const struct nlattr *ovs_key = nla_data(a); in set_action_to_attr()
3700 struct nlattr *start; in set_action_to_attr()
3730 static int masked_set_action_to_set_action_attr(const struct nlattr *a, in masked_set_action_to_set_action_attr()
3733 const struct nlattr *ovs_key = nla_data(a); in masked_set_action_to_set_action_attr()
3734 struct nlattr *nla; in masked_set_action_to_set_action_attr()
3751 int ovs_nla_put_actions(const struct nlattr *attr, int len, struct sk_buff *skb) in ovs_nla_put_actions()
3753 const struct nlattr *a; in ovs_nla_put_actions()