Message ID | 20231206105419.27952-3-liangchen.linux@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E06BC4167B for <linux-mm@archiver.kernel.org>; Wed, 6 Dec 2023 10:54:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A71836B00AD; Wed, 6 Dec 2023 05:54:45 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9F94E6B00AE; Wed, 6 Dec 2023 05:54:45 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8501E6B00AF; Wed, 6 Dec 2023 05:54:45 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 6C3F06B00AD for <linux-mm@kvack.org>; Wed, 6 Dec 2023 05:54:45 -0500 (EST) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 4DE80A018A for <linux-mm@kvack.org>; Wed, 6 Dec 2023 10:54:45 +0000 (UTC) X-FDA: 81536085330.25.246DD59 Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) by imf05.hostedemail.com (Postfix) with ESMTP id 856F6100012 for <linux-mm@kvack.org>; Wed, 6 Dec 2023 10:54:43 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EH6dBEIr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf05.hostedemail.com: domain of liangchen.linux@gmail.com designates 209.85.210.50 as permitted sender) smtp.mailfrom=liangchen.linux@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1701860083; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=J730iItaW8fpD9bcYiCc3WSDtwgBtsyA2Jb0R83edv4=; b=QV1A9Q0YPaMyZgNZ1UZVSnLwMxnzKUKHiYpNX0ROA4nr3ho+3xwKN3krDsa5coggzgJv6W ECuSJxxSD+ME4rNRZPxBr+CobYCEUahZ5gOgBUL0iWAO/gPJGhpADAGdrGcvfHlA0CvE38 rlJa/9IYVQHm0YGpukZigg5vMjbG6vI= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EH6dBEIr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf05.hostedemail.com: domain of liangchen.linux@gmail.com designates 209.85.210.50 as permitted sender) smtp.mailfrom=liangchen.linux@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1701860083; a=rsa-sha256; cv=none; b=YktQuCjb5vX2yf6YYbqO1eSmPaykMXyPVK3H5rWbgwbtHpXiTk1//2iWoy6RTn1NyCmoA9 X7vZZVf9EQ8HTYSrzGTaIbCSkoT8AJgxU9yTdO04Q5u998V72eXlExHjo0wF3+hXCE6NW0 O6kP4sNDabRkoq8TtR1UJx3IeAGMFL4= Received: by mail-ot1-f50.google.com with SMTP id 46e09a7af769-6d87a8228e0so1941483a34.1 for <linux-mm@kvack.org>; Wed, 06 Dec 2023 02:54:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701860082; x=1702464882; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=J730iItaW8fpD9bcYiCc3WSDtwgBtsyA2Jb0R83edv4=; b=EH6dBEIrwvvS0luE6UvbzRbQEsWWsRUF961CUc0FOEUR/XJhBb9Ky4cvToFn0xQTnJ n7s55fi2SGMkETSwww7EtWeWPa7vZmvhcnqy5gO/qlQlZwwpC4DO15p1kvjKTdKo6uEb 8/L0QmNftdP1Pc/bxMbOZN1LCZSeHC/j9QooEV6YdKdIW1F4nSKz52H32JT6Hjr/JExZ PZbI39ZxmKaYBAiDGNKnFMf04mPDAKjPVMgKw1+T2l1xdTxTfX4ypQcr6gc2vdR6zp2k b5Rs430j21fVKOk1vqnJgU/whatenOgPxv3OFYUpNmpsjyr0O/AkE8YPeYdaxrZdaqEk GbGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701860083; x=1702464883; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=J730iItaW8fpD9bcYiCc3WSDtwgBtsyA2Jb0R83edv4=; b=eXEECFfjLxdltkUKndp6KueLNlaxwzzCayHutVG5elznP7aCKsvEXW8fctpvrZpkOI h0SZHj2dM1sd8lx9xND5jblSOO4ipoechjjBD6FxIUKrAMgpDviBxx9ni4A6Sek89LD+ thZWx3sUyh80Wno7Rvelu3JXpdPwR3hbIl/hI61kQISNuLswHKRvoGanxBpPX7omg8CD PUWUYJ7VRdH6ZdYJkkxunr/Gh2g34D9JttcCqbmqGOVuu4mbBodR9+BTcR2PUGUINm2V KEgZealaAwhCgEWY/oL+NbXFerVVHQNG/1z206YAThv5VKP3MpMBcHns/okhWTRWb4GL jtjg== X-Gm-Message-State: AOJu0Yz9Uw27LOKKQcfyUxgX5yaT+Z+bL3rIvCqn43b/2uxHUpz6iVay usmBMiL3SOp4nVMuDd2Dwwo= X-Google-Smtp-Source: AGHT+IEVWGAs6VmJ6gEEtOq16rEzedYFdHy4Uqdvgzphsz0NsAg1Zhi+SY0iNk9q2PpSNior2r90BQ== X-Received: by 2002:a05:6830:1117:b0:6d6:4ebf:1557 with SMTP id w23-20020a056830111700b006d64ebf1557mr580766otq.21.1701860082740; Wed, 06 Dec 2023 02:54:42 -0800 (PST) Received: from localhost.localdomain ([89.187.161.180]) by smtp.gmail.com with ESMTPSA id n15-20020a638f0f000000b005c6801efa0fsm5388796pgd.28.2023.12.06.02.54.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 02:54:41 -0800 (PST) From: Liang Chen <liangchen.linux@gmail.com> To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, hawk@kernel.org, ilias.apalodimas@linaro.org, linyunsheng@huawei.com Cc: netdev@vger.kernel.org, linux-mm@kvack.org, jasowang@redhat.com, liangchen.linux@gmail.com Subject: [PATCH net-next v7 2/4] page_pool: halve BIAS_MAX for multiple user references of a fragment Date: Wed, 6 Dec 2023 18:54:17 +0800 Message-Id: <20231206105419.27952-3-liangchen.linux@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20231206105419.27952-1-liangchen.linux@gmail.com> References: <20231206105419.27952-1-liangchen.linux@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Stat-Signature: 6nuii1p7u7hazuthuffbsj3775fepp1h X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 856F6100012 X-HE-Tag: 1701860083-680418 X-HE-Meta: U2FsdGVkX1/lZhXAQbDxOsuCC4TTGxdsI05ftyGE6I1qGN9vRSJlTVzSQTqnp+79EHGCR/agpoyYJG08lJY7e9jdXAURRC8LZ9wYS7e5dqnnhTTOSKsh/T9vUodVBrTENGqZEiEJ+1LE1tpZ7ZxFKinI7vvic51qx0gPoX817sD4rIG8xcaMNb2rqfAWZEEaLADx6vq9vuyvGqUQhA6aq64PB4lNrZeIioVoZCYGjXGmM2vTUP2lLhtzt80+mZ9sAa6nii+MsHje0fVfS2m4sRompXep43P5AkERRCj5LfGFscuah5WFSZ5Ofpy5DWPNo1KhINC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XZNf+OW475bcAcnqNRXJzJqCjFdDrAPwA+Ml/mIOQZOX/vV2KLyiO5E78nBpWMlGT+0OTovsDsV6vj5rsfNB7yy3PpakwxEgmscI6y+gitZCTM6R1nsPGAkhJwSEmqJMBy7JeY4ecWXfz7QbUCcGBGmMBfJ9Cl8yGKLaApFYfVdf+hKfQKcuU9nyMqksfj8P7dIK605vUVp0jpsKaFhzzPhcRzOL9eqdKNZlfnFD2xOtrChqB23ZLToI09DTY= X-Bogosity: Ham, tests=bogofilter, spamicity=0.022403, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
skbuff: Optimize SKB coalescing for page pool
|
expand
|
diff --git a/net/core/page_pool.c b/net/core/page_pool.c index 106220b1f89c..436f7ffea7b4 100644 --- a/net/core/page_pool.c +++ b/net/core/page_pool.c @@ -26,7 +26,7 @@ #define DEFER_TIME (msecs_to_jiffies(1000)) #define DEFER_WARN_INTERVAL (60 * HZ) -#define BIAS_MAX LONG_MAX +#define BIAS_MAX (LONG_MAX >> 1) #ifdef CONFIG_PAGE_POOL_STATS /* alloc_stat_inc is intended to be used in softirq context */