Commit eab7be68 authored by Jiri Pirko's avatar Jiri Pirko Committed by Jakub Kicinski

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: default avatarJiri Pirko <jiri@nvidia.com>
Reviewed-by: default avatarJakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20230803111340.1074067-4-jiri@resnulli.usSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent dc7b81a8
...@@ -2317,7 +2317,7 @@ def main(): ...@@ -2317,7 +2317,7 @@ def main():
return return
supported_models = ['unified'] supported_models = ['unified']
if args.mode == 'user': if args.mode in ['user', 'kernel']:
supported_models += ['directional'] supported_models += ['directional']
if parsed.msg_id_model not in supported_models: if parsed.msg_id_model not in supported_models:
print(f'Message enum-model {parsed.msg_id_model} not supported for {args.mode} generation') print(f'Message enum-model {parsed.msg_id_model} not supported for {args.mode} generation')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment