Skip to content

Commit c24d866

Browse files
committed
Use crud op for render ntf entry
The notification op should use crud-style op when it is classic netlink-raw family. Signed-off-by: Zibo Gong <gongzib@outlook.com>
1 parent 31a1639 commit c24d866

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ynl-gen-cpp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2233,6 +2233,8 @@ def policy_should_be_static(family):
22332233

22342234

22352235
def _render_user_ntf_entry(ri, op):
2236+
if ri.family.is_classic():
2237+
op = ri.family.req_by_value[op.rsp_value]
22362238
ri.cw.p(f"arr[{op.enum_name}].policy\t\t= &{ri.struct['reply'].render_name}_nest;")
22372239
ri.cw.p(f"arr[{op.enum_name}].cb\t\t= {op_prefix(ri, 'reply', deref=True)}_parse;")
22382240
# ri.cw.p(f"arr[{op.enum_name}].alloc_sz\t= sizeof({type_name(ri, 'event')});")

0 commit comments

Comments
 (0)