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>
This commit is contained in:
committed by
David S. Miller
parent
5b8b0060cb
commit
596b9b68ef
@ -535,6 +535,7 @@ static void clip_setup(struct net_device *dev)
|
||||
{
|
||||
dev->netdev_ops = &clip_netdev_ops;
|
||||
dev->type = ARPHRD_ATM;
|
||||
dev->neigh_priv_len = sizeof(struct atmarp_entry);
|
||||
dev->hard_header_len = RFC1483LLC_LEN;
|
||||
dev->mtu = RFC1626_MTU;
|
||||
dev->tx_queue_len = 100; /* "normal" queue (packets) */
|
||||
|
Reference in New Issue
Block a user