Whamcloud - gitweb
LU-5875 lnet: return -EEXIST if NI is not unique 56/13056/6
authorAmir Shehata <amir.shehata@intel.com>
Fri, 12 Dec 2014 22:43:03 +0000 (14:43 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 19 Jan 2015 17:54:08 +0000 (17:54 +0000)
commit7d63c00e24d77d931642ce6cf5e8ff4cc2cad255
treece29a9026c36e9a68279566cc01f63860eefccd9
parent4aebc21514f49453aeeca83c6f6279d473d61617
LU-5875 lnet: return -EEXIST if NI is not unique

Return -EEXIST and not -EINVAL when trying to add a
network interface which is not unique.

Some minor cleanup in api-ni.c

Signed-off-by: Amir Shehata <amir.shehata@intel.com>
Change-Id: Ic74a768c0e7688ba0e35740e2ca2ac9ae4f999ea
Reviewed-on: http://review.whamcloud.com/13056
Tested-by: Jenkins
Reviewed-by: Isaac Huang <he.huang@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/lnet/api-ni.c