Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3750DC282C3 for ; Tue, 22 Jan 2019 19:53:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 10F4820870 for ; Tue, 22 Jan 2019 19:53:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726207AbfAVTxH (ORCPT ); Tue, 22 Jan 2019 14:53:07 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:35472 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725972AbfAVTxH (ORCPT ); Tue, 22 Jan 2019 14:53:07 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id AFC5B14D3D069; Tue, 22 Jan 2019 11:53:06 -0800 (PST) Date: Tue, 22 Jan 2019 11:53:06 -0800 (PST) Message-Id: <20190122.115306.1180335517813651066.davem@davemloft.net> To: lorenzo.bianconi@redhat.com Cc: netdev@vger.kernel.org, u9012063@gmail.com, dcaratti@redhat.com Subject: Re: [PATCH net v2] net: ip_gre: use erspan key field for tunnel lookup From: David Miller In-Reply-To: <45c4980df4da7a7f1b9644e6f10b330fc9a0b863.1547808319.git.lorenzo.bianconi@redhat.com> References: <45c4980df4da7a7f1b9644e6f10b330fc9a0b863.1547808319.git.lorenzo.bianconi@redhat.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 22 Jan 2019 11:53:06 -0800 (PST) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Lorenzo Bianconi Date: Fri, 18 Jan 2019 12:05:39 +0100 > Use ERSPAN key header field as tunnel key in gre_parse_header routine > since ERSPAN protocol sets the key field of the external GRE header to > 0 resulting in a tunnel lookup fail in ip6gre_err. > In addition remove key field parsing and pskb_may_pull check in > erspan_rcv and ip6erspan_rcv > > Fixes: 5a963eb61b7c ("ip6_gre: Add ERSPAN native tunnel support") > Signed-off-by: Lorenzo Bianconi > --- > Changes since v1: > - verify that ershdr is in the skb linear area > - remove duplicated pskb_may_pull checks in erspan_rcv and > ip6erspan_rcv Applied and queued up for -stable, thank you.