]> git.ipfire.org Git - thirdparty/linux.git/commit
ethtool: rss: fix falsely ignoring indir table updates
authorJakub Kicinski <kuba@kernel.org>
Fri, 22 May 2026 23:06:44 +0000 (16:06 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 May 2026 15:17:56 +0000 (08:17 -0700)
commit8d60141a32875248ef71d49c9920fa5e2aa40b29
tree84f04483805a82c790eb35ae7755caf179bc7c6c
parent3e6c6e9782ff8a8d8ded774b07ad4590cd61d04c
ethtool: rss: fix falsely ignoring indir table updates

rss_set_prep_indir() compares the new indirection table against the
current one to determine whether any update is needed. The memcmp
call passes data->indir_size as the length argument, but indir_size
is the number of u32 entries, not the byte count.

Fixes: c0ae03588bbb ("ethtool: rss: initial RSS_SET (indirection table handling)")
Link: https://patch.msgid.link/20260522230647.1705600-4-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/rss.c