]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ethtool: rss: fix rss key initialization warning
authorDaniel Zahka <daniel.zahka@gmail.com>
Thu, 3 Oct 2024 16:23:10 +0000 (09:23 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Oct 2024 19:34:13 +0000 (12:34 -0700)
commit5c2ab978f9c90384198000a032d10382f44c3530
tree5502d5e4c587c57ac959f0f55e82927a6d9e3342
parent00110c5eeb7c0a429e39dad2986753dd295e2568
ethtool: rss: fix rss key initialization warning

This warning is emitted when a driver does not default populate an rss
key when one is not provided from userspace. Some devices do not
support individual rss keys per context. For these devices, it is ok
to leave the key zeroed out in ethtool_rxfh_context. Do not warn on
zeroed key when ethtool_ops.rxfh_per_ctx_key == 0.

Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com>
Link: https://patch.msgid.link/20241003162310.1310576-1-daniel.zahka@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/ioctl.c