[PATCH net-next v2 5/6] selftests: drv-net: construct environment for running tests which require an endpoint