[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120404.201739.672373176675875061.davem@davemloft.net>
Date: Wed, 04 Apr 2012 20:17:39 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: arvid.brodin@...a.com
Cc: 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
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.
--
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