Skip to content

dpll: do not fail on interrupted dumps

Petr Oros netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mnl_utils: add a dump helper for NLM_F_DUMP_INTRinclude/mnl_utils.h lib/mnl_utils.c+56 -71 reply
2/2dpll: warn about interrupted dumpsdpll/dpll.c+23 -140 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchIvan Vecera
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH iproute2-next 0/2] dpll: do not fail on interrupted dumps

A dpll device or pin dump that races with a registration or an unregistration ends today as a failed command with a part of the list on the output. This series makes the tool behave the way ip does in the same situation. The whole dump is printed and a warning on stderr says that it may be inconsistent.

The handling is added to mnl_utils as a separate helper that a caller has to ask for, so the other users of mnlu_gen_socket keep their current behaviour and can be converted one by one later. The helper only reports the interruption. Whether to repeat the dump or to warn is left to the caller, and dpll warns.

Petr Oros (2):
mnl_utils: add a dump helper for NLM_F_DUMP_INTR
dpll: warn about interrupted dumps

 dpll/dpll.c         | 37 ++++++++++++++++++-----------
 include/mnl_utils.h |  5 ++++
 lib/mnl_utils.c     | 58 +++++++++++++++++++++++++++++++++++++++------
 3 files changed, 79 insertions(+), 21 deletions(-)
Signature · 1 line
2.56.0