]> git.proxmox.com Git - mirror_iproute2.git/commit
Unify batch processing across tools
authorPetr Machata <me@pmachata.org>
Thu, 12 Nov 2020 22:24:38 +0000 (23:24 +0100)
committerDavid Ahern <dsahern@gmail.com>
Sat, 14 Nov 2020 02:43:15 +0000 (19:43 -0700)
commit1d9a81b8c9f30f9f4abeb875998262f61bf10577
treef919e1978eb775f9ca759914a20a87faaf802663
parent51f28eb928d490d0e1f858e43949a439bf75e9a5
Unify batch processing across tools

The code for handling batches is largely the same across iproute2 tools.
Extract a helper to handle the batch, and adjust the tools to dispatch to
this helper. Sandwitch the invocation between prologue / epilogue code
specific for each tool.

Signed-off-by: Petr Machata <me@pmachata.org>
Signed-off-by: David Ahern <dsahern@gmail.com>
bridge/bridge.c
devlink/devlink.c
include/utils.h
ip/ip.c
lib/utils.c
rdma/rdma.c
tc/tc.c