diff options
author | David Miller <davem@davemloft.net> | 2011-07-24 20:01:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-30 18:46:43 -0500 |
commit | 596b9b68ef118f7409afbc78487263e08ef96261 (patch) | |
tree | 0def3e591a0d5ede89e85339e35da3072f09330c /include/linux/netdevice.h | |
parent | 5b8b0060cbd6332ae5d1fa0bec0e8e211248d0e7 (diff) |
neigh: Add infrastructure for allocating device neigh privates.
netdev->neigh_priv_len records the private area length.
This will trigger for neigh_table objects which set tbl->entry_size
to zero, and the first instances of this will be forthcoming.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 97edb3215a5a..5462c2cd5eab 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -1080,6 +1080,7 @@ struct net_device { | |||
1080 | unsigned char perm_addr[MAX_ADDR_LEN]; /* permanent hw address */ | 1080 | unsigned char perm_addr[MAX_ADDR_LEN]; /* permanent hw address */ |
1081 | unsigned char addr_assign_type; /* hw address assignment type */ | 1081 | unsigned char addr_assign_type; /* hw address assignment type */ |
1082 | unsigned char addr_len; /* hardware address length */ | 1082 | unsigned char addr_len; /* hardware address length */ |
1083 | unsigned char neigh_priv_len; | ||
1083 | unsigned short dev_id; /* for shared network cards */ | 1084 | unsigned short dev_id; /* for shared network cards */ |
1084 | 1085 | ||
1085 | spinlock_t addr_list_lock; | 1086 | spinlock_t addr_list_lock; |