mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 23:53:55 +08:00
netdevice.h: Align struct net_device members
Save a bit of space. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
72a8f97bf2
commit
bdc220da32
@ -1020,9 +1020,6 @@ struct net_device {
|
|||||||
* part of the usual set specified in Space.c.
|
* part of the usual set specified in Space.c.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
unsigned char if_port; /* Selectable AUI, TP,..*/
|
|
||||||
unsigned char dma; /* DMA channel */
|
|
||||||
|
|
||||||
unsigned long state;
|
unsigned long state;
|
||||||
|
|
||||||
struct list_head dev_list;
|
struct list_head dev_list;
|
||||||
@ -1146,13 +1143,16 @@ struct net_device {
|
|||||||
const struct header_ops *header_ops;
|
const struct header_ops *header_ops;
|
||||||
|
|
||||||
unsigned int flags; /* interface flags (a la BSD) */
|
unsigned int flags; /* interface flags (a la BSD) */
|
||||||
|
unsigned int priv_flags; /* Like 'flags' but invisible to userspace. */
|
||||||
unsigned short gflags;
|
unsigned short gflags;
|
||||||
unsigned int priv_flags; /* Like 'flags' but invisible to userspace. */
|
|
||||||
unsigned short padded; /* How much padding added by alloc_netdev() */
|
unsigned short padded; /* How much padding added by alloc_netdev() */
|
||||||
|
|
||||||
unsigned char operstate; /* RFC2863 operstate */
|
unsigned char operstate; /* RFC2863 operstate */
|
||||||
unsigned char link_mode; /* mapping policy to operstate */
|
unsigned char link_mode; /* mapping policy to operstate */
|
||||||
|
|
||||||
|
unsigned char if_port; /* Selectable AUI, TP,..*/
|
||||||
|
unsigned char dma; /* DMA channel */
|
||||||
|
|
||||||
unsigned int mtu; /* interface MTU value */
|
unsigned int mtu; /* interface MTU value */
|
||||||
unsigned short type; /* interface hardware type */
|
unsigned short type; /* interface hardware type */
|
||||||
unsigned short hard_header_len; /* hardware hdr length */
|
unsigned short hard_header_len; /* hardware hdr length */
|
||||||
|
Loading…
Reference in New Issue
Block a user