1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20#ifndef FLOW_NETLINK_H
21#define FLOW_NETLINK_H 1
22
23#include <linux/kernel.h>
24#include <linux/netlink.h>
25#include <linux/openvswitch.h>
26#include <linux/spinlock.h>
27#include <linux/types.h>
28#include <linux/rcupdate.h>
29#include <linux/if_ether.h>
30#include <linux/in6.h>
31#include <linux/jiffies.h>
32#include <linux/time.h>
33#include <linux/flex_array.h>
34
35#include <net/inet_ecn.h>
36#include <net/ip_tunnels.h>
37
38#include "flow.h"
39
40void ovs_match_init(struct sw_flow_match *match,
41 struct sw_flow_key *key, struct sw_flow_mask *mask);
42
43int ovs_nla_put_flow(const struct sw_flow_key *,
44 const struct sw_flow_key *, struct sk_buff *);
45int ovs_nla_get_flow_metadata(struct sw_flow *flow,
46 const struct nlattr *attr);
47int ovs_nla_get_match(struct sw_flow_match *match,
48 const struct nlattr *,
49 const struct nlattr *);
50
51int ovs_nla_copy_actions(const struct nlattr *attr,
52 const struct sw_flow_key *key, int depth,
53 struct sw_flow_actions **sfa);
54int ovs_nla_put_actions(const struct nlattr *attr,
55 int len, struct sk_buff *skb);
56
57struct sw_flow_actions *ovs_nla_alloc_flow_actions(int actions_len);
58void ovs_nla_free_flow_actions(struct sw_flow_actions *);
59
60#endif
61