mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
openvswitch: Allow matching on conntrack mark
Allow matching and setting the ct_mark field. As with ct_state and ct_zone, these fields are populated when the CT action is executed. To write to this field, a value and mask can be specified as a nested attribute under the CT action. This data is stored with the conntrack entry, and is executed after the lookup occurs for the CT action. The conntrack entry itself must be committed using the COMMIT flag in the CT action flags for this change to persist. Signed-off-by: Justin Pettit <jpettit@nicira.com> Signed-off-by: Joe Stringer <joestringer@nicira.com> Acked-by: Thomas Graf <tgraf@suug.ch> Acked-by: Pravin B Shelar <pshelar@nicira.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7f8a436eaa
commit
182e3042e1
6 changed files with 83 additions and 4 deletions
|
@ -114,6 +114,7 @@ struct sw_flow_key {
|
|||
struct {
|
||||
/* Connection tracking fields. */
|
||||
u16 zone;
|
||||
u32 mark;
|
||||
u8 state;
|
||||
} ct;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue