On 03/02/2010 02:42 PM, Or Gerlitz wrote:
Mike Christie<[email protected]>  wrote:

If the device name and port do not change normally that seems better to
me since it works like the other drivers

just to be on the same page, when you say the other drivers
(=transports) this doesn't include tcp, correct? for the tcp what's

Ok let me clarify one other thing too. With the network layer we get a ethX, or whatever you set up your udev rules to use, for each port. That is what I am saying above represents the device name and port. The iscsi drivers that interact with the linux net layer like bnx2i, cxgb3i and iscsi_tcp supports using the netdevice name (same name you see in /sys/class/net or ifconfig) for iscsi iface binding.



supported in the --net-- device name such that a BINDTODEVICE
setsockopt is done to bind the socket to this netdevice.

We are talking about the iscsi iface.net_ifacename param right? It is the name you see in sysfs or in ifconfig. You set it to iface.net_ifacename and it gets passed directly down to in the BINDTODEVICE setsockopt.


For drivers that do not have a netdevice name because they do not interact with the network layer (they have an entire net stack in firmware) we use the MAC. So this includes qla4xxx and be2iscsi, and iscsi_tcp also supports this. In that case we loop over the net interfaces and match the MAC with a ethX and then pass that to BINDTODEVICE setsockopt.



As for the IB device name and port number, indeed they don't change
normally, but OTOH the rdma-cm api which iser is using is IP base and
reolves IB local/remote addresses (= GUIDs which relate to
devices/ports) from IP addresses/routing rules and not the other way
around.

I understand using IP is a bit problematic when DHCP is used for the
initiator, let me think about that a bit, thanks

Or.


--
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to