Lines Matching refs:nlattr

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