]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ioc3-eth: store pointer to net_device for priviate area
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 10 Jul 2017 12:00:32 +0000 (14:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jul 2017 21:28:56 +0000 (14:28 -0700)
commitdfcc16c9d5b9c9c38fe18a91da63ab5af05d96ca
treed28a211195193d30ce8cf5e045bf331448bc9cd6
parent521ea95225e3258feea2d725140c691588553b63
ioc3-eth: store pointer to net_device for priviate area

Computing the alignment manually for going from priv to pub is probably
not such a good idea, and in general the assumption that going from priv
to pub is possible trivially could change, so rather than relying on
that, we change things to just store a pointer to pub. This was sugested
by DaveM in [1].

[1] http://www.spinics.net/lists/netdev/msg443992.html

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sgi/ioc3-eth.c