Commit ee1c45e8 authored by Paul Blakey's avatar Paul Blakey Committed by David S. Miller

flow_offload: Add flow_match_ct to get rule ct match

Add relevant getter for ct info dissector.
Signed-off-by: default avatarPaul Blakey <paulb@mellanox.com>
Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 43435e91
...@@ -69,6 +69,10 @@ struct flow_match_enc_opts { ...@@ -69,6 +69,10 @@ struct flow_match_enc_opts {
struct flow_dissector_key_enc_opts *key, *mask; struct flow_dissector_key_enc_opts *key, *mask;
}; };
struct flow_match_ct {
struct flow_dissector_key_ct *key, *mask;
};
struct flow_rule; struct flow_rule;
void flow_rule_match_meta(const struct flow_rule *rule, void flow_rule_match_meta(const struct flow_rule *rule,
...@@ -111,6 +115,8 @@ void flow_rule_match_enc_keyid(const struct flow_rule *rule, ...@@ -111,6 +115,8 @@ void flow_rule_match_enc_keyid(const struct flow_rule *rule,
struct flow_match_enc_keyid *out); struct flow_match_enc_keyid *out);
void flow_rule_match_enc_opts(const struct flow_rule *rule, void flow_rule_match_enc_opts(const struct flow_rule *rule,
struct flow_match_enc_opts *out); struct flow_match_enc_opts *out);
void flow_rule_match_ct(const struct flow_rule *rule,
struct flow_match_ct *out);
enum flow_action_id { enum flow_action_id {
FLOW_ACTION_ACCEPT = 0, FLOW_ACTION_ACCEPT = 0,
......
...@@ -188,6 +188,13 @@ void flow_action_cookie_destroy(struct flow_action_cookie *cookie) ...@@ -188,6 +188,13 @@ void flow_action_cookie_destroy(struct flow_action_cookie *cookie)
} }
EXPORT_SYMBOL(flow_action_cookie_destroy); EXPORT_SYMBOL(flow_action_cookie_destroy);
void flow_rule_match_ct(const struct flow_rule *rule,
struct flow_match_ct *out)
{
FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_CT, out);
}
EXPORT_SYMBOL(flow_rule_match_ct);
struct flow_block_cb *flow_block_cb_alloc(flow_setup_cb_t *cb, struct flow_block_cb *flow_block_cb_alloc(flow_setup_cb_t *cb,
void *cb_ident, void *cb_priv, void *cb_ident, void *cb_priv,
void (*release)(void *cb_priv)) void (*release)(void *cb_priv))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment