]> git.ipfire.org Git - thirdparty/iproute2.git/commit
iplink: filter stats using RTEXT_FILTER_SKIP_STATS
authorEdwin Peer <edwin.peer@broadcom.com>
Sun, 11 Jun 2023 10:57:38 +0000 (13:57 +0300)
committerDavid Ahern <dsahern@kernel.org>
Wed, 21 Jun 2023 16:14:01 +0000 (09:14 -0700)
commitbbb1238123a8cfe12766ad85f2c0a4aaa32d6610
tree5212f54c11317bf8cbaf55ddfcd194ec77ea4597
parent3c37c2d662aa6a831dfa3b161cae40ca55c8db68
iplink: filter stats using RTEXT_FILTER_SKIP_STATS

Don't request statistics we do not intend to render. This avoids the
possibility of a truncated IFLA_VFINFO_LIST when statistics are not
requested as well as the fetching of unnecessary data.

Signed-off-by: Edwin Peer <edwin.peer@broadcom.com>
Cc: Edwin Peer <espeer@gmail.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/ipaddress.c
ip/iplink.c