On Wed, Apr 24, 2013 at 11:28:45AM -0400, Ed Maste wrote: > On 22 April 2013 09:20, YAMAMOTO Takashi <y...@mwd.biglobe.ne.jp> wrote: > > + /* > > + * note: UINT64_MAX means unsupported > > + */ > > Is this checked anywhere (e.g., to avoid displaying unsupported > stats)? Or will it result in the display of bogus values?
It's the return value convention. It's documented in netdev-provider.h: /* Retrieves current device stats for 'netdev' into 'stats'. * * A network device that supports some statistics but not others, it should * set the values of the unsupported statistics to all-1-bits * (UINT64_MAX). */ int (*get_stats)(const struct netdev *netdev, struct netdev_stats *); The callers are aware of it. > > + stats->multicast = ifd->ifi_imcasts; > > Does Linux count in & out multicast frames in the same counter? > Perhaps this should be imcasts + omcasts (and if so, on FreeBSD too). It appears to me, from examining a few Linux drivers, that 'multicast' counts received multicast frames only. _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev