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 1D623C64EC4 for ; Wed, 8 Mar 2023 09:47:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230050AbjCHJrN (ORCPT ); Wed, 8 Mar 2023 04:47:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230214AbjCHJqy (ORCPT ); Wed, 8 Mar 2023 04:46:54 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60EC5B9513 for ; Wed, 8 Mar 2023 01:45:59 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id k37so9446644wms.0 for ; Wed, 08 Mar 2023 01:45:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1678268757; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ty12+nLrZzZRFPyE/5xCHmQ1gSeqrVNRX0+UN6AcEvs=; b=Bo8R0BiS+Y8YaIo1e8mE6z62fZO2YRstGgC+BiU0UtDlAPcABLiBzqS0zpvWr5x73o rQTpTCzhp1w4zQaDHomzQBkHY31p4C3jxjoE9xkxBrR9RZmR/tBIRyBPhPiisfLaFfxE FNW7s7N4U3BM3m/hPK5f2Vq8dNx0xCVA/L2EEbKJv0DolomSQIk0m1FW0zhFP+stjXRs ia/YQVLcN2pINSuFZeuqUEsGLAjomKGvhuIZrIW7jhLl1TW1mS/NgEAQAUcCdp05sIQj ukpYpc6MJR6chPKQx6OkD0Fzv18ytjrIOIqviRaYa8g2CWPewdimxqAiWGQxlWHHuk7J B9fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678268757; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ty12+nLrZzZRFPyE/5xCHmQ1gSeqrVNRX0+UN6AcEvs=; b=tIphnvHg2QoIyFd6hph8GMuRwQ70KDwiAUwbiaQP9TICeu0Ld3OgQ9KvX6z957pur/ uFwq6G/U/MQDSK2qV5EWEA4PlpWp0oatZi+CFL202AUzAqEkLoBDxhWq4R6xf7mTGvVb EIoMN96bovTJqtZqJiRQUeKGxNtOgaIQp6GU6vCktnGqMBaYX/DljV8IPyw2eDYmjrDg JgX0IQUbbOeqxM0d7wTi2/K6NeZeK2A9vkpFlDxvCea6dkK+b2ViYcKVgMf3NisETD1G ClvhBGPn9u5h5QITc6ICbF/ukqvWAkmg1v+/QfNchRQ0ZRns0sGEqz8FNoYjw15TDDBr m0Wg== X-Gm-Message-State: AO0yUKUduMqn9oNBEhpfUzgvEp3orjEY9eQVHl7sm6IiBKTmdU3KPqDf fpvHU+8VsBOAZVz/4RZrWagMsDXctxkZlseTbgBG1A== X-Google-Smtp-Source: AK7set+xxY1JtZ4a0+A5Ndip55cSbLE+PPFEk2K9wHakPb4oduun87X7EcgJFx0oOrF9VuSVtYF58yO02J1S9LUH8Ks= X-Received: by 2002:a7b:c2a2:0:b0:3eb:5a1e:d52c with SMTP id c2-20020a7bc2a2000000b003eb5a1ed52cmr3657640wmk.2.1678268757575; Wed, 08 Mar 2023 01:45:57 -0800 (PST) MIME-Version: 1.0 References: <20230308021153.99777-1-kerneljasonxing@gmail.com> In-Reply-To: <20230308021153.99777-1-kerneljasonxing@gmail.com> From: Eric Dumazet Date: Wed, 8 Mar 2023 10:45:45 +0100 Message-ID: Subject: Re: [PATCH v4 net-next] udp: introduce __sk_mem_schedule() usage To: Jason Xing Cc: simon.horman@corigine.com, willemdebruijn.kernel@gmail.com, davem@davemloft.net, dsahern@kernel.org, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Jason Xing Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 8, 2023 at 3:13=E2=80=AFAM Jason Xing wrote: > > From: Jason Xing > > Keep the accounting schema consistent across different protocols > with __sk_mem_schedule(). Besides, it adjusts a little bit on how > to calculate forward allocated memory compared to before. After > applied this patch, we could avoid receive path scheduling extra > amount of memory. > > Link: https://lore.kernel.org/lkml/20230221110344.82818-1-kerneljasonxing= @gmail.com/ > Signed-off-by: Jason Xing > Reviewed-by: Eric Dumazet