Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp883681pxb; Fri, 22 Apr 2022 13:23:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc+ZSZ/u1HGCQegndKo1ANrqqan6mkMzt+IQCascx/y8neQsRXrU/shSRB95IdGcK6rHjE X-Received: by 2002:a17:90b:1044:b0:1cd:2d00:9d23 with SMTP id gq4-20020a17090b104400b001cd2d009d23mr17994825pjb.124.1650658985232; Fri, 22 Apr 2022 13:23:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650658985; cv=none; d=google.com; s=arc-20160816; b=Pt/EhlEJnMmKsJ8hT2HOgBKWh0GaCMuvKaiG8hyKKnIuedX3BvdItZcedmDUvUwYNd 48xctHjVHF6/cTmulWjtzVPxxpivuUUT7z9WNA7rxlPeX/VI59pQ0SSwNkQjRy+BZi2W 9b1Bqc4T4l4IE1Pf3/ibycD4bPyaUniwW5GHzsolwvooiKiw+yDrUSS6ePBbwfzZwX7q 66oGWyzHO8RO8kSSsy2udEZGzc/fJjeXWUhKugNQ8s4z+BNcFvcGmodo4B7KDXtVacmw l3Vln3HWleIvm7v5gIhml9BK/WIYCAoHeTy2N4kTKM41b9IpKOBohWTsacRzRP6cm8vy Fu5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=LKbOn0YJ4vJqmUSVPvssmzjdrWGZSY2aXU7cKreyOHk=; b=uaRbWZAOfzYdiALEGF9KpjJSbRxqhmCy+JuRZupVOnCwRjN0F9t5Lj5dOl3Qci6QGo +spHBwN0bkSNE7DbAFF6G47pKbSDLPek2W/DUHX0GkbUXqN6zs0e8HEs8Uf1E/7u6L5U MdfP1nex2zT/DkSl43veqLnpK5KYCQv2lDLjqw/54UtXklTr/2dpaQPjcsEpwticBcf9 oxhBYUkNKFxvpXvoIfuZXA400rJaNKw3p6jWKH1RW9fg7J1rA0OH7mosRJ5l5LEMjjUj YZMJuqewQuRcXcnOsigy3TRssnwxap0IcS2cqHnsKCF9kK4LNTSnoZoIGdT3i5KemXKC P84Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=I5uSKy0N; 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 8-20020a621408000000b00505dd14f762si8355444pfu.192.2022.04.22.13.23.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 13:23:05 -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=I5uSKy0N; 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 8C4D81A430C; Fri, 22 Apr 2022 12:09:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348951AbiDUWqt (ORCPT + 99 others); Thu, 21 Apr 2022 18:46:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232169AbiDUWqs (ORCPT ); Thu, 21 Apr 2022 18:46:48 -0400 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ECB4433B9; Thu, 21 Apr 2022 15:43:57 -0700 (PDT) Received: by mail-qt1-x82f.google.com with SMTP id hf18so4389949qtb.0; Thu, 21 Apr 2022 15:43:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LKbOn0YJ4vJqmUSVPvssmzjdrWGZSY2aXU7cKreyOHk=; b=I5uSKy0NaXPwn+W2xZrk5fXTafC6PQQ7J/x1gkP/NgZvDWmrehyVXuhOrdkiHYx7OO 8hCySmwQSmjCOdNwlfGRyVW2TeNHPM9xMzdbI7JoeJJsfYGD1P2mq0UNWi7xKCCjXCZZ DHeVV8wwKuN6oyl8r8XWBOsShFcmJsefMKCs/nFJFwOpCZ/Yzpi9ux2ApoXzp33S+S/A 90c/Zt44QZMeJ01AIQZ6HZJ743eVHfIhffi7PVCs0/uHNhnl8kuCGS7ioday3nzEiisl c3lr3SOYQIJmz6epva4tToRmwwuepbZ/itNo4/DbQG7U7u09DGgJ+/Ym52RUprl1SMPd /mZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LKbOn0YJ4vJqmUSVPvssmzjdrWGZSY2aXU7cKreyOHk=; b=cvMX258Aewq2ocO5X37uUma75crg+Zt00jJUbiZTPSwhFL2yP04nu7MYFwNmVvywLv V8/CfUg0sUWZnH6KerFN3KBCaAR7jBWlZzYbmxY7BXxnQ6++CSgpPLN0mW8+8fWzj2No gpyFMbEarXxm9Q+4KxB8QLDW+dRLxb4uK1cYU/gh73e0sKzxr/Vfx3TdLwem7rA0HnjA YQwzsqrstUvBfBGvMdYuwOpphTWgsHlKDgdjdoUBhJbPYjHKPxM/IIBIjFycuN6OqF49 jLiVJgEADIoQg+95uMa3EU/DjwpgGUIO7JECYtN/7IBEEX4GGagYVgZlGKAQV+4mBLc9 YdZg== X-Gm-Message-State: AOAM532bZn/e5F5+c8G1IH96saDxy7sMk4xYRPbXQqHf5SVtYxr8Ufs3 IckEkj+BS2+Ll17HkxFQqaHlmiKtoQ== X-Received: by 2002:a05:622a:15cb:b0:2f2:681:7d06 with SMTP id d11-20020a05622a15cb00b002f206817d06mr1276679qty.386.1650581036685; Thu, 21 Apr 2022 15:43:56 -0700 (PDT) Received: from bytedance.attlocal.net (ec2-13-57-97-131.us-west-1.compute.amazonaws.com. [13.57.97.131]) by smtp.gmail.com with ESMTPSA id j188-20020a3755c5000000b0067d1c76a09fsm150069qkb.74.2022.04.21.15.43.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 15:43:55 -0700 (PDT) From: Peilin Ye To: "David S. Miller" , Jakub Kicinski , Hideaki YOSHIFUJI , David Ahern , Paolo Abeni Cc: Peilin Ye , Cong Wang , Eric Dumazet , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Peilin Ye Subject: [PATCH net-next 0/2] Make [IP6]GRE[TAP] devices always NETIF_F_LLTX Date: Thu, 21 Apr 2022 15:43:42 -0700 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Peilin Ye Hi all, This patchset depends on these fixes [1]. Since o_seqno is now atomic_t, we can always turn on NETIF_F_LLTX for [IP6]GRE[TAP] devices, since we no longer need the TX lock (&txq->_xmit_lock). We could probably do the same thing to [IP6]ERSPAN devices as well, but I'm not familiar with them yet. For example, ERSPAN devices are initialized as |= GRE_FEATURES in erspan_tunnel_init(), but I don't see IP6ERSPAN devices being initialized as |= GRE6_FEATURES. Please suggest if I'm missing something, thanks! [1] https://lore.kernel.org/netdev/cover.1650575919.git.peilin.ye@bytedance.com/ Thanks, Peilin Ye (2): ip_gre: Make GRE and GRETAP devices always NETIF_F_LLTX ip6_gre: Make IP6GRE and IP6GRETAP devices always NETIF_F_LLTX net/ipv4/ip_gre.c | 50 ++++++++++++++++++++-------------------------- net/ipv6/ip6_gre.c | 34 ++++++++++++------------------- 2 files changed, 35 insertions(+), 49 deletions(-) -- 2.20.1