Page MenuHomeFreeBSD

bnxt: Report the programmed RSS key and hash types
Needs ReviewPublic

Authored by kbowling on Fri, Sep 18, 10:51 AM.

Details

Summary

Principally for hn(4) to match the synthetic and VF settings

Implement the iflib RSS query methods using the VNIC key and hash
selections accepted by firmware.  This includes live sysctl changes,
rather than assuming the interface always uses the common RSS defaults,
and lets hn synchronize its synthetic RSS configuration with the VF.

Track whether the cached configuration was successfully programmed.
Invalidate it before an RSS update and when clearing firmware resource
IDs, and publish it only after a successful HWRM response.  A failed live
update otherwise leaves the cached request indistinguishable from the
effective configuration.  Reject queries while stopped, suspended,
recovering, or without a confirmed configuration.

Translate the six IPv4/IPv6 TCP/UDP hash selections into the interface
query ABI, preserving the programmed key's byte order.  Report no hashing
when all selections are disabled.  Queries run under the iflib context
lock without issuing firmware commands or changing RSS policy.

MFC after:      2 weeks
Sponsored by:   BBOX.io

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped