net: stats: IPv6 multicast listener daemon stats not printed

The MLD statistics were collected but never printed.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2017-05-17 11:25:07 +03:00
commit bddacf6a7f
2 changed files with 12 additions and 0 deletions

View file

@ -337,6 +337,12 @@ static inline void net_shell_print_statistics(void)
GET_STAT(ipv6_nd.sent), GET_STAT(ipv6_nd.sent),
GET_STAT(ipv6_nd.drop)); GET_STAT(ipv6_nd.drop));
#endif /* CONFIG_NET_IPV6_ND */ #endif /* CONFIG_NET_IPV6_ND */
#if defined(CONFIG_NET_STATISTICS_MLD)
printk("IPv6 MLD recv %d\tsent\t%d\tdrop\t%d\n",
GET_STAT(ipv6_mld.recv),
GET_STAT(ipv6_mld.sent),
GET_STAT(ipv6_mld.drop));
#endif /* CONFIG_NET_STATISTICS_MLD */
#endif /* CONFIG_NET_IPV6 */ #endif /* CONFIG_NET_IPV6 */
#if defined(CONFIG_NET_IPV4) #if defined(CONFIG_NET_IPV4)

View file

@ -44,6 +44,12 @@ static inline void stats(void)
GET_STAT(ipv6_nd.sent), GET_STAT(ipv6_nd.sent),
GET_STAT(ipv6_nd.drop)); GET_STAT(ipv6_nd.drop));
#endif /* CONFIG_NET_STATISTICS_IPV6_ND */ #endif /* CONFIG_NET_STATISTICS_IPV6_ND */
#if defined(CONFIG_NET_STATISTICS_MLD)
NET_INFO("IPv6 MLD recv %d\tsent\t%d\tdrop\t%d",
GET_STAT(ipv6_mld.recv),
GET_STAT(ipv6_mld.sent),
GET_STAT(ipv6_mld.drop));
#endif /* CONFIG_NET_STATISTICS_MLD */
#endif /* CONFIG_NET_STATISTICS_IPV6 */ #endif /* CONFIG_NET_STATISTICS_IPV6 */
#if defined(CONFIG_NET_STATISTICS_IPV4) #if defined(CONFIG_NET_STATISTICS_IPV4)