net/mlx5: add indexed pool local cache
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | net/mlx5: add index allocate with up limitdrivers/ drivers/ | +13 | 0 replies | |
| 2/4 | net/mlx5: add indexed pool local cachedrivers/ drivers/ | +306 | 0 replies | |
| 3/4 | net/mlx5: add index pool cache flushdrivers/ drivers/ | +83 | 0 replies | |
| 4/4 | net/mlx5: replace flow list with index pooldrivers/ drivers/ drivers/ +4 more | +61 | 0 replies |
Reviews trailers per patch
None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Matan Azrad | Suanming Mou |
|---|---|---|
| Series | A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b | A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b |
| 1/4 | ||
| 2/4 | ||
| 3/4 | ||
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [dpdk-dev] [PATCH 0/4] net/mlx5: add indexed pool local cache
For object which wants efficient index allocate and free, local cache will be very helpful.
Two level cache is added, one as local and another as global. The global cache is able to save all the allocated index. That means all the allocated index will not be freed. Once the local cache is full, the extra index will be flushed to the global cache. Once local cache is empty, first try to fetch more index from global, if global is still empty, allocate new trunk and more index.
Suanming Mou (4):
net/mlx5: add index allocate with up limit
net/mlx5: add indexed pool local cache
net/mlx5: add index pool cache flush
net/mlx5: replace flow list with index pool
drivers/net/mlx5/linux/mlx5_os.c | 11 + drivers/net/mlx5/mlx5.c | 3 +- drivers/net/mlx5/mlx5.h | 4 +- drivers/net/mlx5/mlx5_flow.c | 111 ++++------ drivers/net/mlx5/mlx5_flow.h | 1 + drivers/net/mlx5/mlx5_flow_dv.c | 5 + drivers/net/mlx5/mlx5_trigger.c | 8 +- drivers/net/mlx5/mlx5_utils.c | 337 ++++++++++++++++++++++++++++++- drivers/net/mlx5/mlx5_utils.h | 69 ++++++- 9 files changed, 463 insertions(+), 86 deletions(-)
Signature · 1 line
2.25.1