lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 25 Jan 2010 08:36:10 -0800 From: Stephen Hemminger <shemminger@...tta.com> To: Kristoffer Glembo <kristoffer@...sler.com> Cc: netdev@...r.kernel.org, davem@...emloft.net, Kristoffer Glembo <kristoffer@...sler.com> Subject: Re: [PATCH 1/1 V4] net: Add Aeroflex Gaisler 10/100/1G Ethernet MAC driver On Mon, 25 Jan 2010 12:01:12 +0100 Kristoffer Glembo <kristoffer@...sler.com> wrote: > + > +static struct net_device_stats *greth_get_stats(struct net_device *dev) > +{ > + struct greth_private *greth = netdev_priv(dev); > + return &greth->stats; > +} If you used dev->stats instead of own private structure, then you could also avoid having this handle. The default function for .ndo_get_stats is to return dev->stats. -- -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists