+63
−14
Loading
To test iSCSI login redirection feature, we need multiple IP addresses for target application. Furthermore, it is nice if multiple iSCSI target applications run. This patch creates such network virtually using veth device and ether bridge but keeps compatibility even after this patch. Create three veth interface pairs and one bridge. One pair is for initiator and two pairs are for targets, and all pairs are added to the same bridge. Create two network namespaces for targets and add one pair to the first namespace and add another pair to the second namespace. Namespace is not created for initiator. Necessary connectivity is tested using ping after creation. iSCSI login redirection test code will follow. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: If0ca7b4a7af652602f3d6a7ea5669a06ce41a5f1 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3887 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com>