diff options
author | Sudheer Mogilappagari <sudheer.mogilappagari@intel.com> | 2023-01-12 02:56:07 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-13 08:52:46 +0300 |
commit | ea22f4319c3409d847d70eaaf149cc480a73220d (patch) | |
tree | c8b7e3bf8c129b3b9b98cfc0388cd0a1b7479487 /include | |
parent | 01644a1f98ff45a4044395ce2bbfd534747e0676 (diff) | |
download | linux-ea22f4319c3409d847d70eaaf149cc480a73220d.tar.xz |
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: 7112a04664bf ("ethtool: add netlink based get rss support")
Signed-off-by: Sudheer Mogilappagari <sudheer.mogilappagari@intel.com>
Reviewed-by: Michal Kubecek <mkubecek@suse.cz>
Link: https://lore.kernel.org/r/20230111235607.85509-1-sudheer.mogilappagari@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions