summaryrefslogtreecommitdiff
path: root/rust/helpers/time.c
diff options
context:
space:
mode:
authorKohei Enju <enjuk@amazon.com>2025-09-29 14:42:15 +0900
committerJakub Kicinski <kuba@kernel.org>2025-09-29 18:33:27 -0700
commit8425161ac1204d2185e0a10f5ae652bae75d2451 (patch)
treeb321372df25096d8752567501380b7d8bd55824c /rust/helpers/time.c
parentb9bd25f47eb79c9eb275e3d9ac3983dc88577dd4 (diff)
nfp: fix RSS hash key size when RSS is not supported
The nfp_net_get_rxfh_key_size() function returns -EOPNOTSUPP when devices don't support RSS, and callers treat the negative value as a large positive value since the return type is u32. Return 0 when devices don't support RSS, aligning with the ethtool interface .get_rxfh_key_size() that requires returning 0 in such cases. Fixes: 9ff304bfaf58 ("nfp: add support for reporting CRC32 hash function") Signed-off-by: Kohei Enju <enjuk@amazon.com> Link: https://patch.msgid.link/20250929054230.68120-1-enjuk@amazon.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/time.c')
0 files changed, 0 insertions, 0 deletions