Re: [PATCH net-next] net neighbour,decnet: Ensure to align deviceprivate data on preferred alignment.

From: David Miller
Date: Mon Feb 11 2013 - 00:23:18 EST


From: YOSHIFUJI Hideaki <yoshfuji@xxxxxxxxxxxxxx>
Date: Sun, 10 Feb 2013 02:00:59 +0900

> To allow both of protocol-specific data and device-specific data
> attached with neighbour entry, and to eliminate size calculation
> cost when allocating entry, sizeof protocol-speicic data must be
> multiple of NEIGH_PRIV_ALIGN. On 64bit archs,
> sizeof(struct dn_neigh) is multiple of NEIGH_PRIV_ALIGN, but on
> 32bit archs, it was not.
>
> Introduce NEIGH_ENTRY_SPACE() macro to ensure that protocol-specific
> entry-size meets our requirement.
>
> Reported-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
> Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@xxxxxxxxxxxxxx>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/