ethtool: add netlink based get rss support
authorSudheer Mogilappagari <sudheer.mogilappagari@intel.com>
Fri, 2 Dec 2022 00:25:55 +0000 (16:25 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 6 Dec 2022 01:25:00 +0000 (17:25 -0800)
commit7112a04664bfc10ae4709b2079fe3991cbd1fe18
tree25b5640672e272706ff7141e232dcb54cfa1d9b7
parent343a5d358e4ab5597e90e1eafa7eba55eb42e96b
ethtool: add netlink based get rss support

Add netlink based support for "ethtool -x <dev> [context x]"
command by implementing ETHTOOL_MSG_RSS_GET netlink message.
This is equivalent to functionality provided via ETHTOOL_GRSSH
in ioctl path. It sends RSS table, hash key and hash function
of an interface to user space.

This patch implements existing functionality available
in ioctl path and enables addition of new RSS context
based parameters in future.

Signed-off-by: Sudheer Mogilappagari <sudheer.mogilappagari@intel.com>
Link: https://lore.kernel.org/r/20221202002555.241580-1-sudheer.mogilappagari@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/ethtool-netlink.rst
include/uapi/linux/ethtool_netlink.h
net/ethtool/Makefile
net/ethtool/netlink.c
net/ethtool/netlink.h
net/ethtool/rss.c [new file with mode: 0644]