net_device and netdev private struct allocation improvements.
1) Ensure alignment of both net_device and private area. 2) Introduce netdev_priv(), an inline which allows the dynamic private area (dev->priv) to be calculated as a constant offset from the base struct net_device at compile time.
Showing
Please register or sign in to comment