]> git.proxmox.com Git - mirror_iproute2.git/commit
ss: introduce cgroup2 cache and helper functions
authorDmitry Yakunin <zeil@yandex-team.ru>
Sat, 9 May 2020 16:52:00 +0000 (19:52 +0300)
committerDavid Ahern <dsahern@gmail.com>
Wed, 13 May 2020 14:28:04 +0000 (14:28 +0000)
commitd5e6ee0dac64b64ee0f4a8ed3badf8858ec79edc
tree31ab9caf1312a28213baddf51456bad5aa553730
parent965a5f6a1b394d6ab791be76550e650cad985ef0
ss: introduce cgroup2 cache and helper functions

This patch prepares infrastructure for matching sockets by cgroups.
Two helper functions are added for transformation between cgroup v2 ID
and pathname. Cgroup v2 cache is implemented as hash table indexed by ID.
This cache is needed for faster lookups of socket cgroup.

v2:
  - style fixes (David Ahern)

Signed-off-by: Dmitry Yakunin <zeil@yandex-team.ru>
Signed-off-by: David Ahern <dsahern@gmail.com>
include/cg_map.h [new file with mode: 0644]
include/utils.h
ip/ipvrf.c
lib/Makefile
lib/cg_map.c [new file with mode: 0644]
lib/fs.c