Skip to content

Commit

Permalink
check-structs: struct eth_addr has alignment 2, not 1.
Browse files Browse the repository at this point in the history
It consists of ovs_be16 elements, so it has 16-bit alignment.

(This doesn't make a difference for any actual OpenFlow protocol elements.)

Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Andy Zhou <[email protected]>
  • Loading branch information
blp committed Apr 6, 2017
1 parent f9ac0f0 commit a27a0ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-aux/check-structs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ types['ovs_be16'] = {"size": 2, "alignment": 2}
types['ovs_be32'] = {"size": 4, "alignment": 4}
types['ovs_be64'] = {"size": 8, "alignment": 8}
types['ovs_32aligned_be64'] = {"size": 8, "alignment": 4}
types['struct eth_addr'] = {"size": 6, "alignment": 1}
types['struct eth_addr'] = {"size": 6, "alignment": 2}

token = None
line = ""
Expand Down

0 comments on commit a27a0ef

Please sign in to comment.