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
F172509397: D59806.id187049.diff
Fri, Sep 18, 10:49 PM
F172508160: D59806.id187065.diff
Fri, Sep 18, 10:39 PM
F172492932: D59806.diff
Fri, Sep 18, 8:26 PM
F172487307: D59806.diff
Fri, Sep 18, 7:37 PM
F172460562: D59806.id187065.diff
Fri, Sep 18, 3:24 PM
F172436305: D59806.id187049.diff
Fri, Sep 18, 11:08 AM
F172436273: D59806.id187065.diff
Fri, Sep 18, 11:08 AM
F172435656: D59806.diff
Fri, Sep 18, 11:03 AM
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