[openib-general] sdp: cant unload ib_ipoib module

Hal Rosenstock halr at voltaire.com
Thu Aug 4 07:45:53 PDT 2005


Hi Tom,

On Tue, 2005-08-02 at 14:36, Tom Duffy wrote: 
> On Tue, 2005-08-02 at 16:08 +0300, Hal Rosenstock wrote:
> > This was reported back a while ago. The simplest scenario I have found to reproduce this is as follows:
> > 
> > After using SDP, and unload SDP and then unload IPoIB and
> > got the following:
> > 
> > unregister_netdevice: waiting for ib0 to become free. Usage count = 1
> > 
> > The simplest way I found to recreate this is:
> > 1. Bring up IPoIB and then SDP
> > 2. Run tcp.aio.x -t <local IPoIB address>
> > (no server/receiver)
> > 3. Wait for connection refused
> > 4. Unload SDP and then IPoIB
> 
> [root at flopteron2 ~]# modprobe ib_ipoib
> ip_tables: (C) 2000-2002 Netfilter core team
> [root at flopteron2 ~]# ifconfig ib0 192.168.0.26 up
> [root at flopteron2 ~]# ping 192.168.0.0 -b
> WARNING: pinging broadcast address
> PING 192.168.0.0 (192.168.0.0) 56(84) bytes of data.
> 64 bytes from 192.168.0.26: icmp_seq=0 ttl=64 time=0.057 ms
> 64 bytes from 192.168.0.233: icmp_seq=0 ttl=64 time=0.159 ms (DUP!)
> <-- snip -->
> [root at flopteron2 rc]# modprobe ib_sdp
> [root at flopteron2 ~]# ./ttcp -t -l 65536 -n 100000 -a 20 localhost -p
> 5002
> ttcp-t: buflen = 65536 nbuf = 100000 align = 16384/0 port = 5002
> localhost
> ttcp-t: socket
> ttcp-t: connect: Connection refused
> errno=111
> [root at flopteron2 ~]# rmmod ib_sdp
> [root at flopteron2 ~]# rmmod ib_ipoib
> [root at flopteron2 ~]#
> 
> I can even shoot stuff over the wire and not have unload issues.
> 
> What is the problem?  

Not sure why it doesn't occur for you.

> Perhaps you need my sdp_inet_port_put() patch?

Yes, this was from before that patch but I thought that patch was to
resolve an oops with port reuse. I don't see the relation between the
two. Is this not the case ?

-- Hal




More information about the general mailing list