This patch addresses two issues: a) Fix usage of u32 and __be32 that causes endianess warnings via sparse. b) Ensure consistent hashing in a cluster that is composed of big and little endian systems. Thus, we obtain the same hash mark in an heterogeneous cluster.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -27,7 +27,12 @@ union hmark_ports { · 26 unmodified lines | ||
| 27 | 27 | __u16 src; |
| 28 | 28 | __u16 dst; |
| 29 | 29 | } p16; |
| 30 | + struct { | |
| 31 | + __be16 src; | |
| 32 | + __be16 dst; | |
| 33 | + } b16; | |
| 30 | 34 | __u32 v32; |
| 35 | + __be32 b32; | |
| 31 | 36 | }; |
| 32 | 37 | |
| 33 | 38 | struct xt_hmark_info { |