Skip to content
Commit ea22f431 authored by Sudheer Mogilappagari's avatar Sudheer Mogilappagari Committed by Jakub Kicinski
Browse files

ethtool: add netlink attr in rss get reply only if value is not null



Current code for RSS_GET ethtool command includes netlink attributes
in reply message to user space even if they are null. Added checks
to include netlink attribute in reply message only if a value is
received from driver. Drivers might return null for RSS indirection
table or hash key. Instead of including attributes with empty value
in the reply message, add netlink attribute only if there is content.

Fixes: 7112a046 ("ethtool: add netlink based get rss support")
Signed-off-by: default avatarSudheer Mogilappagari <sudheer.mogilappagari@intel.com>
Reviewed-by: default avatarMichal Kubecek <mkubecek@suse.cz>
Link: https://lore.kernel.org/r/20230111235607.85509-1-sudheer.mogilappagari@intel.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 01644a1f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment