diff options
author | Tom Herbert <tom@herbertland.com> | 2015-09-01 09:24:28 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-01 15:06:22 -0700 |
commit | 807e165dc44fd93f9d378f861f0540a158d7343a (patch) | |
tree | f7ac0c0750f3a99c7261f21079e05ee1090345fe /include/net | |
parent | cd79a2382aa5dcefa6e21a7c59bb1bb19e53b74d (diff) | |
download | op-kernel-dev-807e165dc44fd93f9d378f861f0540a158d7343a.zip op-kernel-dev-807e165dc44fd93f9d378f861f0540a158d7343a.tar.gz |
flow_dissector: Add control/reporting of fragmentation
Add an input flag to flow dissector on rather dissection should be
attempted on a first fragment. Also add key_control flags to indicate
that a packet is a fragment or first fragment.
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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/flow_dissector.h b/include/net/flow_dissector.h index 74fe160..3410227 100644 --- a/include/net/flow_dissector.h +++ b/include/net/flow_dissector.h @@ -12,6 +12,8 @@ struct flow_dissector_key_control { u16 thoff; u16 addr_type; + u32 is_fragment:1; + u32 first_frag:1; }; /** @@ -122,6 +124,8 @@ enum flow_dissector_key_id { FLOW_DISSECTOR_KEY_MAX, }; +#define FLOW_DISSECTOR_F_PARSE_1ST_FRAG BIT(0) + struct flow_dissector_key { enum flow_dissector_key_id key_id; size_t offset; /* offset of struct flow_dissector_key_* |