For the case when iscsid is invoked for the first time after pivot root during iSCSI boot, the boot connection would fail to re-connect if the ibft/iscsi_boot sysfs entry contains tagged vlan.
The problem was caused by the lack of such info in the iscsi_session sysfs for sync_session to inherit from. The enclosed patchset does the following: 1. Extract and save the ibft->ethernetN name to the boot_context->boot_nic 2. Pass the boot_nic info to be saved to the sessionN sysfs 3. Extract the sessionN boot_nic sysfs info and retrieve the corresponding net params This 'boot_nic' kernel session sysfs entry will only be present for ibft boot. Corresponding kernel drivers will have to add the ISCSI_PARAM_BOOT_NIC attribute to its attr_is_visible table. The last patch provides the fix for the unconditional overwrite of the iface struct even after the ibft net info was already extracted. Please review. Thanks. Eddie Eddie Wai (4): ISCSISTART: Saved ibft ethernetN to the session sysfs LIBISCSI: Added boot_nic session sysfs ISCSID: Added the extraction of the session boot_nic info ISCSID: Added iface content override fix include/fw_context.h | 1 + include/iscsi_if.h | 3 +++ kernel/libiscsi.c | 6 ++++++ kernel/libiscsi.h | 2 ++ kernel/scsi_transport_iscsi.c | 2 ++ usr/config.h | 1 + usr/idbm.c | 2 ++ usr/initiator_common.c | 6 +++++- usr/iscsi_sysfs.c | 25 ++++++++++++++++++++++++- usr/iscsid.c | 8 +++----- utils/fwparam_ibft/fwparam_sysfs.c | 4 ++++ 11 files changed, 53 insertions(+), 7 deletions(-) -- 1.7.7.4 -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to open-iscsi@googlegroups.com. To unsubscribe from this group, send email to open-iscsi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.