|
|
36622c |
From: Chris Leech <cleech@redhat.com>
|
|
|
36622c |
Subject: iscsiuio: allow ARP for non-matching src and dst addresses
|
|
|
36622c |
|
|
|
36622c |
Bugzilla: ZZZ
|
|
|
36622c |
Upstream Status:
|
|
|
36622c |
Build Info: XXX
|
|
|
36622c |
Tested:
|
|
|
36622c |
|
|
|
36622c |
commit e43d687dc23e66c609491f9bfa8d8f29be7ef72d
|
|
|
36622c |
Author: Nilesh Javali <nilesh.javali@cavium.com>
|
|
|
36622c |
Date: Thu Feb 22 07:25:58 2018 -0500
|
|
|
36622c |
|
|
|
36622c |
iscsiuio: allow ARP for non-matching src and dst addresses
|
|
|
36622c |
|
|
|
36622c |
For source and destination IP addresses in different
|
|
|
36622c |
networks, continue with the ARP retries and further login process
|
|
|
36622c |
instead of assuming abrupt failure. iSCSI offload adapters may not rely on
|
|
|
36622c |
netmask information for successful iSCSI target login.
|
|
|
36622c |
|
|
|
36622c |
Signed-off-by: Nilesh Javali <nilesh.javali@cavium.com>
|
|
|
36622c |
---
|
|
|
36622c |
iscsiuio/src/unix/libs/cnic.c | 5 ++---
|
|
|
36622c |
1 file changed, 2 insertions(+), 3 deletions(-)
|
|
|
36622c |
|
|
|
36622c |
diff --git a/iscsiuio/src/unix/libs/cnic.c b/iscsiuio/src/unix/libs/cnic.c
|
|
|
36622c |
index a009f25f0814..32166edf243f 100644
|
|
|
36622c |
--- a/iscsiuio/src/unix/libs/cnic.c
|
|
|
36622c |
+++ b/iscsiuio/src/unix/libs/cnic.c
|
|
|
36622c |
@@ -362,9 +362,8 @@ int cnic_handle_ipv4_iscsi_path_req(nic_t *nic, int fd,
|
|
|
36622c |
&nic_iface->ustack.default_route_addr,
|
|
|
36622c |
sizeof(dst_addr));
|
|
|
36622c |
} else {
|
|
|
36622c |
- arp_retry = MAX_ARP_RETRY;
|
|
|
36622c |
- LOG_DEBUG(PFX "%s: no default", nic->log_name);
|
|
|
36622c |
- goto done;
|
|
|
36622c |
+ LOG_DEBUG(PFX "%s: no default route address",
|
|
|
36622c |
+ nic->log_name);
|
|
|
36622c |
}
|
|
|
36622c |
}
|
|
|
36622c |
arp_retry = 0;
|