aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/flow_offload.c
diff options
context:
space:
mode:
authorEdward Cree <ecree@solarflare.com>2019-05-14 21:18:12 +0100
committerDavid S. Miller <davem@davemloft.net>2019-05-16 12:02:42 -0700
commitbae9ed69029c7d499c57485593b2faae475fd704 (patch)
treede0d141661c0a15e3f529a76c8f0735af9cb2de6 /net/core/flow_offload.c
parentMerge branch 'rhashtable-Fix-sparse-warnings' (diff)
downloadlinux-dev-bae9ed69029c7d499c57485593b2faae475fd704.tar.xz
linux-dev-bae9ed69029c7d499c57485593b2faae475fd704.zip
flow_offload: support CVLAN match
Plumb it through from the flow_dissector. Signed-off-by: Edward Cree <ecree@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/flow_offload.c')
-rw-r--r--net/core/flow_offload.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/core/flow_offload.c b/net/core/flow_offload.c
index c3a00eac4804..5ce7d47a960e 100644
--- a/net/core/flow_offload.c
+++ b/net/core/flow_offload.c
@@ -54,6 +54,13 @@ void flow_rule_match_vlan(const struct flow_rule *rule,
}
EXPORT_SYMBOL(flow_rule_match_vlan);
+void flow_rule_match_cvlan(const struct flow_rule *rule,
+ struct flow_match_vlan *out)
+{
+ FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_CVLAN, out);
+}
+EXPORT_SYMBOL(flow_rule_match_cvlan);
+
void flow_rule_match_ipv4_addrs(const struct flow_rule *rule,
struct flow_match_ipv4_addrs *out)
{