Skip to content

Commit ae9981f

Browse files
sheldnwukuba-moo
authored andcommitted
ynl-gen-cpp: add support for generating ovs_flow
Summary: Enable ovs_flow code generation and fix compile failure Backport from net-next record information about recursive struct. Forward declarations if child struct in nested struct is define after it. Recursive types are stored as vector not option, update attr_put and _attr_get to handle it correctly net-next: tools: ynl-gen: record information about recursive nests(commit 38329fcfb757b8215c07a77b6657721cc7e9530e) Test Plan: make sure code could be generated and compiled Signed-off-by: Sheldon Wu <xzw2048@gmail.com>
1 parent 4c2cd98 commit ae9981f

File tree

4 files changed

+2413
-20
lines changed

4 files changed

+2413
-20
lines changed

generated/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ GENS_PATHS=$(shell grep -nrI --files-without-match \
1717
'protocol: netlink' ../Documentation/netlink/specs/)
1818
GENS_PATHS+=$(wildcard ../Documentation/netlink/specs/rt-*.yaml)
1919
GENS_ALL=$(patsubst ../Documentation/netlink/specs/%.yaml,%,${GENS_PATHS})
20-
GENS=$(filter-out ovs_flow nlctrl,${GENS_ALL})
20+
GENS=$(filter-out nlctrl,${GENS_ALL})
2121
SRCS=$(patsubst %,%-user.cpp,${GENS})
2222
HDRS=$(patsubst %,%-user.hpp,${GENS})
2323
OBJS=$(patsubst %,%-user.cpp.o,${GENS})

0 commit comments

Comments
 (0)