[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171002144946.GE1941@nanopsycho.orion>
Date: Mon, 2 Oct 2017 16:49:46 +0200
From: Jiri Pirko <jiri@...nulli.us>
To: Tom Herbert <tom@...ntonium.net>
Cc: davem@...emloft.net, hannes@...essinduktion.org,
netdev@...r.kernel.org, rohit@...ntonium.net
Subject: Re: [PATCH RFC] flow_dissector: Add FLOW_DISSECTOR_F_FLOWER
Fri, Sep 29, 2017 at 09:13:42PM CEST, tom@...ntonium.net wrote:
>This patch is RFC and would be applied after "flow_dissector:
>Protocol specific flow dissector offload"
>
>In order to maitain uAPI in flower, the FLOW_DISSECTOR_F_FLOWER flag
>is added to indicate to flow_dissector that the caller is flower.
>As new funtionality is addes to flow_dissector that would break
>the flower uAPI, the code can be wrapped in "if (!(flags &
>FLOW_DISSECTOR_F_FLOWER)).
>
>In this patch the conditional is use around protocol specific
>dissection (e.g. DPI into VXLAN) as well as the code that
>enforces a depth of parsing to prevent DPI. The latter was a
>recent patch that would introduce a parsing limit to flower that
>did not exist before (i.e. would break uAPI).
>
>Signed-off-by: Tom Herbert <tom@...ntonium.net>
>---
> include/net/flow_dissector.h | 1 +
> net/core/flow_dissector.c | 17 +++++++++++------
> net/sched/cls_flow.c | 3 ++-
> 3 files changed, 14 insertions(+), 7 deletions(-)
>
>diff --git a/include/net/flow_dissector.h b/include/net/flow_dissector.h
>index ad75bbfd1c9c..ca315107d147 100644
>--- a/include/net/flow_dissector.h
>+++ b/include/net/flow_dissector.h
>@@ -214,6 +214,7 @@ enum flow_dissector_key_id {
> #define FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL BIT(2)
> #define FLOW_DISSECTOR_F_STOP_AT_ENCAP BIT(3)
> #define FLOW_DISSECTOR_F_STOP_AT_L4 BIT(4)
>+#define FLOW_DISSECTOR_F_FLOWER BIT(5)
I don't like flow_dissector to have any user-specific bits. Note that
the same dissection may be used not only from flower, but from other
code as well (OVS). Flow dissector should not care who the caller is.
Powered by blists - more mailing lists