From patchwork Wed Nov 1 15:38:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balazs Nemeth X-Patchwork-Id: 833008 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; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ericsson.onmicrosoft.com header.i=@ericsson.onmicrosoft.com header.b="RKhwK5D5"; dkim-atps=neutral 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 3yRsny5dvZz9sRq for ; Thu, 2 Nov 2017 02:39:02 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 1A04BBBC; Wed, 1 Nov 2017 15:38:59 +0000 (UTC) X-Original-To: ovs-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 5564EABB for ; Wed, 1 Nov 2017 15:38:57 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from sesbmg22.ericsson.net (sesbmg22.ericsson.net [193.180.251.48]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 8E1914CC for ; Wed, 1 Nov 2017 15:38:54 +0000 (UTC) X-AuditID: c1b4fb30-759ff70000007d10-db-59f9ea8cb299 Received: from ESESSHC020.ericsson.se (Unknown_Domain [153.88.183.78]) by sesbmg22.ericsson.net (Symantec Mail Security) with SMTP id 34.57.32016.C8AE9F95; Wed, 1 Nov 2017 16:38:52 +0100 (CET) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (153.88.183.145) by oa.msg.ericsson.com (153.88.183.78) with Microsoft SMTP Server (TLS) id 14.3.352.0; Wed, 1 Nov 2017 16:38:52 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.onmicrosoft.com; s=selector1-ericsson-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ES2hmDqXbgGDYxvCAwrcV+ZEOujAGvreTbtSMc7x4KI=; b=RKhwK5D5s3fSwtDtUXxUZ2gcnm1Uwx7WnxvpDd1zbtxdcbt4YHDuu6hKU9k8+KWCpNBvmW5k2uckk1k102qjAKvqcqCko8q2hmqhv6Y2wCcuXUptK5knniOzMxOzXfmNx1KYIvZ2vEOISHXrjxcuWyItoZrrJ32DkAQa0vQG7uQ= Received: from DB5PR07MB1496.eurprd07.prod.outlook.com (10.165.212.14) by DB5PR07MB1495.eurprd07.prod.outlook.com (10.165.212.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.4; Wed, 1 Nov 2017 15:38:50 +0000 Received: from DB5PR07MB1496.eurprd07.prod.outlook.com ([fe80::1921:92e4:a91:4c05]) by DB5PR07MB1496.eurprd07.prod.outlook.com ([fe80::1921:92e4:a91:4c05%14]) with mapi id 15.20.0197.013; Wed, 1 Nov 2017 15:38:50 +0000 From: Balazs Nemeth To: "'ovs-dev@openvswitch.org'" Thread-Topic: [PATCH v2] tunnel: ToS and TTL inheritance for MPLS tunneled traffic Thread-Index: AdNTJyoarCIINFxjRZudq48YNBSS4A== Date: Wed, 1 Nov 2017 15:38:50 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=balazs.nemeth@ericsson.com; x-originating-ip: [192.176.1.83] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB5PR07MB1495; 6:1bCOnA0j0CSECaiEi0jYfQM6YToAf7JMuNuL/SBaWwd3v7PZXoeEOx6A6M88vQgt1R37RzJs1NNZd5b6YOLwwQCAdhvp/03meB7SYj5tjmbWCUhN0rs2vmjUcQcY95BAyWrH9+adKkX4Is+x1wtCaz3/CTT15rVhAmSDcVZ6zx85fdywVy0AAZCr5JYUIYEG6OvNHK6FxwyFS8ZFi5JhTgQr65bSAiQ3sUX0rr7Rh65mjXONQvtmtcQDcd8HrsNvDfRHgo5Mh7tEj7m5iJvnni/tVN2i5nSMYC5AapIYRZikQ4QHau515c7UofKbg0DvfciZmQ4FvU6rAeEjqgyex+UuqHOFaOkyMMo1PJO8xk4=; 5:KNiU9nHgUct8H923M7B4jnwrROCuFABTqAPHuLBWWsESgfaYxelzPQy9pToPUsxJKRkQXRQrMKs2mCLZbKMLPbYI2x1EJQLmkls1sVS1jVDWotcRt7iS/VXJ9m+ZXnQMuv9oCqI0zEiJJKgfqPSkUbPqqNYLIBr9jNLt499ku6M=; 24:IxKdkhibxEMnC9oeByzsU+WasyJtyXB5QxEHwwBDmr6Qgbujr7vfcW3NDRxcy3gNqjBO3zEE0xZ86EYqyv4vc3FmUvQaHoFEMV+0B2Aule4=; 7:E3/sMxnjqNQLn8+gpHzFF9Kl1iOOXjuunx90N3eC1V1cx9V3rGXc36VeE9RUhBCSm+rXAhmn1bsorD7N/Ahr5D3NEYYP+qkoMiDy0ZY3aHKIStZGtqCPGWj4RQu6AL3tHdRA3Qh1avslpIrMWq2zbczlIsfRwNURs3Cbvix44RRkPRziylXTPP6hq2kB+N3LJNz48+2kzaLDSNYlFUzY2y3h9OGpaut5zS/+NKJXFYSgpNOILOQ1K0sVdaYDo/q2 x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: c80193ee-660d-4b01-3b3c-08d5213ea693 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(2017052603199); SRVR:DB5PR07MB1495; x-ms-traffictypediagnostic: DB5PR07MB1495: x-exchange-antispam-report-test: UriScan:(37575265505322); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(3231020)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6041248)(20161123555025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DB5PR07MB1495; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB5PR07MB1495; x-forefront-prvs: 0478C23FE0 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(39860400002)(189002)(199003)(7696004)(575784001)(2900100001)(74316002)(8936002)(5250100002)(105586002)(5660300001)(305945005)(6506006)(54356999)(68736007)(99286003)(6436002)(478600001)(101416001)(3660700001)(50986999)(25786009)(6916009)(7736002)(2906002)(97736004)(102836003)(3846002)(3280700002)(106356001)(189998001)(53936002)(316002)(8676002)(55016002)(9686003)(86362001)(14454004)(33656002)(6116002)(81156014)(66066001)(81166006)(218113003)(491001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR07MB1495; H:DB5PR07MB1496.eurprd07.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: c80193ee-660d-4b01-3b3c-08d5213ea693 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Nov 2017 15:38:50.7742 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR07MB1495 X-OriginatorOrg: ericsson.com X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa0hTYRjHe3cuHkeD13l7WPdDVHiZFwxsSSj0ISJjH/qgpeTSg5o6xzlL MqIsNK+5GczcqHShKak0JVMygiYlms7KgaYVQqbYtMgI8VZtOwv69nv+z//9v+/z8DKEfI1U MLlaPcdrNfksLSXNKb0nI2u+rqZG194/GH93eR4lomNz7/8gNTotTcji8nOLOD7qSIY0x7U0 TuusZy4aKp10Ceo9WoX8GcBxsNFcTVUhKSPHAwgW7T20WAwiqG1ZQ56CxDcJKK2pIMSOSQKu t+U+2wwC2/QN2hNG42gor6mQeDgIH4LR648oDwfiZLjdNY5E/RSMWTtIkZVg6Bp2exj3FXvB +SXII8twGvwylXotCIfAynCHN5LAoTA12ygR342h+dkYIXIwLHz+TYn+dDCaF5Go74YPpk4/ kXfAu8Zq7zSA7X7geLXiC1JCT92S70AyLKy5fKFasP20+DxhYGpu974TsArujaSLch6sL9WT YqaTgnKbzXfZdmjon6FFbqCgvgE8LMcctHaWIXEnCvjorERGFG75bzaRI6Cpf5kWORweWF2E xbuXABgyz5JNiHyIggVOOFeQHRur5PjcTEEo1Cq1nL4buX/Ei8fr0X1oYT7JjjCD2K2ysonV VDmlKRKKC+wIGIINkjlG3JIsS1N8ieMLz/IX8jnBjrYxJBsqS3r+JkWOszV6Lo/jdBz/ryth /BUlKESh3nLFQBls/m1CPBvfEjDovKo+rhwNJesdqr66T+zOye/dl9uWrx02T/BC98DGUOK+ l8b2ntZd1Vq9JWtuz+YT463JSEZdlb6q021q/CIyBaliajEwYYydfO1I2z/9TZUdlzlbZB3X q+CH44796QlH1IGYEuuIJDbjvJQlhRxNTBjBC5q/qyTJgA0DAAA= X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=disabled version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH v2] tunnel: ToS and TTL inheritance for MPLS tunneled traffic 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: , Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org From: Miklos Pelyva When a new outermost MPLS label is added to 'flow' the 'flow''s Ethernet type is changed to 'mpls_eth_type'. After the new label is set, the 'flow''s MPLS stack is updated, and the L3/4 fields are cleared to mark them invalid. This results in loosing the values of the 'nw_tos' and the 'nw_ttl' fields from the struct 'flow'. Hence, it is impossible to use the ToS and TTL 'inherit' feature in case of MPLS tunneled traffic, because currently the values to be inherited are coming from the cleared (invalidated) variables of struct 'flow'. To support inheriting the ToS field to the outer tunnel header even in the presence of an MPLS shim header, this patch introduces a new variable in the context structure, called 'latest_nw_tos', which is used for storing the up-to-date 'nw_tos' value during the flow translation, and is referred in the 'tnl_port_send()' function. Besides, for every MPLS packet the MPLS TTL field is copied to the TTL field of the outer tunnel header, if inheritance is configured. Two new unit tests are created for checking the ToS and TTL inheritance for IP, and non-IP packets sent over MPLS over IP tunnels. The ECN inheritance is not applied in that case, because the related RFC 5129 does not describe an individual way, just options for ECN in MPLS. Signed-off-by: Miklos Pelyva Signed-off-by: Balazs Nemeth Signed-off-by: Jan Scheurich Co-authored-by: Jan Scheurich Signed-off-by: Miklos Pelyva Signed-off-by: Balazs Nemeth Signed-off-by: Jan Scheurich --- lib/flow.h | 5 +++++ ofproto/ofproto-dpif-xlate.c | 24 ++++++++++++++++++++---- ofproto/tunnel.c | 10 +++++++++- ofproto/tunnel.h | 2 +- tests/tunnel.at | 36 +++++++++++++++++++++++++++++++++++- 5 files changed, 70 insertions(+), 7 deletions(-) -- 1.9.1 diff --git a/lib/flow.h b/lib/flow.h index b3128da..3b38298 100644 --- a/lib/flow.h +++ b/lib/flow.h @@ -1000,6 +1000,11 @@ static inline bool is_ip_any(const struct flow *flow) return dl_type_is_ip_any(get_dl_type(flow)); } +static inline bool is_mpls_any(const struct flow *flow) +{ + return eth_type_mpls(flow->dl_type); +} + static inline bool is_ip_proto(const struct flow *flow, uint8_t ip_proto, struct flow_wildcards *wc) { diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c index d0b45d2..429bf99 100644 --- a/ofproto/ofproto-dpif-xlate.c +++ b/ofproto/ofproto-dpif-xlate.c @@ -372,6 +372,11 @@ struct xlate_ctx { * the MPLS label stack that was originally present. */ bool was_mpls; + /* Latest IP ToS, an always up to date representation of nw_tos during the + * lifetime of the ctx. Every time nw_tos is modified, it should be updated + * for possible inheritance configurations. UINT16_MAX means undefined. */ + uint16_t latest_nw_tos; + /* True if conntrack has been performed on this packet during processing * on the current bridge. This is used to determine whether conntrack * state from the datapath should be honored after thawing. */ @@ -3716,6 +3721,7 @@ compose_output_action__(struct xlate_ctx *ctx, ofp_port_t ofp_port, wc->masks.nw_tos |= IP_DSCP_MASK; flow->nw_tos &= ~IP_DSCP_MASK; flow->nw_tos |= dscp; + ctx->latest_nw_tos = flow->nw_tos; } } @@ -3726,7 +3732,8 @@ compose_output_action__(struct xlate_ctx *ctx, ofp_port_t ofp_port, * matches, while explicit set actions on tunnel metadata are. */ flow_tnl = flow->tunnel; - odp_port = tnl_port_send(xport->ofport, flow, ctx->wc); + odp_port = tnl_port_send(xport->ofport, flow, ctx->latest_nw_tos, + ctx->wc); if (odp_port == ODPP_NONE) { xlate_report(ctx, OFT_WARN, "Tunneling decided against output"); goto out; /* restore flow_nw_tos */ @@ -3823,10 +3830,10 @@ compose_output_action__(struct xlate_ctx *ctx, ofp_port_t ofp_port, xport->xbundle)); } - out: +out: /* Restore flow */ memcpy(flow->vlans, flow_vlans, sizeof flow->vlans); - flow->nw_tos = flow_nw_tos; + ctx->latest_nw_tos = flow->nw_tos = flow_nw_tos; flow->dl_dst = flow_dl_dst; flow->dl_src = flow_dl_src; flow->packet_type = flow_packet_type; @@ -5230,7 +5237,7 @@ xlate_sample_action(struct xlate_ctx *ctx, if (xport && xport->is_tunnel) { struct flow *flow = &ctx->xin->flow; - tnl_port_send(xport->ofport, flow, ctx->wc); + tnl_port_send(xport->ofport, flow, ctx->latest_nw_tos, ctx->wc); if (!ovs_native_tunneling_is_on(ctx->xbridge->ofproto)) { struct flow_tnl flow_tnl = flow->tunnel; @@ -6305,6 +6312,7 @@ do_xlate_actions(const struct ofpact *ofpacts, size_t ofpacts_len, wc->masks.nw_tos |= IP_DSCP_MASK; flow->nw_tos &= ~IP_DSCP_MASK; flow->nw_tos |= ofpact_get_SET_IP_DSCP(a)->dscp; + ctx->latest_nw_tos = flow->nw_tos; } break; @@ -6313,6 +6321,7 @@ do_xlate_actions(const struct ofpact *ofpacts, size_t ofpacts_len, wc->masks.nw_tos |= IP_ECN_MASK; flow->nw_tos &= ~IP_ECN_MASK; flow->nw_tos |= ofpact_get_SET_IP_ECN(a)->ecn; + ctx->latest_nw_tos = flow->nw_tos; } break; @@ -6384,6 +6393,12 @@ do_xlate_actions(const struct ofpact *ofpacts, size_t ofpacts_len, mf_set_flow_value_masked(mf, set_field->value, ofpact_set_field_mask(set_field), flow); + if (!strcmp(mf->name, "nw_tos") || + !strcmp(mf->name, "ip_dscp") || + !strcmp(mf->name, "ip_ecn") || + !strcmp(mf->name, "nw_ecn")) { + ctx->latest_nw_tos = flow->nw_tos; + } } else { xlate_report(ctx, OFT_WARN, "unmet prerequisites for %s, set_field ignored", @@ -6890,6 +6905,7 @@ xlate_actions(struct xlate_in *xin, struct xlate_out *xout) .paused_flow = &paused_flow, .was_mpls = false, + .latest_nw_tos = is_ip_any(flow) ? flow->nw_tos : UINT16_MAX, .conntracked = false, .ct_nat_action = NULL, diff --git a/ofproto/tunnel.c b/ofproto/tunnel.c index c6856a0..220ecd1 100644 --- a/ofproto/tunnel.c +++ b/ofproto/tunnel.c @@ -395,7 +395,8 @@ tnl_wc_init(struct flow *flow, struct flow_wildcards *wc) * shouldn't occur. */ odp_port_t tnl_port_send(const struct ofport_dpif *ofport, struct flow *flow, - struct flow_wildcards *wc) OVS_EXCLUDED(rwlock) + uint16_t latest_nw_tos, struct flow_wildcards *wc) + OVS_EXCLUDED(rwlock) { const struct netdev_tunnel_config *cfg; struct tnl_port *tnl_port; @@ -440,6 +441,10 @@ tnl_port_send(const struct ofport_dpif *ofport, struct flow *flow, if (cfg->ttl_inherit && is_ip_any(flow)) { wc->masks.nw_ttl = 0xff; flow->tunnel.ip_ttl = flow->nw_ttl; + } else if (cfg->ttl_inherit && is_mpls_any(flow)) { + /* The outer TTL must be determined from the MPLS TTL field, when + * inheritance is configured and MPLS tunneled traffic is present. */ + flow->tunnel.ip_ttl = mpls_lse_to_ttl(flow->mpls_lse[0]); } else { flow->tunnel.ip_ttl = cfg->ttl; } @@ -447,6 +452,9 @@ tnl_port_send(const struct ofport_dpif *ofport, struct flow *flow, if (cfg->tos_inherit && is_ip_any(flow)) { wc->masks.nw_tos |= IP_DSCP_MASK; flow->tunnel.ip_tos = flow->nw_tos & IP_DSCP_MASK; + } else if (cfg->tos_inherit && latest_nw_tos != UINT16_MAX) { + wc->masks.nw_tos |= IP_DSCP_MASK; + flow->tunnel.ip_tos = latest_nw_tos & IP_DSCP_MASK; } else { flow->tunnel.ip_tos = cfg->tos; } diff --git a/ofproto/tunnel.h b/ofproto/tunnel.h index b0ec67c..b6265f4 100644 --- a/ofproto/tunnel.h +++ b/ofproto/tunnel.h @@ -42,7 +42,7 @@ const struct ofport_dpif *tnl_port_receive(const struct flow *); void tnl_wc_init(struct flow *, struct flow_wildcards *); bool tnl_process_ecn(struct flow *); odp_port_t tnl_port_send(const struct ofport_dpif *, struct flow *, - struct flow_wildcards *wc); + uint16_t, struct flow_wildcards *wc); /* Returns true if 'flow' should be submitted to tnl_port_receive(). */ static inline bool diff --git a/tests/tunnel.at b/tests/tunnel.at index 767af99..c3d5e9f 100644 --- a/tests/tunnel.at +++ b/tests/tunnel.at @@ -201,7 +201,7 @@ OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=gre \ options:remote_ip=1.1.1.1 options:tos=inherit \ options:ttl=inherit ofport_request=1 \ -- add-port br0 p2 -- set Interface p2 type=dummy \ - ofport_request=2 ofport_request=2]) + ofport_request=2]) AT_DATA([flows.txt], [dnl actions=output:1 ]) @@ -235,6 +235,40 @@ AT_CHECK([tail -1 stdout], [0], OVS_VSWITCHD_STOP AT_CLEANUP +AT_SETUP([tunnel - MPLS over L3 tunnel - ToS and TTL inheritance]) +OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=gre \ + options:packet_type=legacy_l3 options:remote_ip=1.1.1.1 \ + options:tos=inherit options:ttl=inherit \ + ofport_request=1 \ + -- add-port br0 p2 -- set Interface p2 type=dummy \ + ofport_request=2]) +AT_DATA([flows.txt], [dnl +action=push_mpls:0x8847,1 +]) + +OVS_VSWITCHD_DISABLE_TUNNEL_PUSH_POP +AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) + +AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl + br0 65534/100: (dummy-internal) + p1 1/1: (gre: packet_type=legacy_l3, remote_ip=1.1.1.1, tos=inherit, ttl=inherit) + p2 2/2: (dummy) +]) + +dnl Basic +AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=4,ttl=144,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) +AT_CHECK([tail -1 stdout], [0], + [Datapath actions: set(tunnel(dst=1.1.1.1,tos=0x4,ttl=144,flags(df))),pop_eth,push_mpls(label=0,tc=1,ttl=144,bos=1,eth_type=0x8847),1 +]) + +dnl non-IP +AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0806),arp(sip=1.2.3.4,tip=5.6.7.8,op=1,sha=00:0f:10:11:12:13,tha=00:14:15:16:17:18)'], [0], [stdout]) +AT_CHECK([tail -1 stdout], [0], + [Datapath actions: set(tunnel(dst=1.1.1.1,ttl=64,flags(df))),pop_eth,push_mpls(label=0,tc=0,ttl=64,bos=1,eth_type=0x8847),1 +]) +OVS_VSWITCHD_STOP +AT_CLEANUP + AT_SETUP([tunnel - set_tunnel]) OVS_VSWITCHD_START([dnl add-port br0 p1 -- set Interface p1 type=gre options:key=flow \