linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/3] skbuff: Optimize SKB coalescing for page pool
@ 2023-11-24  7:34 Liang Chen
  2023-11-24  7:34 ` [PATCH net-next v3 1/3] page_pool: Rename pp_frag_count to pp_ref_count Liang Chen
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Liang Chen @ 2023-11-24  7:34 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, hawk, ilias.apalodimas,
	linyunsheng
  Cc: netdev, linux-mm, liangchen.linux

The combination of the following condition was excluded from skb coalescing:

from->pp_recycle = 1
from->cloned = 1
to->pp_recycle = 1

With page pool in use, this combination can be quite common(ex.
NetworkMananger may lead to the additional packet_type being registered,
thus the cloning). In scenarios with a higher number of small packets, it
can significantly affect the success rate of coalescing.

This patchset aims to optimize this scenario and enable coalescing of this
particular combination. That also involves supporting multiple users
referencing the same fragment of a pp page to accomondate the need to
increment the "from" SKB page's pp page reference count.


Changes from v2:
- rename a few other functions leaning more towards pp_ref_count managing

Liang Chen (3):
  page_pool: Rename pp_frag_count to pp_ref_count
  page_pool: halve BIAS_MAX for fragment multiple user references
  skbuff: Optimization of SKB coalescing for page pool

 .../net/ethernet/mellanox/mlx5/core/en_rx.c   |  4 +-
 include/linux/mm_types.h                      |  2 +-
 include/net/page_pool/helpers.h               | 67 +++++++++++++------
 include/net/page_pool/types.h                 |  2 +-
 net/core/page_pool.c                          | 14 ++--
 net/core/skbuff.c                             | 23 +++----
 6 files changed, 69 insertions(+), 43 deletions(-)

-- 
2.31.1



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-11-28 10:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-24  7:34 [PATCH net-next v3 0/3] skbuff: Optimize SKB coalescing for page pool Liang Chen
2023-11-24  7:34 ` [PATCH net-next v3 1/3] page_pool: Rename pp_frag_count to pp_ref_count Liang Chen
2023-11-25 11:53   ` Yunsheng Lin
2023-11-27  4:21     ` Liang Chen
2023-11-24  7:34 ` [PATCH net-next v3 2/3] page_pool: halve BIAS_MAX for fragment multiple user references Liang Chen
2023-11-25 12:01   ` Yunsheng Lin
2023-11-27  4:22     ` Liang Chen
2023-11-24  7:34 ` [PATCH net-next v3 3/3] skbuff: Optimization of SKB coalescing for page pool Liang Chen
2023-11-25 12:16   ` Yunsheng Lin
2023-11-27  4:23     ` Liang Chen
2023-11-27 10:48       ` Yunsheng Lin
2023-11-28 10:41         ` Liang Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).