]> git.baikalelectronics.ru Git - kernel.git/commit
target/iscsi: Keep local_ip as the actual sockaddr
authorAndy Grover <agrover@redhat.com>
Mon, 24 Aug 2015 17:26:04 +0000 (10:26 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 27 Aug 2015 06:27:16 +0000 (23:27 -0700)
commitd2b37607bd40175f750b41f6216a26c562f83ac6
treea3a4e17c1d5ddb6c2e9b5ef62a3ffeb505921058
parentd0cde961533f54f9a36e1ec77e808e9abd6cf8f5
target/iscsi: Keep local_ip as the actual sockaddr

This is a more natural format that lets us format it with the appropriate
printk specifier as needed.

This also lets us handle v4-mapped ipv6 addresses a little more nicely, by
storing the addr as an actual v4 sockaddr in conn->local_sockaddr.

Finally, we no longer need to maintain variables for port, since this is
contained in sockaddr. Remove iscsi_np.np_port and iscsi_conn.local_port.

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.c
drivers/target/iscsi/iscsi_target_configfs.c
drivers/target/iscsi/iscsi_target_login.c
drivers/target/iscsi/iscsi_target_tpg.c
include/target/iscsi/iscsi_target_core.h