linux-stable/tools/net/ynl/lib
Arkadiusz Kubalewski fcbfd96a1e tools: ynl-gen: fix enum index in _decode_enum(..)
[ Upstream commit d7ddf5f426 ]

Remove wrong index adjustment, which is leftover from adding
support for sparse enums.
enum.entries_by_val() function shall not subtract the start-value, as
it is indexed with real enum value.

Fixes: c311aaa74c ("tools: ynl: fix enum-as-flags in the generic CLI")
Signed-off-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20230725101642.267248-2-arkadiusz.kubalewski@intel.com
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-03 10:25:53 +02:00
..
.gitignore tools: net: add __pycache__ to gitignore 2023-02-24 11:55:47 -08:00
__init__.py tools: ynl: move the enum classes to shared code 2023-03-08 23:28:21 -08:00
nlspec.py tools: ynl: ethtool testing tool 2023-03-30 23:29:57 -07:00
ynl.py tools: ynl-gen: fix enum index in _decode_enum(..) 2023-08-03 10:25:53 +02:00