From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael Chan" Subject: Re: [PATCH 3/3] bnx2i: Add bnx2i iSCSI driver. Date: Tue, 27 May 2008 12:17:54 -0700 Message-ID: <1211915874.18326.101.camel@dell> References: <1211418386-18203-1-git-send-email-mchan@broadcom.com> <1211418386-18203-4-git-send-email-mchan@broadcom.com> <1211578969.26900.5.camel@dhcp-10-13-110-217.broadcom.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: "Anil Veerabhadrappa" , "David Miller" , michaelc@cs.wisc.edu, netdev , linux-scsi@vger.kernel.org, open-iscsi@googlegroups.com To: "Roland Dreier" Return-path: In-Reply-To: Sender: linux-scsi-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Tue, 2008-05-27 at 07:38 -0700, Roland Dreier wrote: > > 'bnx2id' is the user component in this solution. bnx2id daemon uses > > socket calls to bind tcp ports in high range and hands them over to > > driver. This is how iscsi driver tries to solve tcp port collision > > issue. User daemon communicates with the driver using sysfs and tcp port > > related functions are bnx2i_read_tcp_portd_*/bnx2i_write_tcp_portd_* > > (reference: bnx2i_sysfs.c) > > So you are creating sockets just to reserve TCP ports to avoid host > stack clashes with your offload engine? Wasn't this approach strongly > rejected (in the context of iWARP) in the past? > We're doing it in userspace, so I don't if that makes it any better or any worse. Roland, what do you suggest? We can do it like cma_alloc_any_port() in cma.c.