Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp2112916pxx; Sat, 31 Oct 2020 08:30:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCh4FMPUQHoP10aoxMYdZAdBrRKKJ4mVARPxvek3LYI0HTMvcTjK0bJLsuXsqsLfd/2MxL X-Received: by 2002:a17:906:2581:: with SMTP id m1mr7509568ejb.28.1604158202941; Sat, 31 Oct 2020 08:30:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604158202; cv=none; d=google.com; s=arc-20160816; b=GCnDE9RzC8wL6FbU+QDcZ0TEp/mkUMeW9I01+i/S3szIqltcIPpkzXnFFUyQANHySs fe/ZWC74PMryrVVHdMaCP5KPI2iIP6xA0xgQu/0rS0znH6js6cG9SPFGefgv2XEypIDp TkGM1WW4k+1J2o223IMHd07p2yHXCnScufiRs+M5Ccdmsz6E4gMtkrlglNrbT+SusCNr IEIWZgvzlINAEYMBRuOg0dIU7WCmRlsUWp3vKp0zw+GKldwdBa5GWMuq66JnUG7ibRDu 2QvBCZQYZ0bRbU8vxUlhRujXeVbD+LfBTTQum47T6ph6QbVLuF0/e88Oy1HochkvYPY3 p25A== 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=IsssXiVqnK5kDFStHInJQ/Mg9YENJ6l9cDu6hzCz+TU=; b=0Dlb8dETjJBaen5Lom6nLVrHV6o7P1R0vIpOBeF1eW0EZ7JReiw4sHbCSAKsW4a12+ Hv9udi68AvhOJjdwxaF7CO4pWuceYtX1N9O3IZRei8oBYw0/+zBK9Hit5T0WPpMg47sU gDRG1Y15JbNa+LI5efF1f/wb2Yu06qmQW3BHU230eQBuOg3/GAswQ/MtyBShamkiS8ZZ uUY3v2mNU4k0vQcorgo+BQKIf/F3JEgew8oK/3tFWzIkbi87Oqe+GHNGrA5LluQi69S7 u5eYQciho7LstmpTQoW4R6b8z0XPHQ6nbAf/m0IBV9vagamROd6sM0L0gXw+rdtPRHf9 toeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OR8mvdW8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca10si6889785edb.170.2020.10.31.08.29.40; Sat, 31 Oct 2020 08:30:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OR8mvdW8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728032AbgJaP1J (ORCPT + 99 others); Sat, 31 Oct 2020 11:27:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727983AbgJaP1F (ORCPT ); Sat, 31 Oct 2020 11:27:05 -0400 Received: from mail-ua1-x944.google.com (mail-ua1-x944.google.com [IPv6:2607:f8b0:4864:20::944]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B265C0617A6 for ; Sat, 31 Oct 2020 08:27:05 -0700 (PDT) Received: by mail-ua1-x944.google.com with SMTP id k12so2635643uad.11 for ; Sat, 31 Oct 2020 08:27:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IsssXiVqnK5kDFStHInJQ/Mg9YENJ6l9cDu6hzCz+TU=; b=OR8mvdW88OPW8LXt7qNm0Tgjh1KLCYSrmKIbrmf2lWZMzBc0XKL20E3rG6jY8zY+zC YxupvNAyHov+dJTqVxZree/bkdRjE0zpBLWL/OYKrN8BAJyutNF0zXUetPf3Sw+lGF9l n3vqVxBWwwzSwIOd6oPywQcB0OjDnyc4ItadgRQLEcOnAkXbZlBfoHhxZilCHOXf6oe2 XZsHlxY2A4YwzRyUKSvKP5DiMriuYCpI0L0H7T4rTvZdzYbL/9MHVT1UEF2oTjRbjsw9 xYxrvXuFU+riPwRT3xljYyGbv2FCAFD5sT4ha96F7L59/5ekm+n7APQLKybUOnjo+T++ 5CXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IsssXiVqnK5kDFStHInJQ/Mg9YENJ6l9cDu6hzCz+TU=; b=MgQbAqs2ethjv8jungSvbpA9fdl7GkA7x2hu3nAcR4vI3LhJdiNgbIbu91Ymy7JyJE uG+CmInALuCfamlTOqv+u4fRltQiSkCakUqcm5F5IK3FNvLymqQTcR5Xiq6rEZCnSI5j d2N+v6Nns8mN5N6YJ6yl1DdvvPtyMDd5xsRq+QkdxbTg3I+NaA41r5+ydZJAbdoDiJm6 tGiQ6jJWyjhTYacbLYhpB6MME9ydLOqIiNi/edT/1/IcGrmoHBCVTo7ZADBOlQKX9Koa 95Ck+CqwqHdi/RTnvhyjKjVxkArvDrlnxZkmZ1YnFaJ9lSDQXWZMewHHE5T9bHacXlZc M7gA== X-Gm-Message-State: AOAM532Z24JyqAjyJVCAsUW6MtiH+kx0Gjd73IWC4b+N7mqBtXnOqQGy EWT1BDkgkAcSdHnBJCKXk54NbEYIc94= X-Received: by 2002:ab0:200c:: with SMTP id v12mr4489214uak.53.1604158023980; Sat, 31 Oct 2020 08:27:03 -0700 (PDT) Received: from mail-vs1-f53.google.com (mail-vs1-f53.google.com. [209.85.217.53]) by smtp.gmail.com with ESMTPSA id b13sm1329824vsm.16.2020.10.31.08.27.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 31 Oct 2020 08:27:02 -0700 (PDT) Received: by mail-vs1-f53.google.com with SMTP id 128so2235870vso.7 for ; Sat, 31 Oct 2020 08:27:02 -0700 (PDT) X-Received: by 2002:a67:7704:: with SMTP id s4mr10217152vsc.51.1604158021897; Sat, 31 Oct 2020 08:27:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Willem de Bruijn Date: Sat, 31 Oct 2020 11:26:24 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next] net: avoid unneeded UDP L4 and fraglist GSO resegmentation To: Alexander Lobakin Cc: Willem de Bruijn , "David S. Miller" , Jakub Kicinski , Steffen Klassert , Antoine Tenart , Mauro Carvalho Chehab , Miaohe Lin , Network Development , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > >> I think it is fine to reenable this again, now that UDP sockets will > >> segment unexpected UDP GSO packets that may have looped. We previously > >> added general software support in commit 83aa025f535f ("udp: add gso > >> support to virtual devices"). Then reduced its scope to egress only in > >> 8eea1ca82be9 ("gso: limit udp gso to egress-only virtual devices") to > >> handle that edge case. > > Regarding bonding and teaming: I think they should also use > NETIF_F_GSO_SOFTWARE mask, not NETIF_F_ALL_TSO, as SCTP also has > a software fallback. This way we could also remove a separate > advertising of NETIF_F_GSO_UDP_L4, as it will be included in the first. > > So, if this one: > 1. Add NETIF_F_GSO_UDP_L4 and NETIF_F_GSO_FRAGLIST to > NETIF_F_GSO_SOFTWARE; > 2. Change bonding and teaming features mask from NETIF_F_ALL_TSO | > NETIF_F_GSO_UDP_L4 to NETIF_F_GSO_SOFTWARE; > 3. Check that every virtual netdev has NETIF_F_GSO_SOFTWARE _or_ > NETIF_F_GSO_MASK in its advertising. > > is fine for everyone, I'll publish more appropriate and polished v2 soon. I think we can revert 8eea1ca82be9. Except for the part where it defines the feature in NETIF_F_GSO_ENCAP_ALL instead of NETIF_F_GSO_SOFTWARE. That appears to have been a peculiar choice. I can't recall exactly why I chose that. Most likely because that was (at the time) the only macro that covered all the devices I wanted to capture. As for SCTP: that has the same concern that prompted that commit for UDP: is it safe to forward those packets to the ingress path today?