From: Ben Pfaff <blp@nicira.com>
To: Simon Horman <horms@verge.net.au>
Cc: dev@openvswitch.org, netdev@vger.kernel.org,
Jesse Gross <jesse@nicira.com>,
Pravin B Shelar <pshelar@nicira.com>, Ravi K <rkerur@gmail.com>,
Joe Stringer <joe@wand.net.nz>
Subject: Re: [PATCH v2.50 2/6] ofp-actions: Account for OF version when enforcing action consistency
Date: Fri, 15 Nov 2013 14:34:14 -0800 [thread overview]
Message-ID: <20131115223414.GC32463@nicira.com> (raw)
In-Reply-To: <1384506623-18503-3-git-send-email-horms@verge.net.au>
On Fri, Nov 15, 2013 at 06:10:19PM +0900, Simon Horman wrote:
> The aim of this patch is to provide infrastructure to differentiate
> between OpenFlow1.1 - 1.2 and OpenFlow1.3+ consistency checking. It
> also provides enhanced OpenFlow1.0 consistency checking.
>
> Some different versions of OpenFlow require different consistency
> checking.
>
> 1. OpenFlow1.0
>
> This variant implicitly pushes a VLAN tag if one doesn't exist
> and an action to modify a VLAN tag is encountered.
>
> MPLS push is supported as a Nicira extension whose behaviour is
> the same as OpenFlow1.1 - 1.2.
>
> In practice Open vSwitch allows inconsistent OpenFlow 1.0 actions so
> this portion of the change is just for completeness. I do not believe it
> has any run-time affect. And I would not be opposed to folding this case
> into the handling of OpenFlow1.1 - 1.2.
>
> 2. OpenFlow1.1 - 1.2
>
> This does not have the implicit VLAN tag push behaviour of OpenFlow1.0.
>
> An MPLS push action pushes an MPLS LSE after any VLAN tags that are
> present. This is pre-OpenFlow1.3 tag ordering.
>
> 3. OpenFlow1.3+
>
> This does not have the implicit VLAN tag push behaviour of OpenFlow1.0.
>
> An MPLS push action pushes an MPLS LSE before any VLAN tags that are
> present. This is OpenFlow1.3+ tag ordering. Its implication
> is that after an MPLS push action a packet is no longer a VLAN
> packet as there are no longer any VLAN tags immediately after
> the ethernet header: there is now an MPLS LSE there.
>
> Currently Open vSwitch does not implement OpenFlow1.3+ tag ordering
> so this patch uses the same consistency checking for OpenFlow1.3+
> as for OpenFlow1.1 - 1.2.
>
> A subsequent patch, which implements OpenFlow1.3+ tag ordering,
> makes use of the infrastructure provided by this patch to check
> actions accordingly.
>
> Unfortunately ofpact_get_SET_VLAN_VID(a)->push_vlan_if_needed and similar
> devices can't be used in order to implement logic as they are not set when
> when ofpact_check__() is called via parse_ofp_str().
>
> Instead this patch takes the approach of adding an OpenFlow version
> parameter to ofpact_check__().
>
> A new function ofpact_check_usable_protocols() allows trimming the
> usable_protocols based on action checking.
>
> The net effect of this change on run-time is only to increase logging under
> some circumstances as ofpacts_check() may now be called up to four times
> instead of up to twice for each invocation of parse_ofp_str__()
>
> Signed-off-by: Simon Horman <horms@verge.net.au>
I think I have a better way. I posted patches:
http://openvswitch.org/pipermail/dev/2013-November/033968.html
http://openvswitch.org/pipermail/dev/2013-November/033967.html
next prev parent reply other threads:[~2013-11-15 22:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-15 9:10 [PATCH v2.50 0/6] MPLS actions and matches Simon Horman
2013-11-15 9:10 ` [PATCH v2.50 2/6] ofp-actions: Account for OF version when enforcing action consistency Simon Horman
2013-11-15 22:34 ` Ben Pfaff [this message]
[not found] ` <1384506623-18503-1-git-send-email-horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
2013-11-15 9:10 ` [PATCH v2.50 1/6] ofp-actions: Consider L4 actions after mpls_push as inconsistent Simon Horman
[not found] ` <1384506623-18503-2-git-send-email-horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
2013-11-15 16:55 ` Jarno Rajahalme
2013-11-15 17:45 ` [ovs-dev] " Ben Pfaff
2013-11-18 6:38 ` Simon Horman
2013-11-15 9:10 ` [PATCH v2.50 3/6] odp: Allow VLAN actions after MPLS actions Simon Horman
2013-11-15 9:10 ` [PATCH v2.50 4/6] lib: Support pushing of MPLS LSE before or after VLAN tag Simon Horman
2013-11-15 9:10 ` [PATCH v2.50 5/6] datapath: Break out deacceleration portion of vlan_push Simon Horman
2013-11-15 9:10 ` [PATCH v2.50 6/6] datapath: Add basic MPLS support to kernel Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131115223414.GC32463@nicira.com \
--to=blp@nicira.com \
--cc=dev@openvswitch.org \
--cc=horms@verge.net.au \
--cc=jesse@nicira.com \
--cc=joe@wand.net.nz \
--cc=netdev@vger.kernel.org \
--cc=pshelar@nicira.com \
--cc=rkerur@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).