diff options
author | Paul Blakey <paulb@mellanox.com> | 2019-07-09 10:30:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-09 12:11:59 -0700 |
commit | 75a56758d6390ea6db523ad26ce378f34b907b0c (patch) | |
tree | ce8e01e2dda0e1cbe553e983cbcf468fb5427c11 /include/net | |
parent | b57dc7c13ea90e09ae15f821d2583fa0231b4935 (diff) | |
download | linux-stable-75a56758d6390ea6db523ad26ce378f34b907b0c.tar.gz linux-stable-75a56758d6390ea6db523ad26ce378f34b907b0c.tar.bz2 linux-stable-75a56758d6390ea6db523ad26ce378f34b907b0c.zip |
net/flow_dissector: add connection tracking dissection
Retreives connection tracking zone, mark, label, and state from
a SKB.
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/flow_dissector.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/net/flow_dissector.h b/include/net/flow_dissector.h index 02478e48fae4..90bd210be060 100644 --- a/include/net/flow_dissector.h +++ b/include/net/flow_dissector.h @@ -208,6 +208,20 @@ struct flow_dissector_key_meta { int ingress_ifindex; }; +/** + * struct flow_dissector_key_ct: + * @ct_state: conntrack state after converting with map + * @ct_mark: conttrack mark + * @ct_zone: conntrack zone + * @ct_labels: conntrack labels + */ +struct flow_dissector_key_ct { + u16 ct_state; + u16 ct_zone; + u32 ct_mark; + u32 ct_labels[4]; +}; + enum flow_dissector_key_id { FLOW_DISSECTOR_KEY_CONTROL, /* struct flow_dissector_key_control */ FLOW_DISSECTOR_KEY_BASIC, /* struct flow_dissector_key_basic */ @@ -234,6 +248,7 @@ enum flow_dissector_key_id { FLOW_DISSECTOR_KEY_ENC_IP, /* struct flow_dissector_key_ip */ FLOW_DISSECTOR_KEY_ENC_OPTS, /* struct flow_dissector_key_enc_opts */ FLOW_DISSECTOR_KEY_META, /* struct flow_dissector_key_meta */ + FLOW_DISSECTOR_KEY_CT, /* struct flow_dissector_key_ct */ FLOW_DISSECTOR_KEY_MAX, }; |