[PATCH net-next 4/6] selftests: forwarding: lib: Extract interface-init functions