[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1461015356.10638.124.camel@edumazet-glaptop3.roam.corp.google.com>
Date: Mon, 18 Apr 2016 14:35:56 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Roopa Prabhu <roopa@...ulusnetworks.com>
Cc: netdev@...r.kernel.org, jhs@...atatu.com, davem@...emloft.net,
tgraf@...g.ch, nicolas.dichtel@...nd.com
Subject: Re: [PATCH net-next v5] rtnetlink: add new RTM_GETSTATS message to
dump link stats
On Mon, 2016-04-18 at 14:10 -0700, Roopa Prabhu wrote:
> + if (filter_mask & IFLA_STATS_FILTER_BIT(IFLA_STATS_LINK_64)) {
> + struct rtnl_link_stats64 *sp;
> +
> + attr = nla_reserve(skb, IFLA_STATS_LINK_64,
> + sizeof(struct rtnl_link_stats64));
> + if (!attr)
> + goto nla_put_failure;
> +
> + sp = nla_data(attr);
Are you sure we have a guarantee that sp is aligned to u64 fields ?
x86 does not care, but some arches would have a potential misalign
access here.
> + dev_get_stats(dev, sp);
> + }
Powered by blists - more mailing lists