Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3398885lqp; Tue, 26 Mar 2024 08:10:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXiMxNQjSGpWTVtOnmx2l93wi0tetEO2tfQTUJJsUy76gapxR9LSSBc0tZSw8WWWPpP4GmzLFJ9A5YnEMo8Ox6x92VXgVSrGFDlhjRuEw== X-Google-Smtp-Source: AGHT+IGQPkP/QpD6EHQ/XOak3ED5s7qUJhIs0Cjr1XNQzgDh88CIGA3pjlwPtj+WbGKALz8vgliw X-Received: by 2002:a05:6a21:33a0:b0:1a3:c3d9:fd15 with SMTP id yy32-20020a056a2133a000b001a3c3d9fd15mr1502359pzb.38.1711465852791; Tue, 26 Mar 2024 08:10:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711465852; cv=pass; d=google.com; s=arc-20160816; b=nCA0s8xM1XjvE7lTCQ1aBmyEaHewh7I0M32de7Ip66iOCFwb+J0Ykz7r9AeB9rxMuh bo1GOKFVM6FXHqB3KgTMYsS7d5kN4pq6YiJzqLf8F66EDdLqN70yumvuTYc1R2AeabW7 Ek9eAXZazpYWuvS2TzQaGXKp3IffaXbRGslMk6E0EpGuYY7mR/NhlCeG322dmbru464i ZLC0SmwAZcG8R3uQJJZhmuTy5ydg6ihAiqqhizJZoeMiHlAsYO42R3ERsJAzb63aOSQC +j6ox6xslFikC20/Qj1weZl72EBBgEy9cfXTLSG8bZoir2G+ZFBgnxz0SdbGMy5C3+kS i8MQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:references:in-reply-to :message-id:cc:to:from:date:dkim-signature; bh=xgboSOXSaJN+npjxRR5//kw9dc8gv3PuHBnyX+Oqs3c=; fh=4b/SxQA3k3ke7I/ouF34hxhriedoXDkmw/N/sNvfr8U=; b=i9H6fWqGohTbrss9gzppT2Mq0DNIVoCs3rI8OAJLKS+GSaSDHwyhz2cojvPn6kv2zm nrlIAKv26tKUGMdbqSKAig4g9rCJ8z6xhr0qw2AW5qUHIvhp1HmxkVbex+e0k+uCbu+W MfggWQ43H9RmID7wX8v49z7IwmumKdDAFfgs7f/+eVpG2VOZuzUZ+u6w4Prfo7r4Gvc/ wbjQBWEFmdodrJKUmgeN+IH7n5HKNUe8nMi1P4+jmYLV9DZp+5WvK2F2v/O9ApSoqNzO /Zf7iBz5+KcHnCRZNDrEUzB/qM2LgsjIlN9Wx2FRkQPkwuAsHIW1tisQEEcY69CqkshV WsUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ecLQ4xF6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-119268-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119268-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q9-20020a056a00084900b006eac0139f20si855891pfk.254.2024.03.26.08.10.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 08:10:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119268-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ecLQ4xF6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-119268-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119268-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 76B8D304CF1 for ; Tue, 26 Mar 2024 15:10:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CC0613C80F; Tue, 26 Mar 2024 15:10:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ecLQ4xF6" Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0BEBD13C67E; Tue, 26 Mar 2024 15:10:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711465841; cv=none; b=greEap8CabneL7FU2u0KgbF7siFJHhicyIJSmyNtACF3qLlESXbupmS4XcQSTcfflfwxGWpIOAgXL+3C6X3cntbvrpyQD3iPVBCHStDHR1kMIFzDJQ7KTsKmqmrN8lHN3RZtbqEgdAdadcD759zc4HVxGzlSA6OgD8kwsf5txbs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711465841; c=relaxed/simple; bh=mzJombKbEWRKDl6OlPgaMOZIIcKPzrlFoWruizKqFJA=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: Mime-Version:Content-Type; b=pAOas2itF9APnkL58k+dY5vCCqFmWy1M1YrSpuEE/gCEbgqp03Pag9kAiRnV6PzLswBvUvuIzeB8t+FATEXQ9syLCNv+cR2OVHNm3/CALJyqCwnUOcolD0vMZbb8HqV9iz0f49oyAq9wyw1zI+CY+nT8kB9nXQuawD957s5Y/os= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ecLQ4xF6; arc=none smtp.client-ip=209.85.160.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qt1-f171.google.com with SMTP id d75a77b69052e-430c45ab240so32898481cf.0; Tue, 26 Mar 2024 08:10:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711465838; x=1712070638; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=xgboSOXSaJN+npjxRR5//kw9dc8gv3PuHBnyX+Oqs3c=; b=ecLQ4xF6eEwC8koQ1SQ2hCwD9jVnXRAj8q6G5FbjDZkJqxZOTWjFRnddLg1DJD1nwJ XxkcfRHd1HbGBrnbC3lfEXEuV9K+XVwvfiToAFap3FlVqlC8iMgJO9mhLEb/Dqa4pJGo WrrAIklrX2FMLSFcB1CuasOFMlN7Q4V/lXJ1QV274uSz2ZHMgKJAK7CZggcAAeJzTyUM rbjRq4+ukFsSWGsq/Blp/lQiKdmYlIuMzRZw41URfXxMG9sgQT8TqYy0tfIL0P1YioYR zfI54xL5Ab44mJg+zUa6kdbi6OWhVEPrg+i60Xw37uTB/bkuuxJt2aUrjKazfVznjv1o uz2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711465838; x=1712070638; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=xgboSOXSaJN+npjxRR5//kw9dc8gv3PuHBnyX+Oqs3c=; b=TBDygXdMtAuCe59P/itShaH9CsZJcY/88XWojcvSPfIdDZJbV7b0w/+uxetWoRhlB7 P09C+zbRyAHMO7N6z7AUpeZPVA565Dwfgrw43rv0DphOI6UlavbVs72WmSla68BbeejH IBQJdRA5MXQCQJIK/Echt3vv+4T96zWq3pVMKUz3JxGTTtKtSkoTRKKF7CNjAuB1uZin uMAXr1vl93wZbfM4CE2lWVaJ76Vdw3bidPyCsFNZUeDhPFC5I7AYeJCwbEXeQ/5KFnno SuHWb0q+OYI1Ha5MA7nmHCXMTqbUkZD7Iotfv2/kUULEbZxePSdEEd1s6xksdbPzObSj 5zVA== X-Forwarded-Encrypted: i=1; AJvYcCVj8q8br4tfy8E+5zMYTdV2mROCcNVYTlpES4Ej8EAKDYVTr5EL6iitM8gI07O8smPwm9a/knA7qNKkk/usI2LZZMgLdCScFzPJWTwYPGie7mOkCxv9h9GUgdtfRESo/E+fJRg0WauaVv4/3/sNys7cDNmF5pk9cF861BP/jeLYE4KqENCc X-Gm-Message-State: AOJu0YyypI3dRWkWoqskYm1RLrnKtYOHhBFOpOHErn0NAhaGMvfRp4wl +SQ/yRHH+ZHlgC/ObVqj6Hq3blSZ6IOkDI+eIi8qXGIl0IeANyrg X-Received: by 2002:a05:622a:283:b0:431:23c8:7aa3 with SMTP id z3-20020a05622a028300b0043123c87aa3mr1433295qtw.13.1711465837959; Tue, 26 Mar 2024 08:10:37 -0700 (PDT) Received: from localhost (55.87.194.35.bc.googleusercontent.com. [35.194.87.55]) by smtp.gmail.com with ESMTPSA id hz2-20020a05622a678200b004313b7cf2c7sm3708208qtb.39.2024.03.26.08.10.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 08:10:37 -0700 (PDT) Date: Tue, 26 Mar 2024 11:10:37 -0400 From: Willem de Bruijn To: Richard Gobert , Eric Dumazet Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, willemdebruijn.kernel@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Message-ID: <6602e56d7a02c_1408f429432@willemb.c.googlers.com.notmuch> In-Reply-To: <6566fd5f-fcdf-4dc7-b8a2-5e8a182f8c49@gmail.com> References: <20240325182543.87683-1-richardbgobert@gmail.com> <20240325182543.87683-5-richardbgobert@gmail.com> <46e0c775-91e7-4bf6-88f3-53ab5e00414f@gmail.com> <6566fd5f-fcdf-4dc7-b8a2-5e8a182f8c49@gmail.com> Subject: Re: [PATCH net-next v4 4/4] net: gro: move L3 flush checks to tcp_gro_receive Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Richard Gobert wrote: > Eric Dumazet wrote: > > > > I do not understand this patch 4/4 then. > > > > Why bother moving stuff in net/ipv4/tcp_offload.c if we plan to move > > it back to where it belongs ? > > Willem also pointed that out, and I agree. I'll post a v5 and move this > functionality to gro.c. Currently, gro_network_flush will be called from > tcp_gro_receive and in a separate series I'll fix the bug by calling > gro_network_flush in skb_gro_receive or adding it to > udp_gro_receive_segment - whichever is better. > > This patch is meaningful by itself - removing checks against non-relevant > packets and making the flush/flush_id checks in a single place. One issue: if the do this move in net/next, then a later fix that relies on it cannot be backporter to older stable kernels.