diff options
| author | Eric Biggers <ebiggers@kernel.org> | 2026-03-17 01:14:53 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-03-19 05:07:37 +0300 |
| commit | d5516452a362aab2c136ab815967c4417c92d228 (patch) | |
| tree | 38d427245948d60fb748367dc8179e471ebfc2f3 /include | |
| parent | 4455a30b043ac2e20369b400a2132aaf127735e3 (diff) | |
| download | linux-d5516452a362aab2c136ab815967c4417c92d228.tar.xz | |
qed: Reimplement qed_mcast_bin_from_mac() using library functions
The calculation done by qed_calc_crc32c() is the standard
least-significant-bit-first CRC-32C except it uses
most-significant-bit-first order for the actual CRC variable. That is
equivalent to bit-reflecting the input and output CRC. Replace it with
equivalent calls to the corresponding library functions.
Tested with a simple userspace program which tested that the old and new
implementations of qed_mcast_bin_from_mac() produce the same outputs.
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Link: https://patch.msgid.link/20260316221453.66078-1-ebiggers@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
