tools: ynl-gen: move the response reading logic into YNL
authorJakub Kicinski <kuba@kernel.org>
Fri, 2 Jun 2023 02:35:45 +0000 (19:35 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 3 Jun 2023 05:10:47 +0000 (22:10 -0700)
commitdc0956c98f110ef0ff9c9c9cf150b8410a2a4200
tree446ed78b955463cf272f1568253d5ba9c98e26de
parent21b6e302789c412bdde84439b9325c76e2a5c428
tools: ynl-gen: move the response reading logic into YNL

We generate send() and recv() calls and all msg handling for
each operation. It's a lot of repeated code and will only grow
with notification handling. Call back to a helper YNL lib instead.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/ynl-gen-c.py