tools: ynl: Add missing types to encode/decode
authorMichal Michalik <michal.michalik@intel.com>
Fri, 24 Mar 2023 17:52:58 +0000 (18:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Mar 2023 07:53:03 +0000 (08:53 +0100)
commitdd3a7d58dcc2434632bed31683ff134b7d6d1da4
tree6133dfae2e223565dd0adb35748ac9e8449950eb
parentfe5b9907ba995946c30c90111886b856ff86d362
tools: ynl: Add missing types to encode/decode

While testing the tool I noticed we miss the u16 type on payload create.
On the code inspection it turned out we miss also u64 - add them.

We also miss the decoding of u16 despite the fact `NlAttr` class
supports it - add it.

Signed-off-by: Michal Michalik <michal.michalik@intel.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/net/ynl/lib/ynl.py