Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp780420pxb; Fri, 22 Apr 2022 11:00:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxo9Z98oJTBNLr8HNq73Mscx1mEl4tbOwSjR3zkpSPcegNEB9D9J8RpEQxmc7Sb4tyZLTG2 X-Received: by 2002:a17:903:31d1:b0:159:804:e852 with SMTP id v17-20020a17090331d100b001590804e852mr5515877ple.19.1650650447120; Fri, 22 Apr 2022 11:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650650447; cv=none; d=google.com; s=arc-20160816; b=XsIkDK37bor9HOi4WYvvR2Z9M/GtRymJP04rt1/N/bApAhzONFl73O9NeJpczqPpdl yPZIIlfe5NagrdQf/OlyjvW27p4whr/iMExZQHuS5dJNKrtTmyD9U6OmRJ7S+9ZKRmR1 Vrzc4dm0o3nCEwmIuXgVDO8+34aZa2aGrwKMhM7DhMIV7AwRUxge0jh9UHdEAlQiHxF7 5KoyQvb+0EbpsLQxdxxZ13+h5DguXVFABPo5xq3CSLjDj8xISiG/l3L2cBDp4G0zFqBU Ei6rxEivNbAlc0e/FWp7FEMINb8uqWZq0Pnmmc6Xubou1y8obEPcKtNMz0AHa6CDYvJO 4pOA== 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=OUrh1efILjSaXAe3E+x72wbjb4Twp+oR0/Kr58Ftb1I=; b=Vssh6bBpfOOV7vqW7kGkuNkhEWx38HgmECGPA3vFqI9pMyTrG5ZfamyWmoD3CsWys3 5GCZ6G/uyZDe+p/hIlHkC0Au/NV9MZBb0ZgMnm7unLNucBit9y1oOaTh4sZrQH/YSNY+ S+srwNpIPaxkF1tmG0MMYAN8ovYd7uYtbnXRyGwNkCU2eyUfLmmEjFlekyjBUL/Gue+J cnag2BSeWbzT87z943mfK/YKLF2tVf+x06zdNlF0j5vq/ARjh1y1PQ8NhoNQJCSlMGu9 XRJakC+aBZYtcAiubn/RW4k4BqMm1sjeO7RKuLKGOBjvz9+e4JdXl6u8P4VMVArfm26u gezQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=neTqDyK4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j3-20020a170903028300b00158f817a27bsi844223plr.148.2022.04.22.11.00.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 11:00:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=neTqDyK4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 55EEF114F9B; Fri, 22 Apr 2022 10:41:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391236AbiDVQ32 (ORCPT + 99 others); Fri, 22 Apr 2022 12:29:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1388271AbiDVQ3G (ORCPT ); Fri, 22 Apr 2022 12:29:06 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FF865EBD5; Fri, 22 Apr 2022 09:26:12 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id v1so6874968ljv.3; Fri, 22 Apr 2022 09:26:12 -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=OUrh1efILjSaXAe3E+x72wbjb4Twp+oR0/Kr58Ftb1I=; b=neTqDyK4aAIR67hd1swkp8mYa9tzbLhOQWDj+BlQv9zVZKesSfhf4hbdYhES2RrGi+ wdkyLVrY/H9uld+HjfN2z8GZYN5vPnAvVA2EaGPbADSjaNLzia315Hae9wpp2cbxKtzu XIGbsxc69sSCh42qP+S9Tmg00rn4QInpT2BjwfHsh/PmVMqOqad1h1aPch5BerJMNXgY q4VHWzYOLK8XvTio3vDY1U5p4e/+pKOAW5K4H6VsJDzX2wc+RMTw/41H5R2Ei2Thnasa ibLk3Z7ky0yLPVY0xhTdpZYzBaTsh1UqF5AftDVPBSXbAcxKESQ1fL25UBvdhEWZ9IwT Z+og== 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=OUrh1efILjSaXAe3E+x72wbjb4Twp+oR0/Kr58Ftb1I=; b=o4S7fPNuFAk1R9vRMSWiVHK5IEeoPddm5HTx8Pjr83jk/u3f1yPVE/3NnPkc74Z9I4 YfdRmsjO5hIS96ts3vG/GlrmZTI0m9QCSVst81Xr5m3TDQP8tffoSWcwtkShqi4cpVUw /SKi4mtDbZDPqoz058pjl+EIhyoVAvRTmhJjBv25FL4MVz4ltuGBosnS6eILPonZSnby J64tuhgOQ8hqWJxO7nWhirpiZA8bI2ZFw1+J3nU9QOLyMhKICAqeEbWv3I80hQkIELI4 578IZ/wZyc7jPf9W4HWPzKFMNVq6t/fE0RDBKdM3jtSMgHL48p/pKuIzIq7e2fWfoQNN RSxQ== X-Gm-Message-State: AOAM531F6qwA/9avifp++rCL9QfA4XzoAo3+ixDpShaoIGSz0Oj/RXE9 Nsv5xJXo33BTS8ocvO48DArDwRbo4ZIRc1zHCqo= X-Received: by 2002:a05:651c:1991:b0:24a:c757:e5c9 with SMTP id bx17-20020a05651c199100b0024ac757e5c9mr3209733ljb.222.1650644770240; Fri, 22 Apr 2022 09:26:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: William Tu Date: Fri, 22 Apr 2022 09:25:33 -0700 Message-ID: Subject: Re: [PATCH net 1/3] ip_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 GRE and GRETAP 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 gre_fb_xmit(), where tunnel->o_seqno is passed to > gre_build_header() before getting incremented. > > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") > Signed-off-by: Peilin Ye LGTM Acked-by: William Tu