From patchwork Thu Mar 22 22:07:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Rose X-Patchwork-Id: 889676 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=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Wwco5/1V"; 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 406gqV11Vdz9s0y for ; Fri, 23 Mar 2018 09:11:18 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 9E1B3F0A; Thu, 22 Mar 2018 22:08:03 +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 75AC3EEB for ; Thu, 22 Mar 2018 22:07:59 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 3A4435D9 for ; Thu, 22 Mar 2018 22:07:59 +0000 (UTC) Received: by mail-pg0-f66.google.com with SMTP id m24so3809676pgv.8 for ; Thu, 22 Mar 2018 15:07:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=inWo7VtA4n7QAlk8Qa7e7iDeFYw2M2zbiLUPFjcGTW4=; b=Wwco5/1VEJFeGfcYl4cOcHEChjWIUWcOan4imw+SWnEXfjmgdF/nShBlSp8CEELm4h PaU18eUJ5eq0K+KjU2y0OFcPM6lLvEZ4VytC5tZrjN1DG5KzoW1qjyfuwPyOGmvCrrr3 uPgGikRSg9zBJdZVSfHxPrubInIAYzr2ggWOUuAPn/5wo+DYn9HgxuzEF6hLiKNruk51 jKIgpHPP/0A9rmr5nn7KEH/mO74l0U1KUxoQVEbz81KVeGeVt+Z1ZYMlh6OE+IHzJtBB rYb5/NA02ccOb42hQwLyl6wB+YrRPnzdHYvdzHLF1o+9vZQEbLvnCYEhQArHbFMiSq4q HLpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=inWo7VtA4n7QAlk8Qa7e7iDeFYw2M2zbiLUPFjcGTW4=; b=CfhyqCRR/7lAWI4w5DMR2JvYoQntJBlthriyELbye8I0DEJ0+WCQcdZP4vldIJe5fa cci1sGLidtubgvxxZgWTSBk+KN9X0RqdEd5w4QO3YMEh9YMnm10bXLJKj1WZZPG1mwBT 0n6xS7Y6GCff3RN2pMQMK5nZLtxEJwKMgO30c9097EJWG2rFpR9kyPH1NeG4P4vesgb1 YSTcP69LiPRVppgBmfrY16fWWM8Jrf/iEkjkpuX8MUAev+Ve9VFZhcf+fvS+/DIday6B J/1HnR3LhTJCogtLD8oytarEgVKYABmUYAC0Plt3nrOsM8l9lIZVl9vh4YSaOl0SPdt1 uzmw== X-Gm-Message-State: AElRT7E17UIQgAPE4i/+y7//D4u8jpkf0MbKV9RsWkapSTsPsf70c5w+ hmTsFuHoZhUbLQnFs24yk1xhKg== X-Google-Smtp-Source: AG47ELuhmQ/WF4I6sJNh+wgumggFifrxVWwGz/abyhFvoTPcJz8lMHrakQ8jc1BG0aEMJBrswkZY/g== X-Received: by 10.167.128.143 with SMTP id v15mr22034071pff.36.1521756478499; Thu, 22 Mar 2018 15:07:58 -0700 (PDT) Received: from gizo.domain (184-100-240-187.ptld.qwest.net. [184.100.240.187]) by smtp.gmail.com with ESMTPSA id 4sm2280775pfn.32.2018.03.22.15.07.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Mar 2018 15:07:57 -0700 (PDT) From: Greg Rose To: dev@openvswitch.org Date: Thu, 22 Mar 2018 15:07:24 -0700 Message-Id: <1521756461-3870-9-git-send-email-gvrose8192@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1521756461-3870-1-git-send-email-gvrose8192@gmail.com> References: <1521756461-3870-1-git-send-email-gvrose8192@gmail.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Xin Long Subject: [ovs-dev] [ERSPAN RFC 08/25] ip_gre: erspan device should keep dst 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 From: Xin Long Upstream commit: commit c84bed440e4e11a973e8c0254d0dfaccfca41fb0 Author: Xin Long Date: Sun Oct 1 22:00:56 2017 +0800 ip_gre: erspan device should keep dst The patch 'ip_gre: ipgre_tap device should keep dst' fixed the issue ipgre_tap dev mtu couldn't be updated in tx path. The same fix is needed for erspan as well. Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN") Signed-off-by: Xin Long Signed-off-by: David S. Miller Cc: Xin Long Signed-off-by: Greg Rose --- datapath/linux/compat/ip_gre.c | 1 + 1 file changed, 1 insertion(+) diff --git a/datapath/linux/compat/ip_gre.c b/datapath/linux/compat/ip_gre.c index dc58396..0199350 100644 --- a/datapath/linux/compat/ip_gre.c +++ b/datapath/linux/compat/ip_gre.c @@ -879,6 +879,7 @@ static int erspan_tunnel_init(struct net_device *dev) dev->features |= GRE_FEATURES; dev->hw_features |= GRE_FEATURES; dev->priv_flags |= IFF_LIVE_ADDR_CHANGE; + netif_keep_dst(dev); return ip_tunnel_init(dev); }