From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C08F3203BA for ; Mon, 18 Aug 2025 13:32:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755523942; cv=none; b=Y0/uKEvPsz6T+ZWd9epM45xWZZjih4cAiPikeB3T/py6IA4UHXp6lv9Oi0OgE1Wj82GRB51TFoc7XNS1fKHnFSkRzkzMfyxJQTMeTjlWMmae/aw0YKry+NIbcXzC+vPrEAGotTJ9p6+E6655rmvX7/T6Sx9+mMrkc6xAvfsEYAc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755523942; c=relaxed/simple; bh=8vlKA+dcviPrsXU57sLpk2P5dw7gjdUCEVS6SARsUNY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=bdNhX85FeryHfs44C032qHC4cXVF8y3a7gVT/Ky3WRlhQjlcas1iC8eS5a0U4b2L5MqHm0BMXHqi6rEtb76GelmQt9h9SHwIVT4pLc+C3hVDnYma22onFVXPQS5whUBdqIA4cZsc+6D5FoM/b4UDHWEfZZSnBYJUfS6oAyHs57I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=d9onoS1z; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="d9onoS1z" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1755523940; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zHJcFf2Y6ZyqR1ZSSODvNaNMnsW89gcxseOuT/E1tl8=; b=d9onoS1z1/0gtScdHGDOYJF2AS5IHV/UANiLw4FLCB99LBsz4hWes893FgQ2IKCJJXFs+s NKgfyt/wMlP6KO1191qVOxG2h7+L5DwbgEIdPHhRbfknr0X6X6X8a7elDkMEWKu/SvbVoY uEUmFMSNfhkvyGow1WGzis1lBaURr3g= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-556-di0v_P74O9-ckD55riikyw-1; Mon, 18 Aug 2025 09:32:19 -0400 X-MC-Unique: di0v_P74O9-ckD55riikyw-1 X-Mimecast-MFC-AGG-ID: di0v_P74O9-ckD55riikyw_1755523938 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-45a1b0b14daso13659205e9.2 for ; Mon, 18 Aug 2025 06:32:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755523938; x=1756128738; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zHJcFf2Y6ZyqR1ZSSODvNaNMnsW89gcxseOuT/E1tl8=; b=UoTX7uGWhw1bUOIlfqPeltzGeUqPt2ndlWdqfj+3fhaa4j5yKKOxs9Kl3NMmNNxhHl wU10cKyc2xrDTRaZjX1xFRO7baMv/QUYYElTAJ/U+qfthGUBqnEQ66U+yLkN2pfAVXIv 1B0y0Gf3++uD80MMmaIDEQp3aX0PdgtH72y9WibGXXQ5uzlxc0+qx7Ss/mF57utHAEcT pJqBMPBi4Q8QZAU08CFqYPA89/Pip1vZS8TDG39PvvVK1Yjj9QUbYCKQyXuwzQnRxrv1 L1emAkxGwE38q4TuiX7QMgF+6Cb9oUS7AuxVaR2KnvLL0VpPs2W3qXGEeKLkMcZONHxc TH2Q== X-Gm-Message-State: AOJu0YwGcljVlpwXNcBqtnfbfFo4flDlDRSpci4p3nG9nhWjFhkM7WDF OhNzvcy9gJZyrYwRj6ujP+ZoywhL49O8IQJTI+IAKZxtBTQ5J1NZqkVq2EivdDNj0pCPSzeDVXQ n8hAcTGTNjQJH7lVUc7k9IDhtEdAeS6B5pBtPXpk6sZThgSdNbDz5iwjxxrdedkDRkg== X-Gm-Gg: ASbGncvLVJs/1O5y3AAwr7uJyVqHTuyy3Dqzse7fQq5A49NmjoO6+3k0cs+nONjUtKO R4rDr7nAn2EO53xegSvoPE3CN14gBofsIR05cCdPKUWY7BlASqytKm6hbMPwD3Q1FM+kdHKrQvB hOkNKlZB/tEIr+e79D2TXm7hQG+tCNrNeYRC3gD03FKUMzn/9zeYWlmdQkxsxtjQX9plFO8CiwT u9KkxE74esHFIsxBz/NPO44ZB7mKqtHe70DFJK4l72hC96vFnfuwcogGejLjkdiWO32T7ZyTYFx qPrgt5T1JPgQxfweet20+s+b8lZAso2yG01gkEIC+lgrtxKuczLKmkXwKkAoHqX7pLod/UdOfzi Ra4J63V2b8r4= X-Received: by 2002:a05:600c:630e:b0:43c:f8fc:f697 with SMTP id 5b1f17b1804b1-45b3e827f65mr34765385e9.9.1755523937719; Mon, 18 Aug 2025 06:32:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF28LQi8EXpK6GtLZmDlWAKDzWIyH4QqdI25znCZbn3ey1wMn/xlNBCcuW65C03wDNqKZyrpg== X-Received: by 2002:a05:600c:630e:b0:43c:f8fc:f697 with SMTP id 5b1f17b1804b1-45b3e827f65mr34765135e9.9.1755523937296; Mon, 18 Aug 2025 06:32:17 -0700 (PDT) Received: from ?IPV6:2a0d:3344:2712:7e10:4d59:d956:544f:d65c? ([2a0d:3344:2712:7e10:4d59:d956:544f:d65c]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-45b42a8f972sm289275e9.20.2025.08.18.06.32.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Aug 2025 06:32:16 -0700 (PDT) Message-ID: <38c4355b-4570-401e-b520-7ec698b62dd8@redhat.com> Date: Mon, 18 Aug 2025 15:32:15 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v3] net: pppoe: implement GRO/GSO support To: Richard Gobert , Felix Fietkau , netdev@vger.kernel.org, Michal Ostrowski , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , David Ahern , Simon Horman Cc: linux-kernel@vger.kernel.org References: <20250811095734.71019-1-nbd@nbd.name> <68be885c-f3ea-48aa-91c9-673f9c67fe28@gmail.com> Content-Language: en-US From: Paolo Abeni In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 8/18/25 1:22 PM, Richard Gobert wrote: > Felix Fietkau wrote: >> On 14.08.25 16:30, Richard Gobert wrote: >>> I don't think this will be called for PPPoE over GRE packets, >>> since gre_gso_segment skips everything up to the network header. >> >> What's a good solution to this issue? Use the outer network header instead of the inner one when the protocol is PPPoE? >> >> - Felix > > I don't really have a good solution for this. You could explicitly check > if the protocol is PPPoE in gre_gso_segment, but that wouldn't be very > elegant or future-proof. > > I think setting skb->inner_network_header in pppoe_gro_complete > (while not resetting it in inet_gro_complete) wouldn't work since other > functions assume that skb->inner_network_header is an IP header. Is PPPoE over GRE really a thing? IOW do we need to care at the GRO level? FTR, my biased answers are "no" and "no" ;) /P