diff options
Diffstat (limited to 'net/openvswitch/flow.h')
| -rw-r--r-- | net/openvswitch/flow.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/openvswitch/flow.h b/net/openvswitch/flow.h index 14a324eb017b..a7bb60ff3b5b 100644 --- a/net/openvswitch/flow.h +++ b/net/openvswitch/flow.h | |||
| @@ -43,6 +43,7 @@ struct sw_flow_actions { | |||
| 43 | struct sw_flow_key { | 43 | struct sw_flow_key { |
| 44 | struct { | 44 | struct { |
| 45 | u32 priority; /* Packet QoS priority. */ | 45 | u32 priority; /* Packet QoS priority. */ |
| 46 | u32 skb_mark; /* SKB mark. */ | ||
| 46 | u16 in_port; /* Input switch port (or DP_MAX_PORTS). */ | 47 | u16 in_port; /* Input switch port (or DP_MAX_PORTS). */ |
| 47 | } phy; | 48 | } phy; |
| 48 | struct { | 49 | struct { |
| @@ -144,6 +145,7 @@ u64 ovs_flow_used_time(unsigned long flow_jiffies); | |||
| 144 | * ------ --- ------ ----- | 145 | * ------ --- ------ ----- |
| 145 | * OVS_KEY_ATTR_PRIORITY 4 -- 4 8 | 146 | * OVS_KEY_ATTR_PRIORITY 4 -- 4 8 |
| 146 | * OVS_KEY_ATTR_IN_PORT 4 -- 4 8 | 147 | * OVS_KEY_ATTR_IN_PORT 4 -- 4 8 |
| 148 | * OVS_KEY_ATTR_SKB_MARK 4 -- 4 8 | ||
| 147 | * OVS_KEY_ATTR_ETHERNET 12 -- 4 16 | 149 | * OVS_KEY_ATTR_ETHERNET 12 -- 4 16 |
| 148 | * OVS_KEY_ATTR_ETHERTYPE 2 2 4 8 (outer VLAN ethertype) | 150 | * OVS_KEY_ATTR_ETHERTYPE 2 2 4 8 (outer VLAN ethertype) |
| 149 | * OVS_KEY_ATTR_8021Q 4 -- 4 8 | 151 | * OVS_KEY_ATTR_8021Q 4 -- 4 8 |
| @@ -153,14 +155,14 @@ u64 ovs_flow_used_time(unsigned long flow_jiffies); | |||
| 153 | * OVS_KEY_ATTR_ICMPV6 2 2 4 8 | 155 | * OVS_KEY_ATTR_ICMPV6 2 2 4 8 |
| 154 | * OVS_KEY_ATTR_ND 28 -- 4 32 | 156 | * OVS_KEY_ATTR_ND 28 -- 4 32 |
| 155 | * ------------------------------------------------- | 157 | * ------------------------------------------------- |
| 156 | * total 144 | 158 | * total 152 |
| 157 | */ | 159 | */ |
| 158 | #define FLOW_BUFSIZE 144 | 160 | #define FLOW_BUFSIZE 152 |
| 159 | 161 | ||
| 160 | int ovs_flow_to_nlattrs(const struct sw_flow_key *, struct sk_buff *); | 162 | int ovs_flow_to_nlattrs(const struct sw_flow_key *, struct sk_buff *); |
| 161 | int ovs_flow_from_nlattrs(struct sw_flow_key *swkey, int *key_lenp, | 163 | int ovs_flow_from_nlattrs(struct sw_flow_key *swkey, int *key_lenp, |
| 162 | const struct nlattr *); | 164 | const struct nlattr *); |
| 163 | int ovs_flow_metadata_from_nlattrs(u32 *priority, u16 *in_port, | 165 | int ovs_flow_metadata_from_nlattrs(u32 *priority, u32 *mark, u16 *in_port, |
| 164 | const struct nlattr *); | 166 | const struct nlattr *); |
| 165 | 167 | ||
| 166 | #define MAX_ACTIONS_BUFSIZE (16 * 1024) | 168 | #define MAX_ACTIONS_BUFSIZE (16 * 1024) |
