2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

datapath: Allow TCP flags to be cleared.

When querying flow stats allow the TCP flags to be reset.  Since
the datapath ORs together all flags that have previously been
seen it is otherwise impossible to determine the set of flags from
after a particular time.
This commit is contained in:
Jesse Gross
2009-10-28 14:36:52 -07:00
parent 3f355f47f8
commit 18fdbe16de
2 changed files with 13 additions and 4 deletions

View File

@@ -165,11 +165,15 @@ struct odp_flow_key {
__u8 reserved; /* Pad to 64 bits. */
};
/* Flags for ODP_FLOW. */
#define ODPFF_ZERO_TCP_FLAGS (1 << 0) /* Zero the TCP flags. */
struct odp_flow {
struct odp_flow_stats stats;
struct odp_flow_key key;
union odp_action *actions;
__u32 n_actions;
__u32 flags;
};
/* Flags for ODP_FLOW_PUT. */