[ovs-dev] [PATCH 02/16] datapath: Add dev_get_stats compatibility function.
Ben Pfaff
blp at nicira.com
Tue Apr 13 09:43:56 PDT 2010
[Looking at the short patches first]
On Tue, Apr 13, 2010 at 10:41:04AM -0400, Jesse Gross wrote:
> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
> +static inline const struct net_device_stats *
> +dev_get_stats(struct net_device *dev)
> +{
> + return dev->get_stats(dev);
> +}
> +#endif
This looks fine. I guess it doesn't have to worry about the netdev_ops
transition since that happened in 2.6.29, so it must be correct.
More information about the dev
mailing list