[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191114163715.4184099-1-jonathan.lemon@gmail.com>
Date: Thu, 14 Nov 2019 08:37:13 -0800
From: Jonathan Lemon <jonathan.lemon@...il.com>
To: <netdev@...r.kernel.org>, <davem@...emloft.net>
CC: <kernel-team@...com>, <brouer@...hat.com>,
<ilias.apalodimas@...aro.org>
Subject: [net-next PATCH v2 0/2] Change page_pool timeout handling
It isn't safe to remove the page pool until all in-flight pages
are returned. If the pages are handed up the stack, it might be
a while before they are returned.
The page pool can also be used independently of xdp, so it shouldn't
be depending on timeout handling from the xdp memory model. Change
things around so the pool handles its own timeout.
v2:
- fix wording in commit log
- fix compile error for !PAGE_POOL case
- revise tracepoint handling
Jonathan Lemon (2):
page_pool: do not release pool until inflight == 0.
page_pool: remove hold/release count from tracepoints
.../net/ethernet/stmicro/stmmac/stmmac_main.c | 4 +-
include/net/page_pool.h | 54 +++-----
include/net/xdp_priv.h | 4 -
include/trace/events/page_pool.h | 24 ++--
include/trace/events/xdp.h | 19 +--
net/core/page_pool.c | 123 ++++++++++-------
net/core/xdp.c | 125 +++++++-----------
7 files changed, 152 insertions(+), 201 deletions(-)
--
2.17.1
Powered by blists - more mailing lists