Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp909690pxb; Fri, 22 Apr 2022 14:04:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyswJARW8F3cMZz48Kfv/bMaizuUek8JYTm9ues932ufPJ7pXyf1jP060qXbLkeCsOWryvQ X-Received: by 2002:a17:90a:9418:b0:1d8:91d1:4d74 with SMTP id r24-20020a17090a941800b001d891d14d74mr3913751pjo.62.1650661451244; Fri, 22 Apr 2022 14:04:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650661451; cv=none; d=google.com; s=arc-20160816; b=JWtvEPjVdh5C8RhCA3sbj2KtouxQmqixXAj8Ao7h7WOCR1IWxhWi6q2kCMh1N1O6LP Co/+WBE7W6DY9KF6c1/aMUeQLZ8L4MOPXYlvZQoYRndtfHllvxFOLSFj0kIufqVvI66b vhODgMpUQi0FcPR51bizyKQGtlerps+tWHC33RR52wtHTqssOD1tsj1deJ5yOtGNAKvu jVkcqKJGFI5bRjtPH9jHlwx5oJImGL0IVqwUfdUid/YK3ZFzOctAFCvA6RajXHBX24Nj yd9dAL6sgGMxn3/wIf4v16n6ZUsyNNE6KmRAbcy1mWkpu+OaM4XUYO8f2T4RKmRPbwDV +24Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=W3ErJKSyUTgCN7lxhUsHpBZ8kXzxl1Rq4h0+SNf6uoY=; b=NoVEmogn+XFnI32mM0YSJUfaqKoDriHOKNXhxCuUqOk2sxCRdJsG3XvmIVicGV4TuS DdwsOCvfxnA6u27pRDtghvqxJVzZ5BDXcHw61Ha7jg130pFWBDTcgnjQJkyrlSauXz/i bcKjqLnS6nwOOdNHs2zQZ/VybHz6F8SPj1oVvlr2sTF6Ru4w1+BTXGxKDUHa9SjK3BfU auU81L58EU3d9aZAfS3RlmqY/dF4rehrcQbC8WanhWUmXtH4K5Cxf6hCy+8o7iYtgB79 oVLKVKYEDWP+FPpZEn2a8hpJGgQ7o5w4y8l+BALF33twUJIRbQYUM5YE4Dv1sCIowtUW nSrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ia0j6KGx; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 197-20020a6303ce000000b003aa70eea1fasi8191174pgd.241.2022.04.22.14.04.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 14:04:11 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ia0j6KGx; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4EF8934E95B; Fri, 22 Apr 2022 13:00:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1449685AbiDVQ3f (ORCPT + 99 others); Fri, 22 Apr 2022 12:29:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1449068AbiDVQ3a (ORCPT ); Fri, 22 Apr 2022 12:29:30 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CF9D5EBCF; Fri, 22 Apr 2022 09:26:32 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id h27so14908076lfj.13; Fri, 22 Apr 2022 09:26:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=W3ErJKSyUTgCN7lxhUsHpBZ8kXzxl1Rq4h0+SNf6uoY=; b=Ia0j6KGxWiQ7sqdpSo46uRPYP0MGBWqmGDErUg8qWvJliL+Iao9XN3Co/DGRdNrZ+F dqi7SP6C+gK6MVeonXKINF/p0Ty9rShxMSTxTrH4tJ0Lpb+6QyWzc2NxAl593aN2yZ4u D5w44oaLVC6G7Lo3aJCFWg7IWSxyV5sbF8927WkrQHujA6aLpZOr7ooghtqN/HDvT6Ua Tr/XGmCIfHucgWgjiDviYO+/0dUXSS8JbfeETVCkqR+Vp7pg4vnRX9KTzGNkH211S43I krhswQ4Y2wXJH+8/2ejGZdVBqAaueCumvDkB3uEuTHsqS+ebaNINs9pBgQtYe/RUBXaR VAdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=W3ErJKSyUTgCN7lxhUsHpBZ8kXzxl1Rq4h0+SNf6uoY=; b=7t8K3cJKIsi/95j60gwZLtvQm+30lfDjPdQYxh3NOI0dBddWc/gXCwMehDeFvVMnMH z7HoBAy1kj3JM8oilXoiBi9s7tHJpSyOMHkU2nE9QOgIrERcedp18JyYuxbMLx2HsgMV AgZHA40hMdMQNdjfi7r1fYs/IGz6uYNh5PaJuaLN2Y7AfUeVOmtGE8usnARq+n7ugSSY lznDyUTWPGWozqJBM37I7Whv2EvrKQF5hRIiTqR97IN7w7vm3rMxc/isrc5njRf2CTnY oRYtU9+cOeUzXOxdoZTdWpyFaRlGsWGZPyMDOj8eyHHoew3Nd80iqA47LVVuCgy7S99v slfg== X-Gm-Message-State: AOAM5302sQFCPExWvRxXBfMTVbpR3d8WZlA5c+67SbQ/x+Qr3omHmaA3 uU/q378h5iD1DQYSTfNn7R2slW0X+JRz6PZ1rl8= X-Received: by 2002:a19:7b17:0:b0:46e:cb82:fe24 with SMTP id w23-20020a197b17000000b0046ecb82fe24mr3642082lfc.194.1650644790219; Fri, 22 Apr 2022 09:26:30 -0700 (PDT) MIME-Version: 1.0 References: <950bfd124e4f87bd9e1acbf6303545875c3681fe.1650575919.git.peilin.ye@bytedance.com> In-Reply-To: <950bfd124e4f87bd9e1acbf6303545875c3681fe.1650575919.git.peilin.ye@bytedance.com> From: William Tu Date: Fri, 22 Apr 2022 09:25:53 -0700 Message-ID: Subject: Re: [PATCH net 2/3] ip6_gre: Make o_seqno start from 0 in native mode To: Peilin Ye Cc: "David S. Miller" , Jakub Kicinski , Hideaki YOSHIFUJI , David Ahern , Paolo Abeni , Peilin Ye , "xeb@mail.ru" , Daniel Borkmann , Cong Wang , Eric Dumazet , Alexei Starovoitov , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Linux Kernel Network Developers , bpf , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 21, 2022 at 3:08 PM Peilin Ye wrote: > > From: Peilin Ye > > For IP6GRE and IP6GRETAP devices, currently o_seqno starts from 1 in > native mode. According to RFC 2890 2.2., "The first datagram is sent > with a sequence number of 0." Fix it. > > It is worth mentioning that o_seqno already starts from 0 in collect_md > mode, see the "if (tunnel->parms.collect_md)" clause in __gre6_xmit(), > where tunnel->o_seqno is passed to gre_build_header() before getting > incremented. > > Fixes: c12b395a4664 ("gre: Support GRE over IPv6") > Signed-off-by: Peilin Ye LGTM Acked-by: William Tu