aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki / 吉藤英明 <[email protected]>2013-02-09 07:00:59 +0000
committerDavid S. Miller <[email protected]>2013-02-11 00:21:44 -0500
commitdaaba4fa17d7826807b0b131f796543b4099ef4a (patch)
tree1e37527650f62049fbd0bbe205f608f18415df76 /tools/perf/scripts/python/sched-migration.py
parentec16ef2228829698fdbd2f6b160ff52551a6bf8a (diff)
net neighbour, decnet: Ensure to align device private data on preferred alignment.
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 <[email protected]> Signed-off-by: YOSHIFUJI Hideaki <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions