git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eal: add and use unaligned integer types
[dpdk.git]
/
lib
/
librte_ether
/
rte_ether.h
diff --git
a/lib/librte_ether/rte_ether.h
b/lib/librte_ether/rte_ether.h
index
a14308e
..
07c17d7
100644
(file)
--- a/
lib/librte_ether/rte_ether.h
+++ b/
lib/librte_ether/rte_ether.h
@@
-175,7
+175,7
@@
static inline int is_multicast_ether_addr(const struct ether_addr *ea)
*/
static inline int is_broadcast_ether_addr(const struct ether_addr *ea)
{
*/
static inline int is_broadcast_ether_addr(const struct ether_addr *ea)
{
- const u
int16_t *ea_words = (const
uint16_t *)ea;
+ const u
naligned_uint16_t *ea_words = (const unaligned_
uint16_t *)ea;
return (ea_words[0] == 0xFFFF && ea_words[1] == 0xFFFF &&
ea_words[2] == 0xFFFF);
return (ea_words[0] == 0xFFFF && ea_words[1] == 0xFFFF &&
ea_words[2] == 0xFFFF);