* [dpdk-users] Swapping membuf pools while running
@ 2020-09-03 13:03 Filip Janiszewski
0 siblings, 0 replies; only message in thread
From: Filip Janiszewski @ 2020-09-03 13:03 UTC (permalink / raw)
Is there a way to swap the currently configured mempool for a given
queue while the nic is up and running (so, without reconfiguration)?
The scenario would be:
a) capturing packets (rx_burst) in a loop
b) mempool configured for the queue (while calling
rte_eth_rx_queue_setup) gets filled up
c) before the next rx_burst provide an additional mempool so that the
new one is used.
d) Continue rx bursting using the new mempool
Hopefully the scenario is sufficiently clear.
Ideally I would like to run this scenario using MLX5 NICs, but for what
I was able to see this is not possible, since the DPDK driver code runs
some cache-related operations on the mempool items.
Specifically mlx5_mr_update_mp iterate over all the mbufs by calling
mlx5_mr_update_mp_cb (that does some magic cache-related stuff), which
smells to me like a roadblock for adding some handcrafted function to
swap those buffers (I think there's no explicit API in DPDK for swapping
rx queue mempools).
My idea was just to manipulate mlx5_rxq_data in mlx5_rxq_ctrl (that
contains the mempool pointer) using a new function in DPDK that access
those structures, but all those "update mp" operations above looks like
they're doing something with those mbufs so swapping pool pointer might
mess up a lot.. but not sure, any idea?
+48 666 369 823
^ permalink raw reply [flat|nested] only message in thread
only message in thread, back to index
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-03 13:03 [dpdk-users] Swapping membuf pools while running Filip Janiszewski
DPDK usage discussions
Archives are clonable:
git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
Newsgroup available over NNTP:
AGPL code for this site: git clone https://public-inbox.org/ public-inbox