diff options
author | Ratheesh Kannoth <rkannoth@marvell.com> | 2023-08-01 07:11:00 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-08-02 10:09:32 +0100 |
commit | c8915d7329d6e9164c5c847dc1c56a2c0437053f (patch) | |
tree | 324535f6606f766947e8445b7c0ba70a7ad0f633 /net | |
parent | 4c13eda757e3ca72f523d07ed9e5f3e72b374299 (diff) | |
download | linux-stable-c8915d7329d6e9164c5c847dc1c56a2c0437053f.tar.gz linux-stable-c8915d7329d6e9164c5c847dc1c56a2c0437053f.tar.bz2 linux-stable-c8915d7329d6e9164c5c847dc1c56a2c0437053f.zip |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/flow_offload.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/core/flow_offload.c b/net/core/flow_offload.c index acfc1f88ea79..bc5169482710 100644 --- a/net/core/flow_offload.c +++ b/net/core/flow_offload.c @@ -146,6 +146,13 @@ void flow_rule_match_tcp(const struct flow_rule *rule, } 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, struct flow_match_icmp *out) { |