1
0
mirror of https://github.com/opencontainers/runc.git synced 2026-10-23 19:49:01 +03:00
Files
Kir Kolyshkin aedac2e4d2 libct: remove dead network stats code
Network interface statistics were only collected for "veth" networks,
but the veth strategy was removed back in 2018 by commit fe3d5c4c
("Remove unused veth setup code"). Since then, a container with a veth
network can not even be started ("unknown strategy type"), so this code
is never reached, and the network interface stats are always empty.

Remove the dead code, and deprecate libcontainer.Stats.Interfaces and
types.Stats.NetworkInterfaces, which are always empty.

Network statistics are better obtained by whoever sets up the container
network (which runc does not do).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-10-08 10:45:59 -07:00
..