Blame SOURCES/0001-iscsid-Update-boot-gateway-information-during-sync_s.patch

3d2430
From d295d0745829f9eee1f4f0e1e3328f9bb4f2dc16 Mon Sep 17 00:00:00 2001
3d2430
From: Manish Rangankar <manish.rangankar@cavium.com>
3d2430
Date: Wed, 20 Jun 2018 16:19:24 +0530
3d2430
Subject: [PATCH 1/1] iscsid: Update boot gateway information during
3d2430
 sync_session.
3d2430
3d2430
During boot for SAN scenario after switch root iscsid not
3d2430
passing gateway information to iscsiuio.
3d2430
3d2430
Signed-off-by: Manish Rangankar <manish.rangankar@cavium.com>
3d2430
---
3d2430
 usr/iscsi_sysfs.c | 5 +++++
3d2430
 1 file changed, 5 insertions(+)
3d2430
3d2430
diff --git a/usr/iscsi_sysfs.c b/usr/iscsi_sysfs.c
3d2430
index fdc26c7..8e89b30 100644
3d2430
--- a/usr/iscsi_sysfs.c
3d2430
+++ b/usr/iscsi_sysfs.c
3d2430
@@ -706,6 +706,11 @@ static int iscsi_sysfs_read_boot(struct iface_rec *iface, char *session)
3d2430
 		log_debug(5, "could not read %s/%s/subnet", boot_root,
3d2430
 			  boot_nic);
3d2430
 
3d2430
+	if (sysfs_get_str(boot_nic, boot_root, "gateway",
3d2430
+			  iface->gateway, NI_MAXHOST))
3d2430
+		log_debug(5, "could not read %s/%s/gateway", boot_root,
3d2430
+			  boot_nic);
3d2430
+
3d2430
 	log_debug(5, "sysfs read boot returns %s/%s/ vlan = %d subnet = %s",
3d2430
 		  boot_root, boot_nic, iface->vlan_id, iface->subnet_mask);
3d2430
 	return 0;
3d2430
-- 
3d2430
2.21.0
3d2430