]> www.infradead.org Git - nvme.git/commit
ethtool: rss: echo the context number back
authorJakub Kicinski <kuba@kernel.org>
Wed, 24 Jul 2024 23:42:49 +0000 (16:42 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Jul 2024 23:23:47 +0000 (16:23 -0700)
commitf96aae91b0d260f682e630e092ef70a05a718a43
treefb3980337eb2654fc6a8e3fb713209f017e60f65
parenta40c7a24f97edda025f53cfe8f0bc6a6e3c12fa6
ethtool: rss: echo the context number back

The response to a GET request in Netlink should fully identify
the queried object. RSS_GET accepts context id as an input,
so it must echo that attribute back to the response.

After (assuming context 1 has been created):

  $ ./cli.py --spec netlink/specs/ethtool.yaml \
             --do rss-get \
     --json '{"header": {"dev-index": 2}, "context": 1}'
  {'context': 1,
   'header': {'dev-index': 2, 'dev-name': 'eth0'},
  [...]

Fixes: 7112a04664bf ("ethtool: add netlink based get rss support")
Acked-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20240724234249.2621109-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/ethtool.yaml
Documentation/networking/ethtool-netlink.rst
net/ethtool/rss.c