Re: [PATCH net-next v2 2/7] tools: ynl: copy netlink error to NlError

2024-04-04 Thread Petr Machata
Jakub Kicinski writes: > Typing e.nl_msg.error when processing exception is a bit tedious > and counter-intuitive. Set a local .error member to the positive > value of the netlink level error. > > Signed-off-by: Jakub Kicinski Reviewed-by: Petr Machata

[PATCH net-next v2 2/7] tools: ynl: copy netlink error to NlError

2024-04-02 Thread Jakub Kicinski
Typing e.nl_msg.error when processing exception is a bit tedious and counter-intuitive. Set a local .error member to the positive value of the netlink level error. Signed-off-by: Jakub Kicinski --- CC: donald.hun...@gmail.com CC: j...@resnulli.us --- tools/net/ynl/lib/ynl.py | 3 ++- 1 file