• Home
  • Raw
  • Download

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()
464 static int __parse_flow_nlattrs(const struct nlattr *attr, in __parse_flow_nlattrs()
465 const struct nlattr *a[], in __parse_flow_nlattrs()
468 const struct nlattr *nla; in __parse_flow_nlattrs()
509 static int parse_flow_mask_nlattrs(const struct nlattr *attr, in parse_flow_mask_nlattrs()
510 const struct nlattr *a[], u64 *attrsp, in parse_flow_mask_nlattrs()
516 int parse_flow_nlattrs(const struct nlattr *attr, const struct nlattr *a[], in parse_flow_nlattrs()
522 static int genev_tun_opt_from_nlattr(const struct nlattr *a, in genev_tun_opt_from_nlattr()
573 static int vxlan_tun_opt_from_nlattr(const struct nlattr *attr, in vxlan_tun_opt_from_nlattr()
577 struct nlattr *a; in vxlan_tun_opt_from_nlattr()
629 static int erspan_tun_opt_from_nlattr(const struct nlattr *a, in erspan_tun_opt_from_nlattr()
656 static int ip_tun_from_nlattr(const struct nlattr *attr, in ip_tun_from_nlattr()
664 struct nlattr *a; in ip_tun_from_nlattr()
847 struct nlattr *nla; in vxlan_opt_to_nlattr()
938 struct nlattr *nla; in ip_tun_to_nlattr()
964 const struct nlattr *a[], in encode_vlan_from_nlattrs()
988 const struct nlattr **a, bool log) in validate_vlan_from_nlattrs()
1026 const struct nlattr **a, bool log) in validate_vlan_mask_from_nlattrs()
1068 const struct nlattr **a, bool is_mask, in __parse_vlan_from_nlattrs()
1072 const struct nlattr *encap; in __parse_vlan_from_nlattrs()
1102 u64 *key_attrs, const struct nlattr **a, in parse_vlan_from_nlattrs()
1125 u64 *attrs, const struct nlattr **a, in parse_eth_type_from_nlattrs()
1146 u64 *attrs, const struct nlattr **a, in metadata_from_nlattrs()
1283 int nsh_hdr_from_nlattr(const struct nlattr *attr, in nsh_hdr_from_nlattr()
1286 struct nlattr *a; in nsh_hdr_from_nlattr()
1337 int nsh_key_from_nlattr(const struct nlattr *attr, in nsh_key_from_nlattr()
1340 struct nlattr *a; in nsh_key_from_nlattr()
1377 static int nsh_key_put_from_nlattr(const struct nlattr *attr, in nsh_key_put_from_nlattr()
1381 struct nlattr *a; in nsh_key_put_from_nlattr()
1499 u64 attrs, const struct nlattr **a, in ovs_key_from_nlattrs()
1737 static void nlattr_set(struct nlattr *attr, u8 val, in nlattr_set()
1740 struct nlattr *nla; in nlattr_set()
1755 static void mask_set_nlattr(struct nlattr *attr, u8 val) in mask_set_nlattr()
1777 const struct nlattr *nla_key, in ovs_nla_get_match()
1778 const struct nlattr *nla_mask, in ovs_nla_get_match()
1781 const struct nlattr *a[OVS_KEY_ATTR_MAX + 1]; in ovs_nla_get_match()
1782 struct nlattr *newmask = NULL; in ovs_nla_get_match()
1855 static size_t get_ufid_len(const struct nlattr *attr, bool log) in get_ufid_len()
1875 bool ovs_nla_get_ufid(struct sw_flow_id *sfid, const struct nlattr *attr, in ovs_nla_get_ufid()
1885 int ovs_nla_get_identifier(struct sw_flow_id *sfid, const struct nlattr *ufid, in ovs_nla_get_identifier()
1903 u32 ovs_nla_get_ufid_flags(const struct nlattr *attr) in ovs_nla_get_ufid_flags()
1929 const struct nlattr *a[OVS_KEY_ATTR_MAX + 1], in ovs_nla_get_flow_metadata()
1963 struct nlattr *start; in nsh_key_to_nlattr()
1993 struct nlattr *nla; in __ovs_nla_put_key()
1994 struct nlattr *encap = NULL; in __ovs_nla_put_key()
1995 struct nlattr *in_encap = NULL; in __ovs_nla_put_key()
2238 struct nlattr *nla; in ovs_nla_put_key()
2292 static void ovs_nla_free_nested_actions(const struct nlattr *actions, int len);
2294 static void ovs_nla_free_check_pkt_len_action(const struct nlattr *action) in ovs_nla_free_check_pkt_len_action()
2296 const struct nlattr *a; in ovs_nla_free_check_pkt_len_action()
2309 static void ovs_nla_free_clone_action(const struct nlattr *action) in ovs_nla_free_clone_action()
2311 const struct nlattr *a = nla_data(action); in ovs_nla_free_clone_action()
2323 static void ovs_nla_free_dec_ttl_action(const struct nlattr *action) in ovs_nla_free_dec_ttl_action()
2325 const struct nlattr *a = nla_data(action); in ovs_nla_free_dec_ttl_action()
2334 static void ovs_nla_free_sample_action(const struct nlattr *action) in ovs_nla_free_sample_action()
2336 const struct nlattr *a = nla_data(action); in ovs_nla_free_sample_action()
2348 static void ovs_nla_free_set_action(const struct nlattr *a) in ovs_nla_free_set_action()
2350 const struct nlattr *ovs_key = nla_data(a); in ovs_nla_free_set_action()
2361 static void ovs_nla_free_nested_actions(const struct nlattr *actions, int len) in ovs_nla_free_nested_actions()
2363 const struct nlattr *a; in ovs_nla_free_nested_actions()
2424 static struct nlattr *reserve_sfa_size(struct sw_flow_actions **sfa, in reserve_sfa_size()
2460 return (struct nlattr *) ((unsigned char *)(*sfa) + next_offset); in reserve_sfa_size()
2463 static struct nlattr *__add_action(struct sw_flow_actions **sfa, in __add_action()
2466 struct nlattr *a; in __add_action()
2485 struct nlattr *a; in ovs_nla_add_action()
2508 struct nlattr *a = (struct nlattr *) ((unsigned char *)sfa->actions + in add_nested_action_end()
2514 static int __ovs_nla_copy_actions(struct net *net, const struct nlattr *attr,
2521 static int validate_and_copy_sample(struct net *net, const struct nlattr *attr, in validate_and_copy_sample()
2528 const struct nlattr *attrs[OVS_SAMPLE_ATTR_MAX + 1]; in validate_and_copy_sample()
2529 const struct nlattr *probability, *actions; in validate_and_copy_sample()
2530 const struct nlattr *a; in validate_and_copy_sample()
2589 const struct nlattr *attr, in validate_and_copy_dec_ttl()
2596 const struct nlattr *attrs[OVS_DEC_TTL_ATTR_MAX + 1]; in validate_and_copy_dec_ttl()
2598 const struct nlattr *a, *actions; in validate_and_copy_dec_ttl()
2638 const struct nlattr *attr, in validate_and_copy_clone()
2719 static int validate_and_copy_set_tun(const struct nlattr *attr, in validate_and_copy_set_tun()
2727 struct nlattr *a; in validate_and_copy_set_tun()
2800 static bool validate_nsh(const struct nlattr *attr, bool is_mask, in validate_nsh()
2827 static int validate_set(const struct nlattr *a, in validate_set()
2832 const struct nlattr *ovs_key = nla_data(a); in validate_set()
2971 struct nlattr *at; in validate_set()
2999 static int validate_userspace(const struct nlattr *attr) in validate_userspace()
3006 struct nlattr *a[OVS_USERSPACE_ATTR_MAX + 1]; in validate_userspace()
3028 const struct nlattr *attr, in validate_and_copy_check_pkt_len()
3035 const struct nlattr *acts_if_greater, *acts_if_lesser_eq; in validate_and_copy_check_pkt_len()
3036 struct nlattr *a[OVS_CHECK_PKT_LEN_ATTR_MAX + 1]; in validate_and_copy_check_pkt_len()
3106 static int copy_action(const struct nlattr *from, in copy_action()
3110 struct nlattr *to; in copy_action()
3120 static int __ovs_nla_copy_actions(struct net *net, const struct nlattr *attr, in __ovs_nla_copy_actions()
3128 const struct nlattr *a; in __ovs_nla_copy_actions()
3449 int ovs_nla_copy_actions(struct net *net, const struct nlattr *attr, in ovs_nla_copy_actions()
3473 static int sample_action_to_attr(const struct nlattr *attr, in sample_action_to_attr()
3476 struct nlattr *start, *ac_start = NULL, *sample_arg; in sample_action_to_attr()
3479 struct nlattr *actions; in sample_action_to_attr()
3514 static int clone_action_to_attr(const struct nlattr *attr, in clone_action_to_attr()
3517 struct nlattr *start; in clone_action_to_attr()
3536 static int check_pkt_len_action_to_attr(const struct nlattr *attr, in check_pkt_len_action_to_attr()
3539 struct nlattr *start, *ac_start = NULL; in check_pkt_len_action_to_attr()
3541 const struct nlattr *a, *cpl_arg; in check_pkt_len_action_to_attr()
3605 static int dec_ttl_action_to_attr(const struct nlattr *attr, in dec_ttl_action_to_attr()
3608 struct nlattr *start, *action_start; in dec_ttl_action_to_attr()
3609 const struct nlattr *a; in dec_ttl_action_to_attr()
3647 static int set_action_to_attr(const struct nlattr *a, struct sk_buff *skb) in set_action_to_attr()
3649 const struct nlattr *ovs_key = nla_data(a); in set_action_to_attr()
3651 struct nlattr *start; in set_action_to_attr()
3681 static int masked_set_action_to_set_action_attr(const struct nlattr *a, in masked_set_action_to_set_action_attr()
3684 const struct nlattr *ovs_key = nla_data(a); in masked_set_action_to_set_action_attr()
3685 struct nlattr *nla; in masked_set_action_to_set_action_attr()
3702 int ovs_nla_put_actions(const struct nlattr *attr, int len, struct sk_buff *skb) in ovs_nla_put_actions()
3704 const struct nlattr *a; in ovs_nla_put_actions()