[ovs-dev] [patch 5/5] datapath: Use rtnl_link_stats64

Jesse Gross jesse at nicira.com
Sun Aug 8 21:50:08 UTC 2010


On Fri, Aug 6, 2010 at 11:05 AM, Simon Horman <horms at verge.net.au> wrote:

>  int netdev_get_stats(const struct vport *vport, struct odp_vport_stats
> *stats)
>  {
>        const struct netdev_vport *netdev_vport = netdev_vport_priv(vport);
> +#ifdef HAVE_RTNL_LINK_STATS64
> +       struct rtnl_link_stats64 *netdev_stats, storage;
> +
> +       netdev_stats = dev_get_stats(netdev_vport->dev, &storage);
> +#else
>

We could do this with compat code to always look like the later kernels that
return rtnl_link_stats64.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20100808/2a28628b/attachment-0003.html>


More information about the dev mailing list