diff options
author | Tom Herbert <tom@herbertland.com> | 2015-09-01 12:24:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-01 18:06:23 -0400 |
commit | 823b96939578eae67b9d6c0e33a39d6a7b6401e7 (patch) | |
tree | f0e2c41a24615366c953416d27762658d7a68c30 /include/net | |
parent | 872b1abb1ed47a691f465fb3d285f6cf6bcd8663 (diff) |
flow_dissector: Add control/reporting of encapsulation
Add an input flag to flow dissector on rather dissection should stop
when encapsulation is detected (IP/IP or GRE). Also, add a key_control
flag that indicates encapsulation was encountered during the
dissection.
Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/flow_dissector.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/flow_dissector.h b/include/net/flow_dissector.h index 66dbc3498efb..bddd1089dbce 100644 --- a/include/net/flow_dissector.h +++ b/include/net/flow_dissector.h | |||
@@ -14,6 +14,7 @@ struct flow_dissector_key_control { | |||
14 | u16 addr_type; | 14 | u16 addr_type; |
15 | u32 is_fragment:1; | 15 | u32 is_fragment:1; |
16 | u32 first_frag:1; | 16 | u32 first_frag:1; |
17 | u32 encapsulation:1; | ||
17 | }; | 18 | }; |
18 | 19 | ||
19 | /** | 20 | /** |
@@ -127,6 +128,7 @@ enum flow_dissector_key_id { | |||
127 | #define FLOW_DISSECTOR_F_PARSE_1ST_FRAG BIT(0) | 128 | #define FLOW_DISSECTOR_F_PARSE_1ST_FRAG BIT(0) |
128 | #define FLOW_DISSECTOR_F_STOP_AT_L3 BIT(1) | 129 | #define FLOW_DISSECTOR_F_STOP_AT_L3 BIT(1) |
129 | #define FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL BIT(2) | 130 | #define FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL BIT(2) |
131 | #define FLOW_DISSECTOR_F_STOP_AT_ENCAP BIT(3) | ||
130 | 132 | ||
131 | struct flow_dissector_key { | 133 | struct flow_dissector_key { |
132 | enum flow_dissector_key_id key_id; | 134 | enum flow_dissector_key_id key_id; |