diff options
author | Aaron Conole <aconole@redhat.com> | 2015-09-04 16:53:30 -0400 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2015-09-05 19:45:56 -0700 |
commit | ca92d173aa29240c38735ad9e4f46e4222792b52 (patch) | |
tree | a3471cfcc7589e86ab83562c91731432300c897f /lib/packets.h | |
parent | eac0dc83c468dc7c5b5751c96cda0e568b8b188b (diff) | |
download | openvswitch-ca92d173aa29240c38735ad9e4f46e4222792b52.tar.gz |
netdev-dpdk: Fix build failure due to new struct eth_addr.
The netdev-dpdk uses the struct ether_addr rather than struct eth_addr
internal ovs datatype.
To facilitate using either the .ea OR the struct ether_addr.addr_bytes
argument for printing/logging, add a new ETH_ADDR_BYTES_ARG() define.
Signed-off-by: Aaron Conole <aconole@redhat.com>
[blp@nicira.com made stylistic changes]
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/packets.h')
-rw-r--r-- | lib/packets.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/packets.h b/lib/packets.h index a4f63839b..4fb14278f 100644 --- a/lib/packets.h +++ b/lib/packets.h @@ -307,8 +307,9 @@ ovs_be32 set_mpls_lse_values(uint8_t ttl, uint8_t tc, uint8_t bos, */ #define ETH_ADDR_FMT \ "%02"PRIx8":%02"PRIx8":%02"PRIx8":%02"PRIx8":%02"PRIx8":%02"PRIx8 -#define ETH_ADDR_ARGS(EA) \ - (EA).ea[0], (EA).ea[1], (EA).ea[2], (EA).ea[3], (EA).ea[4], (EA).ea[5] +#define ETH_ADDR_ARGS(EA) ETH_ADDR_BYTES_ARGS((EA).ea) +#define ETH_ADDR_BYTES_ARGS(EAB) \ + (EAB)[0], (EAB)[1], (EAB)[2], (EAB)[3], (EAB)[4], (EAB)[5] /* Example: * |