hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c
....@@ -112,7 +112,8 @@
112112 {
113113 u32 crc = crc32(0, input_data, length);
114114
115
- return (__force u32)htonl(crc);
115
+ return (__force u32)((crc >> 24) & 0xff) | ((crc << 8) & 0xff0000) |
116
+ ((crc >> 8) & 0xff00) | ((crc << 24) & 0xff000000);
116117 }
117118
118119 u32 mlx5dr_ste_calc_hash_index(u8 *hw_ste_p, struct mlx5dr_ste_htbl *htbl)