Netdev List
 help / color / mirror / Atom feed
From: Kory Maincent <kory.maincent@bootlin.com>
To: netdev@vger.kernel.org, donald.hunter@gmail.com, kuba@kernel.org
Cc: Maxime Chevallier <maxime.chevallier@bootlin.com>
Subject: ynl ethtool subscribe issue
Date: Thu, 17 Oct 2024 18:05:51 +0200	[thread overview]
Message-ID: <20241017180551.1259bf5c@kmaincent-XPS-13-7390> (raw)

Hello,

It seems there is an issue with ynl tool and ethtool specs:

# ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --subscribe monitor
 --sleep 10 &
# ethtool -K eth0 rx-gro-list on
# Traceback (most recent call last):
  File "/root/ynl/lib/ynl.py", line 723, in _decode
    attr_spec = attr_space.attrs_by_val[attr.type]
                ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 4

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/./ynl/cli.py", line 114, in <module>
    main()
  File "/root/./ynl/cli.py", line 109, in main
    ynl.check_ntf()
  File "/root/ynl/lib/ynl.py", line 930, in check_ntf
    self.handle_ntf(decoded)
  File "/root/ynl/lib/ynl.py", line 898, in handle_ntf
    attrs = self._decode(decoded.raw_attrs, op.attr_set.name)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/ynl/lib/ynl.py", line 732, in _decode
    subdict = self._decode(NlAttrs(attr.raw), attr_spec['nested-attributes'],
search_attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/ynl/lib/ynl.py", line 726, in _decode raise Exception(f"Space
'{space}' has no attribute with value '{attr.type}'") Exception: Space 'bitset'
has no attribute with value '4'

I used set_features netlink command but all of ethtool commands are not working.
I am not a ynl expert so someone may find the issue before I do.
That would be kind!

Regards,
-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com

             reply	other threads:[~2024-10-17 16:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-17 16:05 Kory Maincent [this message]
2024-10-17 22:05 ` ynl ethtool subscribe issue Donald Hunter
2024-10-18  8:21   ` Kory Maincent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241017180551.1259bf5c@kmaincent-XPS-13-7390 \
    --to=kory.maincent@bootlin.com \
    --cc=donald.hunter@gmail.com \
    --cc=kuba@kernel.org \
    --cc=maxime.chevallier@bootlin.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox