[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130129.000436.1681326851044319952.davem@davemloft.net>
Date: Tue, 29 Jan 2013 00:04:36 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: yoshfuji@...ux-ipv6.org
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next] net neigh: Optimize neighbor entry size
calculation.
From: YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org>
Date: Thu, 24 Jan 2013 19:44:23 +0900
> When allocating memory for neighbour cache entry, if
> tbl->entry_size is not set, we always calculate
> sizeof(struct neighbour) + tbl->key_len, which is common
> in the same table.
>
> With this change, set tbl->entry_size during the table
> initialization phase, if it was not set, and use it in
> neigh_alloc() and neighbour_priv().
>
> This change also allow us to have both of protocol private
> data and device priate data at tha same time.
>
> Note that the only user of prototcol private is DECnet
> and the only user of device private is ATM CLIP.
> Since those are exclusive, we have not been facing issues
> here.
>
> Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists