refactor the cmd_exec()
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest posting 2/23 patches 2 repliesIn review
- v2 posting 1/23 patches 5 repliesSuperseded
- v12 patches 4 repliesSuperseded
Patches in v2 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | netns: switch netns in the child when executing commandsinclude/ ip/ ip/ +2 more | +25 | 0 replies | |
| 2/3 | ip vrf: use hook to change VRF in the childip/ | +8 | 0 replies | |
| 3/3 | netns: make netns_{save,restore} staticinclude/ ip/ ip/ +1 more | +31 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH iproute2 v2 0/3] refactor the cmd_exec()
Refactor the netns and ipvrf code so less steps are needed to exec commands in a netns or a VRF context.
Also remove some code which became dead. bloat-o-meter shows a tiny saving.
Matteo Croce (3):
netns: switch netns in the child when executing commands ip vrf: use hook to change VRF in the child
netns: make netns_{save,restore} static
include/namespace.h | 2 -- include/utils.h | 6 ++--- ip/ip.c | 1 - ip/ipnetns.c | 61 ++++++++++++++++++++++++++++++++++----------- ip/ipvrf.c | 12 ++++++--- lib/exec.c | 7 +++++- lib/namespace.c | 31 ----------------------- lib/utils.c | 27 -------------------- 8 files changed, 63 insertions(+), 84 deletions(-)
Signature · 1 line
2.21.0