aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorErez Shitrit <[email protected]>2023-03-09 16:43:15 +0200
committerSaeed Mahameed <[email protected]>2023-05-22 22:38:05 -0700
commit1e5daf5565b61a96e570865091589afc9156e3d3 (patch)
treed454eeafa8e5c276f3210f54856cff7d0cf832d6 /tools/perf/scripts/python/export-to-postgresql.py
parent2be5bd42a5bba1a05daedc86cf0e248210009669 (diff)
net/mlx5: DR, Fix crc32 calculation to work on big-endian (BE) CPUs
When calculating crc for hash index we use the function crc32 that calculates for little-endian (LE) arch. Then we convert it to network endianness using htonl(), but it's wrong to do the conversion in BE archs since the crc32 value is already LE. The solution is to switch the bytes from the crc result for all types of arc. Fixes: 40416d8ede65 ("net/mlx5: DR, Replace CRC32 implementation to use kernel lib") Signed-off-by: Erez Shitrit <[email protected]> Reviewed-by: Alex Vesker <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions