mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
tc: flower: Enable offload support IPSEC SPI field.
This patch enables offload for TC classifier flower rules which matches against SPI field. Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4c13eda757
commit
c8915d7329
2 changed files with 13 additions and 0 deletions
|
@ -64,6 +64,10 @@ struct flow_match_tcp {
|
||||||
struct flow_dissector_key_tcp *key, *mask;
|
struct flow_dissector_key_tcp *key, *mask;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct flow_match_ipsec {
|
||||||
|
struct flow_dissector_key_ipsec *key, *mask;
|
||||||
|
};
|
||||||
|
|
||||||
struct flow_match_mpls {
|
struct flow_match_mpls {
|
||||||
struct flow_dissector_key_mpls *key, *mask;
|
struct flow_dissector_key_mpls *key, *mask;
|
||||||
};
|
};
|
||||||
|
@ -116,6 +120,8 @@ void flow_rule_match_ports_range(const struct flow_rule *rule,
|
||||||
struct flow_match_ports_range *out);
|
struct flow_match_ports_range *out);
|
||||||
void flow_rule_match_tcp(const struct flow_rule *rule,
|
void flow_rule_match_tcp(const struct flow_rule *rule,
|
||||||
struct flow_match_tcp *out);
|
struct flow_match_tcp *out);
|
||||||
|
void flow_rule_match_ipsec(const struct flow_rule *rule,
|
||||||
|
struct flow_match_ipsec *out);
|
||||||
void flow_rule_match_icmp(const struct flow_rule *rule,
|
void flow_rule_match_icmp(const struct flow_rule *rule,
|
||||||
struct flow_match_icmp *out);
|
struct flow_match_icmp *out);
|
||||||
void flow_rule_match_mpls(const struct flow_rule *rule,
|
void flow_rule_match_mpls(const struct flow_rule *rule,
|
||||||
|
|
|
@ -146,6 +146,13 @@ void flow_rule_match_tcp(const struct flow_rule *rule,
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(flow_rule_match_tcp);
|
EXPORT_SYMBOL(flow_rule_match_tcp);
|
||||||
|
|
||||||
|
void flow_rule_match_ipsec(const struct flow_rule *rule,
|
||||||
|
struct flow_match_ipsec *out)
|
||||||
|
{
|
||||||
|
FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_IPSEC, out);
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(flow_rule_match_ipsec);
|
||||||
|
|
||||||
void flow_rule_match_icmp(const struct flow_rule *rule,
|
void flow_rule_match_icmp(const struct flow_rule *rule,
|
||||||
struct flow_match_icmp *out)
|
struct flow_match_icmp *out)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue