target/iscsi: Replace conn->login_ip with login_sockaddr
authorAndy Grover <agrover@redhat.com>
Mon, 24 Aug 2015 17:26:05 +0000 (10:26 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 27 Aug 2015 06:27:20 +0000 (23:27 -0700)
commitdc58f760e2e1f8f2265b581d35f211415c4fee0c
tree51c9f16dbef07bd5a931a12a026661e606b865b0
parent69d755747d31c07a416064f251c2f408938fb67a
target/iscsi: Replace conn->login_ip with login_sockaddr

Very similar to how it went with local_sockaddr.

It was embedded in iscsi_login_stats so some changes there, and we needed
to copy in a sockaddr_storage comparison function. Hopefully the kernel
will get a standard one soon, our implementation makes the 3rd.

isert_set_conn_info() became much smaller.

IPV6_ADDRESS_SPACE define goes away, had to modify a call to in6_pton(),
can just use -1 since we are sure string is null-terminated.

Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c
drivers/target/iscsi/iscsi_target_configfs.c
drivers/target/iscsi/iscsi_target_login.c
drivers/target/iscsi/iscsi_target_stat.c
drivers/target/iscsi/iscsi_target_util.c
include/target/iscsi/iscsi_target_core.h
include/target/iscsi/iscsi_target_stat.h