]> Gentwo Git Trees - linux/.git/commit
nfp: fix RSS hash key size when RSS is not supported
authorKohei Enju <enjuk@amazon.com>
Mon, 29 Sep 2025 05:42:15 +0000 (14:42 +0900)
committerJakub Kicinski <kuba@kernel.org>
Tue, 30 Sep 2025 01:33:27 +0000 (18:33 -0700)
commit8425161ac1204d2185e0a10f5ae652bae75d2451
treeb321372df25096d8752567501380b7d8bd55824c
parentb9bd25f47eb79c9eb275e3d9ac3983dc88577dd4
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>
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c