mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-25 00:52:45 -04:00
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>
This commit is contained in:
committed by
Nicholas Bellinger
parent
76c28f1fcf
commit
69d755747d
@@ -344,8 +344,8 @@ static void lio_target_call_delnpfromtpg(
|
||||
|
||||
se_tpg = &tpg->tpg_se_tpg;
|
||||
pr_debug("LIO_Target_ConfigFS: DEREGISTER -> %s TPGT: %hu"
|
||||
" PORTAL: %pISc:%hu\n", config_item_name(&se_tpg->se_tpg_wwn->wwn_group.cg_item),
|
||||
tpg->tpgt, &tpg_np->tpg_np->np_sockaddr, tpg_np->tpg_np->np_port);
|
||||
" PORTAL: %pISpc\n", config_item_name(&se_tpg->se_tpg_wwn->wwn_group.cg_item),
|
||||
tpg->tpgt, &tpg_np->tpg_np->np_sockaddr);
|
||||
|
||||
ret = iscsit_tpg_del_network_portal(tpg, tpg_np);
|
||||
if (ret < 0)
|
||||
|
||||
Reference in New Issue
Block a user