aboutsummaryrefslogtreecommitdiffstats
path: root/net/atm
diff options
context:
space:
mode:
authorDavid Miller <davem@davemloft.net>2011-07-24 20:01:25 -0400
committerDavid S. Miller <davem@davemloft.net>2011-11-30 18:46:43 -0500
commit596b9b68ef118f7409afbc78487263e08ef96261 (patch)
tree0def3e591a0d5ede89e85339e35da3072f09330c /net/atm
parent5b8b0060cbd6332ae5d1fa0bec0e8e211248d0e7 (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 'net/atm')
-rw-r--r--net/atm/clip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/atm/clip.c b/net/atm/clip.c
index 11439a7f6782..aea7cad2ece1 100644
--- a/net/atm/clip.c
+++ b/net/atm/clip.c
@@ -535,6 +535,7 @@ static void clip_setup(struct net_device *dev)
535{ 535{
536 dev->netdev_ops = &clip_netdev_ops; 536 dev->netdev_ops = &clip_netdev_ops;
537 dev->type = ARPHRD_ATM; 537 dev->type = ARPHRD_ATM;
538 dev->neigh_priv_len = sizeof(struct atmarp_entry);
538 dev->hard_header_len = RFC1483LLC_LEN; 539 dev->hard_header_len = RFC1483LLC_LEN;
539 dev->mtu = RFC1626_MTU; 540 dev->mtu = RFC1626_MTU;
540 dev->tx_queue_len = 100; /* "normal" queue (packets) */ 541 dev->tx_queue_len = 100; /* "normal" queue (packets) */