[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191111062038.2336521-1-jonathan.lemon@gmail.com>
Date: Sun, 10 Nov 2019 22:20:37 -0800
From: Jonathan Lemon <jonathan.lemon@...il.com>
To: <netdev@...r.kernel.org>, <brouer@...hat.com>,
<ilias.apalodimas@...aro.org>
CC: <kernel-team@...com>
Subject: [RFC PATCH 0/1] 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 xdp. Change things around so
the pool handles its own timeout.
I wanted to send this out to clarify how I see things working. This
is currently being tested with the mlx4/mlx5 drivers for attaching
DMA-mapped pages to skbs, sending them up the stack, and then putting
them back in the page pool afterwards.
Jonathan Lemon (1):
page_pool: do not release pool until inflight == 0.
.../net/ethernet/stmicro/stmmac/stmmac_main.c | 4 +-
include/net/page_pool.h | 55 +++-----
include/net/xdp_priv.h | 4 -
include/trace/events/xdp.h | 19 +--
net/core/page_pool.c | 115 ++++++++++------
net/core/xdp.c | 130 +++++++-----------
6 files changed, 138 insertions(+), 189 deletions(-)
--
2.17.1
Powered by blists - more mailing lists