map_lookup_and_delete_elem for BPF_MAP_TYPE_HASH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello everyone,

As far as I can see, `map_lookup_and_delete_elem` is implemented only for
`BPF_MAP_TYPE_QUEUE` and `BPF_MAP_TYPE_STACK` [0]. It might be useful to be
able to do this operation on other kinds of maps, e.g. `BPF_MAP_TYPE_HASH`.

If I'm not mistaken, it would have benefits over `bpf_map_lookup_elem` followed
by `bpf_map_delete_elem` in regards to avoiding race conditions.

Is there a reason this functionality wasn't implemented?
Is it planned for any time soon?

I'm looking forward to your input.

Best regards,
Borna Cafuk

[0] https://elixir.bootlin.com/linux/v5.9-rc4/source/kernel/bpf/syscall.c#L1501



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux