[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1333653668.2652.13.camel@bwh-desktop.uk.solarflarecom.com>
Date: Thu, 5 Apr 2012 20:21:08 +0100
From: Ben Hutchings <bhutchings@...arflare.com>
To: David Miller <davem@...emloft.net>
CC: <arvid.brodin@...a.com>, <shemminger@...tta.com>,
<netdev@...r.kernel.org>, <balferreira@...glemail.com>,
<arvid.brodin@...n.com>
Subject: Re: [RFC] net/hsr: Add support for IEC 62439-3 High-availability
Seamless Redundancy
On Wed, 2012-04-04 at 20:17 -0400, David Miller wrote:
> From: Arvid Brodin <arvid.brodin@...a.com>
> Date: Thu, 5 Apr 2012 01:09:48 +0200
>
> > - icmp_param.data.icmph = *icmp_hdr(skb);
> > + memcpy(&icmp_param.data.icmph, icmp_hdr(skb),
> > + sizeof(icmp_param.data.icmph));
>
> GCC can and will optimize this into an inline assignment, and thus
> have the same unaligned access problems, because it determines
> alignment based upon the types involved.
So presumably icmp_hdr() should be changed to skb_transport_header().
Ben.
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
--
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