summaryrefslogtreecommitdiff
path: root/usr/transport.h
Commit message (Collapse)AuthorAgeFilesLines
* vlan setting sync across ipv4/ipv6 for be2iscsiChris Leech2018-06-131-0/+3
| | | | | | | | | | | | be2iscsi exports two ifaces per host port for ipv4 and ipv6 network configurations. But, they need to have the same link level configuration including vlan settings. If vlan setting are modified in only one iface record, then whichever record is applied last (filesystem dependant I think) will take effect and things may not work. This change to iscsiadm applies vlan updates to all records with matching MAC addresses if a flag is set on the transport. The new transport flag is only set for be2iscsi.
* iscsid: Changes to support the new qedi transportNilesh Javali2017-02-141-0/+1
| | | | | | Signed-off-by: Manish Rangankar <manish.rangankar@cavium.com> Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com> Signed-off-by: Nilesh Javali <nilesh.javali@cavium.com>
* iscsid: Changes to support ping through iscsiuioAdheer Chandravanshi2015-12-281-0/+3
| | | | | | | These changes are done in order to support ping operation for drivers like bnx2i that use iscsiuio. Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
* fix regression in iscsi_tcp iface bindingChris Leech2015-01-121-0/+1
| | | | | | | | | | | | | The changes in "retry login for ISCSI_ERR_HOST_NOT_FOUND" caused sessions using the iscsi_tcp transport bound to a network iface to fail to connect due to the host lookup failing (iscsi_tcp hosts are dynamically allocated per-session). This marks transports that use a host fixed to a hardware offload device with "bind_ep_required" and only requires a host lookup before starting the connection if this flag is set. Signed-off-by: Chris Leech <cleech@redhat.com>
* iscsiadm : make iface.ipaddress optional in iface configs for transports ↵Anish Bhatt2014-07-311-0/+6
| | | | | | | that don't have a hard requirement on it. v2: cxgb4i changed to NOT_REQ as set ipaddress is not supported Signed-off-by: Anish Bhatt <anish@chelsio.com>
* ISCSID: Added the extraction of the session boot infoEddie Wai2013-09-121-0/+1
| | | | | | | | | | | This patch does the work to extract the corresponding <boot_root>->ethernetN net params as specified from the kernel session boot_nic sysfs entry based on the transport param use_boot_info. This is only populated for iscsi_tcp and bnx2i. Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
* ISCSID: Added socket communication hooks for uipMike Christie2013-05-281-0/+3
| | | | | | | | | | | | | From Eddie Wai: This patch adds the communication path between iscsid->iscsiuio. It utilizes the set_net_config func ptr in the iscsi_transport_template to initiate the callbacks. Two new files are introduced: uip_mgmt_ipc.h and uip_mgmt_ipc.c Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
* iscsi tools: have iscsiadm load offload modulesMike Christie2012-03-221-0/+1
| | | | | | | This has iscsiadm load the offload modules that do not have pci tables (bnx2i, cxgb3i, cxgb4i) when iscsiadm -m iface is run.
* iscsi tools: have iscsid/iscsiadm load modules as neededMike Christie2012-03-221-0/+1
| | | | | | | Instead of having the init scripts load all the modules this patch has iscsiadm/iscsistart/iscsid load the module in the iface.transport_name field when the module is requested.
* iscsid: add flag to indicate if driver needs iscsid to set ipMike Christie2009-08-241-0/+5
| | | | | | | | | | | | | We were deciding if we need to set net params based on if the iface ipaddress is set. This instead adds a flag, so we can warn users about not setting the ip address properly when needed. This also fixes a bug in iscsid session sync up where we were reading in the ip address and then it got used for binding, when it was not requested. The binding would fail because we do not support software binding by ip and the iscsid restart up would fail.
* iscsid: add per transport init callbackMike Christie2009-05-201-0/+1
| | | | | | cxgb3i can only support 15360 or smaller. This patch adds a callback to the transport so that drivers can override the default settings or do any other setup they may need to do before we try to login.
* break up iface code and add default iser, tcp/default and bnx2i ifacesMike Christie2008-04-201-3/+3
| | | | | | | | | | This patch moves the iface code to iface.c/.h. It also adds some default ifaces for iser and bnx2i. Currently if those modules are loaded then we will bind to them along with default/tcp when discovery is run. The user can then set the startup flag or delete the record. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
* Rename iface.name to iface.hwaddress and make transport name part of the ↵mnc2007-04-241-0/+11
| | | | | | iface (driver and hardware are bound). Also merge the -D and -I arguments so they are now -I driver,hwaddress. Also add some basic qla4xxx support. We can rescan/scan it and perform sendtargets through it but it stores the targets it finds in Flash and then logs into all of them autmatically (when we do discovery and later when reload the driver). So qla4xxx support is mostly to make sure we have the --interfae argument right. We will have to decide how to set other params, manage nodes, and if we should move scanning to the kernel and then also move some error recovery code to the kernel (today qla4xxx is calling block directly and is not able to export it iscsi state yet (the beginnings to fix that is in the git tree but we still need to reduce some code duplcation)). qla4xxx behavior and functionality is going to change as we learn more about the hw (what format the flash data is supposed to be in for example). git-svn-id: svn://svn.berlios.de/open-iscsi@816 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* use kernel list functions in almost all places (not queue.c yet), and fix ↵mnc2007-04-241-3/+3
| | | | | | some print output git-svn-id: svn://svn.berlios.de/open-iscsi@815 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* add -m session --info commandmnc2006-11-221-0/+16
| | | | git-svn-id: svn://svn.berlios.de/open-iscsi@734 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* if multiple transports are loaded we try to sync sessions multple times due ↵mnc2006-09-061-1/+9
| | | | | | to a broken loop in iscsid.c git-svn-id: svn://svn.berlios.de/open-iscsi@691 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* forgot to svn add transport.h. Thanks Albertmnc2006-04-131-0/+11
git-svn-id: svn://svn.berlios.de/open-iscsi@541 d7303112-9cec-0310-bdd2-e83a94d6c2b6