Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1448AC54EAA for ; Mon, 30 Jan 2023 16:50:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237103AbjA3QuP (ORCPT ); Mon, 30 Jan 2023 11:50:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236890AbjA3QuM (ORCPT ); Mon, 30 Jan 2023 11:50:12 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6928126FC for ; Mon, 30 Jan 2023 08:49:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675097374; 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=RUe1+at8qNUL3tbG/zwrRwNfw83JyE6i/0LXaPJqQZw=; b=aztKYQmrpfVlk1d6hW7MqNBYM6wRxJyBrDbsgudEDa3l3s3kIzmKaYUPyE3Y3pFeEM53hl f1mvcTVdZUJdU8H2HRWrXs2BBYIL1PdkwQDFgQoNkkYrK5jg7yiG1OSFp637GB5jzJefIC VSHnu+7vwOKdtGTT06dEmkzsTMx1Ic4= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-641-yDZl1HXONhi1piNlvREiag-1; Mon, 30 Jan 2023 11:49:30 -0500 X-MC-Unique: yDZl1HXONhi1piNlvREiag-1 Received: by mail-ej1-f71.google.com with SMTP id xh12-20020a170906da8c00b007413144e87fso7795324ejb.14 for ; Mon, 30 Jan 2023 08:49:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:to :content-language:subject:cc:user-agent:mime-version:date:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RUe1+at8qNUL3tbG/zwrRwNfw83JyE6i/0LXaPJqQZw=; b=DARj2IONNezpYyJNfS3qFlp3zQ7aeStdcwAl3agNoSRBmDv9gFErg3D4LWZmTOj/cK bdUpAi52xAxkKKHVO2j8mpDbdb66/e0yfCYMLHoZZwJ4mn7wga40eGckCFK/3QoB0Lmv PQiwgtEcSKt9Js2/MX00pHizOXQbg2UAiZoMlw6vLvKt/7pT6INZE1ux3Opm3V8Fq7pC rpLJQbBHRNBNZCmYeSaz0XJ1jM+h194ISUHVwkDk+HE3aOAXOh6lOhKgxs1VmR4ux9We Po/SmgWPGx5gDnWU3tmSZ8Z959bC14JN5bYsZwzTjbYQQ0riTo3bYYWM8s6nJ74bkCsV yelQ== X-Gm-Message-State: AO0yUKXQAycTCvrEp0n1gvzQ2wEfSaT5yTyafa4IkPv5W7IhTts/gS2I Hfc10cVX7chiiV+GnOv4d4bZ6cU0pw4zvdBMMcvKc24RZuzkTI7sBm8E43XlJqcuGknqd6KyCd/ QC4LU0w/s0Lz/tKM9cnB45res X-Received: by 2002:a17:907:8a24:b0:881:23a:aba5 with SMTP id sc36-20020a1709078a2400b00881023aaba5mr13075770ejc.11.1675097369616; Mon, 30 Jan 2023 08:49:29 -0800 (PST) X-Google-Smtp-Source: AK7set+RCtksUvJEWryR3yHzEyUiPRPfVvrQL5JDNsl576kHJhhgicW1XmPS8wJt2PCjU2EPXJ3UYg== X-Received: by 2002:a17:907:8a24:b0:881:23a:aba5 with SMTP id sc36-20020a1709078a2400b00881023aaba5mr13075752ejc.11.1675097369399; Mon, 30 Jan 2023 08:49:29 -0800 (PST) Received: from [192.168.41.200] (83-90-141-187-cable.dk.customer.tdc.net. [83.90.141.187]) by smtp.gmail.com with ESMTPSA id x26-20020a1709060a5a00b00877f2b842fasm7129078ejf.67.2023.01.30.08.49.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Jan 2023 08:49:28 -0800 (PST) From: Jesper Dangaard Brouer X-Google-Original-From: Jesper Dangaard Brouer Message-ID: <4d2d1d1d-1dc8-60d7-8999-f5ea571107c4@redhat.com> Date: Mon, 30 Jan 2023 17:49:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Cc: brouer@redhat.com, nbd@nbd.name, davem@davemloft.net, edumazet@google.com, hawk@kernel.org, ilias.apalodimas@linaro.org, linux-kernel@vger.kernel.org, linyunsheng@huawei.com, lorenzo@kernel.org, netdev@vger.kernel.org, pabeni@redhat.com Subject: Re: [net PATCH] skb: Do mix page pool and page referenced frags in GRO Content-Language: en-US To: Jakub Kicinski , Alexander Duyck References: <04e27096-9ace-07eb-aa51-1663714a586d@nbd.name> <167475990764.1934330.11960904198087757911.stgit@localhost.localdomain> <20230126151317.73d67045@kernel.org> In-Reply-To: <20230126151317.73d67045@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/01/2023 00.13, Jakub Kicinski wrote: > On Thu, 26 Jan 2023 11:06:59 -0800 Alexander Duyck wrote: >> From: Alexander Duyck >> >> GSO should not merge page pool recycled frames with standard reference >> counted frames. Traditionally this didn't occur, at least not often. >> However as we start looking at adding support for wireless adapters there >> becomes the potential to mix the two due to A-MSDU repartitioning frames in >> the receive path. There are possibly other places where this may have >> occurred however I suspect they must be few and far between as we have not >> seen this issue until now. >> >> Fixes: 53e0961da1c7 ("page_pool: add frag page recycling support in page pool") >> Reported-by: Felix Fietkau >> Signed-off-by: Alexander Duyck > Exciting investigation! > Felix, out of curiosity - the impact of loosing GRO on performance is > not significant enough to care? We could possibly try to switch to > using the frag list if we can't merge into frags safely. Using the frag list sounds scary, because we recently learned that kfree_skb_list requires all SKBs on the list to have same refcnt (else the walking of the list can lead to other bugs). --Jesper