diff options
| author | Eric Biggers <[email protected]> | 2025-05-13 05:01:42 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-05-15 02:24:43 +0000 |
| commit | a1dc1deeacbe65ebd3968bc4d14f14f8d696b184 (patch) | |
| tree | edf827cc8161e39b435cd30930ecef6647337b8d /kernel/trace/trace_functions.c | |
| parent | openvswitch: Stricter validation for the userspace action (diff) | |
| download | kernel-a1dc1deeacbe65ebd3968bc4d14f14f8d696b184.tar.gz kernel-a1dc1deeacbe65ebd3968bc4d14f14f8d696b184.zip | |
net: apple: bmac: use crc32() instead of hand-rolled equivalent
The calculation done by bmac_crc(addr) followed by taking the low 6 bits
and reversing them is equivalent to taking the high 6 bits from
crc32(~0, addr, ETH_ALEN). Just do that instead.
Signed-off-by: Eric Biggers <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'kernel/trace/trace_functions.c')
0 files changed, 0 insertions, 0 deletions
