diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2017-11-05 13:36:18 +0000 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2017-11-11 13:33:20 +0000 |
commit | 6ddcce5b29278618ae2fb08058e48568aba0cd19 (patch) | |
tree | 031baac64fede10936e2bbabf3b72610f01beaf3 /net/ipv6/route.c | |
parent | 9301343bc8d20d23c951dad6495b334ea797b5be (diff) | |
download | linux-stable-6ddcce5b29278618ae2fb08058e48568aba0cd19.tar.gz linux-stable-6ddcce5b29278618ae2fb08058e48568aba0cd19.tar.bz2 linux-stable-6ddcce5b29278618ae2fb08058e48568aba0cd19.zip |
dst: Increase alignment of metrics to allow extra flag on pointers
For the backport of "ipv4: add reference counting to metrics", we will
need a third flag on metrics pointers. This was not needed upstream
as the DST_METRICS_FORCE_OVERWRITE flag has been eliminated there.
In order to use three flag bits we need to increase the alignment of
metrics from 4 to 8 bytes.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index a66142e53216..90e59ea3adbc 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -247,7 +247,7 @@ static struct dst_ops ip6_dst_blackhole_ops = { .neigh_lookup = ip6_neigh_lookup, }; -static const u32 ip6_template_metrics[RTAX_MAX] = { +static const u32 ip6_template_metrics[RTAX_MAX] __aligned(DST_METRICS_ALIGNMENT) = { [RTAX_HOPLIMIT - 1] = 0, }; |