From patchwork Tue Oct 23 16:26:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Pfaff X-Patchwork-Id: 988276 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ovn.org Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42ff0f03Zdz9sBk for ; Wed, 24 Oct 2018 03:26:41 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id A245DDD4; Tue, 23 Oct 2018 16:26:38 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id AB143DD2 for ; Tue, 23 Oct 2018 16:26:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id EFE46801 for ; Tue, 23 Oct 2018 16:26:36 +0000 (UTC) X-Originating-IP: 208.91.3.26 Received: from sigabrt.benpfaff.org (unknown [208.91.3.26]) (Authenticated sender: blp@ovn.org) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id BA59CE0002; Tue, 23 Oct 2018 16:26:33 +0000 (UTC) From: Ben Pfaff To: dev@openvswitch.org Date: Tue, 23 Oct 2018 09:26:28 -0700 Message-Id: <20181023162628.30916-1-blp@ovn.org> X-Mailer: git-send-email 2.16.1 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Ben Pfaff Subject: [ovs-dev] [PATCH] ovs-ofctl: Update documentation for MPLS actions. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org Reported-by: lidejun Signed-off-by: Ben Pfaff Acked-by: Justin Pettit --- utilities/ovs-ofctl.8.in | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/utilities/ovs-ofctl.8.in b/utilities/ovs-ofctl.8.in index aefea16ee34d..659406de57b4 100644 --- a/utilities/ovs-ofctl.8.in +++ b/utilities/ovs-ofctl.8.in @@ -922,17 +922,11 @@ its TTL is copied from the IP TTL (64 if the packet is not IP). If the packet does already contain an MPLS label, pushes a new outermost label as a copy of the existing outermost label. .IP -A limitation of the implementation is that processing of actions will stop -if \fBpush_mpls\fR follows another \fBpush_mpls\fR unless there is a -\fBpop_mpls\fR in between. +OVS currently supports at most 3 MPLS labels. . .IP \fBpop_mpls\fR:\fIethertype\fR -Strips the outermost MPLS label stack entry. -Currently the implementation restricts \fIethertype\fR to a non-MPLS Ethertype -and thus \fBpop_mpls\fR should only be applied to packets with -an MPLS label stack depth of one. A further limitation is that processing of -actions will stop if \fBpop_mpls\fR follows another \fBpop_mpls\fR unless -there is a \fBpush_mpls\fR in between. +Strips the outermost MPLS label stack entry and changes the packet's +Ethertype to \fIethertype\fR. . .IP \fBmod_dl_src\fB:\fImac\fR Sets the source Ethernet address to \fImac\fR.