diff options
| author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2012-12-03 20:13:37 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2012-12-04 13:08:10 -0500 |
| commit | adfa85e45dac616ff4f8bfceff1621ccafc0b1ff (patch) | |
| tree | 1d9880ca13a79fbd386bd5bbd48d3031211f8fa3 /include | |
| parent | 70b386a0cc65041fb01aacf5d4b8d1fa49fc8ce9 (diff) | |
ipmr/ip6mr: advertise mfc stats via rtnetlink
These statistics can be checked only via /proc/net/ip_mr_cache or
SIOCGETSGCNT[_IN6] and thus only for the table RT_TABLE_DEFAULT.
Advertising them via rtnetlink allows to get statistics for all cache entries,
whatever the table is.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/uapi/linux/rtnetlink.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/rtnetlink.h b/include/uapi/linux/rtnetlink.h index 3dee071770d..80abe27dc2a 100644 --- a/include/uapi/linux/rtnetlink.h +++ b/include/uapi/linux/rtnetlink.h | |||
| @@ -288,6 +288,7 @@ enum rtattr_type_t { | |||
| 288 | RTA_MP_ALGO, /* no longer used */ | 288 | RTA_MP_ALGO, /* no longer used */ |
| 289 | RTA_TABLE, | 289 | RTA_TABLE, |
| 290 | RTA_MARK, | 290 | RTA_MARK, |
| 291 | RTA_MFC_STATS, | ||
| 291 | __RTA_MAX | 292 | __RTA_MAX |
| 292 | }; | 293 | }; |
| 293 | 294 | ||
| @@ -408,6 +409,12 @@ struct rta_session { | |||
| 408 | } u; | 409 | } u; |
| 409 | }; | 410 | }; |
| 410 | 411 | ||
| 412 | struct rta_mfc_stats { | ||
| 413 | __u64 mfcs_packets; | ||
| 414 | __u64 mfcs_bytes; | ||
| 415 | __u64 mfcs_wrong_if; | ||
| 416 | }; | ||
| 417 | |||
| 411 | /**** | 418 | /**** |
| 412 | * General form of address family dependent message. | 419 | * General form of address family dependent message. |
| 413 | ****/ | 420 | ****/ |
