nvmf/tcp: fix wrong judgement of ipv6.
Here should check spdk_sock_is_ipv6. Signed-off-by: dongx.yi <dongx.yi@intel.com> Change-Id: I828c322b79f6d1ac3f9e004d6062358c1d567d4e Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478142 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Alexey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
82f60376ae
commit
6b5f764856
@ -2679,7 +2679,7 @@ spdk_nvmf_tcp_qpair_get_trid(struct spdk_nvmf_qpair *qpair,
|
||||
|
||||
if (spdk_sock_is_ipv4(tqpair->sock)) {
|
||||
trid->adrfam = SPDK_NVMF_ADRFAM_IPV4;
|
||||
} else if (spdk_sock_is_ipv4(tqpair->sock)) {
|
||||
} else if (spdk_sock_is_ipv6(tqpair->sock)) {
|
||||
trid->adrfam = SPDK_NVMF_ADRFAM_IPV6;
|
||||
} else {
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user