ynl-gen-c.py: allow directional model for kernel mode
authorJiri Pirko <jiri@nvidia.com>
Thu, 3 Aug 2023 11:13:31 +0000 (13:13 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Aug 2023 21:03:01 +0000 (14:03 -0700)
commiteab7be688b4416588d19ee1fe5edbfa79a639b42
treeb5959d74652f36d269100731d055253185ff9085
parentdc7b81a828db0d9801e7977edff2735d660937a8
ynl-gen-c.py: allow directional model for kernel mode

Directional model limitation is only applicable for uapi mode.
For kernel mode, the code is generated correctly using right cmd values
for do/dump requests. Lift the limitation.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20230803111340.1074067-4-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/ynl-gen-c.py