Thread (1 message) read the whole thread 1 message, 1 author, 2022-05-09

RE: [PATCH bpf-next v5 1/2] bpf: Extend batch operations for map-in-map bpf-maps

From: John Fastabend <john.fastabend@gmail.com>
Date: 2022-05-09 03:33:46
Also in: bpf

Takshak Chahande wrote:
This patch extends batch operations support for map-in-map map-types:
BPF_MAP_TYPE_HASH_OF_MAPS and BPF_MAP_TYPE_ARRAY_OF_MAPS

A usecase where outer HASH map holds hundred of VIP entries and its
associated reuse-ports per VIP stored in REUSEPORT_SOCKARRAY type
inner map, needs to do batch operation for performance gain.

This patch leverages the exiting generic functions for most of the batch
operations. As map-in-map's value contains the actual reference of the inner map,
for BPF_MAP_TYPE_HASH_OF_MAPS type, it needed an extra step to fetch the
map_id from the reference value.

selftests are added in next patch 2/2.

Signed-off-by: Takshak Chahande <redacted>
Acked-by: Yonghong Song <redacted>
---
Acked-by: John Fastabend <john.fastabend@gmail.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help