History

net: rtnetlink: add support for the IFLA_STATS_LINK_XSTATS_SLAVE attribute

This patch adds support for the IFLA_STATS_LINK_XSTATS_SLAVE attribute which allows to export per-slave statistics if the master device supports the linkxstats callback. The attribute is passed down to the linkxstats callback and it is up to the callback user to use it (an example has been added to the only current user - the bridge). This allows us to query only specific slaves of master devices like bridge ports and export only what we're interested in instead of having to dump all ports and searching only for a single one. This will be used to export per-port IGMP/MLD stats and also per-port vlan stats in the future, possibly other statistics as well.

Nikolay Aleksandrov committed 10 years ago

Commit 80e73cc1 parent 545c3214 files · +108 −7Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/linux/if_link.h+1−0
@@ -822,6 +822,7 @@ enum { · 821 unmodified lines
822822 IFLA_STATS_UNSPEC, /* also used as 64bit pad attribute */
823823 IFLA_STATS_LINK_64,
824824 IFLA_STATS_LINK_XSTATS,
825+ IFLA_STATS_LINK_XSTATS_SLAVE,
825826 __IFLA_STATS_MAX,
826827 };
827828

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t