Page MenuHomeFreeBSD

vnic nicvf: Program the common RSS key in network word order
ClosedPublic

Authored by kbowling on Fri, Sep 18, 9:00 AM.
Tags
None
Referenced Files
F172670444: D59806.id187180.diff
Sun, Sep 20, 2:30 AM
F172670412: D59806.id187065.diff
Sun, Sep 20, 2:30 AM
F172670407: D59806.id187049.diff
Sun, Sep 20, 2:30 AM
F172670376: D59806.diff
Sun, Sep 20, 2:30 AM
F172633396: D59806.diff
Sat, Sep 19, 8:36 PM
Unknown Object (File)
Fri, Sep 18, 10:49 PM
Unknown Object (File)
Fri, Sep 18, 10:39 PM
Unknown Object (File)
Fri, Sep 18, 8:26 PM
Subscribers

Details

Summary
Replace the repeated hardware-reset key with rss_getkey().  Decode each
eight-byte chunk with be64dec() into the register-word array before
programming the five key registers.

This matches the key serialization in DPDK's nicvf_rss_set_key(), added
by commit 7694fab264ac666d62a4cae04f2979991ce64259
("net/thunderx/base: add RSS and RETA configuration").  A raw copy into
the word array on little-endian hosts would reverse bytes within each
register relative to that convention.

Preserve the CPI-algorithm gate, enabled hash fields, and round-robin
indirection table.

Diff Detail

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