Page MenuHomeFreeBSD

bxe: Program the common RSS key in searcher byte order
ClosedPublic

Authored by kbowling on Fri, Sep 18, 8:38 AM.
Tags
None
Referenced Files
F172557904: D59796.id187039.diff
Sat, Sep 19, 6:18 AM
F172530447: D59796.id187055.diff
Sat, Sep 19, 2:01 AM
F172509833: D59796.id187039.diff
Fri, Sep 18, 10:51 PM
F172507792: D59796.id187055.diff
Fri, Sep 18, 10:36 PM
Unknown Object (File)
Fri, Sep 18, 7:10 PM
Unknown Object (File)
Fri, Sep 18, 6:25 PM
Unknown Object (File)
Fri, Sep 18, 3:42 PM
Unknown Object (File)
Fri, Sep 18, 11:05 AM
Subscribers

Details

Summary
Use the common RSS key instead of generating private random words.
Reverse the bytes before passing the key to the shared code, which copies
the supplied bytes directly into the firmware request.  The searcher
consumes this array in reverse order; a raw copy of the common key would
not produce matching Toeplitz hashes.

The hardware ordering is documented by Linux commit
d682d2bdc30650a5c7ce9908ab83ab674b658744 ("bnx2x: byte swap rss_key to
comply to Toeplitz specs").  Keep the conversion in the FreeBSD caller
rather than changing the shared-code interface.

Preserve the config_hash gate, including the PMF-only key programming
on 57710/57711, and leave hash types and indirection policy unchanged.

MFC after:      2 weeks
Sponsored by:   BBOX.io

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable