Page MenuHomeFreeBSD

CXGBE: fix get_filt to be endianness-aware
ClosedPublic

Authored by wma on Nov 15 2017, 12:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 16 2024, 1:07 PM
Unknown Object (File)
Jan 13 2024, 2:54 AM
Unknown Object (File)
Dec 22 2023, 9:49 PM
Unknown Object (File)
Dec 19 2023, 1:44 AM
Unknown Object (File)
Dec 15 2023, 3:25 AM
Unknown Object (File)
Sep 29 2023, 1:30 AM
Unknown Object (File)
Jun 16 2023, 2:54 AM
Unknown Object (File)
May 14 2023, 6:15 AM
Subscribers

Details

Summary
Unconditional 32-bit shift is not endianness-safe.
Modify the logic to work both on LE and BE.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Have you tested this change on x86 to make sure it still works on LE hardware? It looks ok but it would be nice to test...

Just tested on arm64 (LE), works fine.

This revision is now accepted and ready to land.Jan 9 2018, 8:19 PM
This revision was automatically updated to reflect the committed changes.