]> git.baikalelectronics.ru Git - kernel.git/commit
net: loopback driver cleanup
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 23 Sep 2010 23:51:51 +0000 (23:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2010 02:04:08 +0000 (19:04 -0700)
commit3715f6c47a6410b4de54f3f77fa51da445b32e80
tree43ee591745e17569ad212be6ec3c46e58b443c0a
parentc0fb99f2c4ac89bb0acb22636879228191d69685
net: loopback driver cleanup

loopback driver uses dev->ml_priv to store its percpu stats pointer.
It uses ugly casts "(void __percpu __force *)" to shut up sparse
complains.

Define an union to better document we use ml_priv in loopback driver and
define a lstats field with appropriate types.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/loopback.c
include/linux/netdevice.h