Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Aug 2016 07:03:07 +0000
From:      KrishnamRaju ErapaRaju <Krishna2@chelsio.com>
To:        Alex Bowden <alex.bowden@outlook.com>, "freebsd-infiniband@freebsd.org" <freebsd-infiniband@freebsd.org>
Subject:   RE: Set non blocking on /dev/rdma_cm
Message-ID:  <BN4PR12MB081885693F06A5B5666629D494140@BN4PR12MB0818.namprd12.prod.outlook.com>
In-Reply-To: <DM2PR05MB75118A2E53E97548A432608F7130@DM2PR05MB751.namprd05.prod.outlook.com>
References:  <DM2PR05MB75118A2E53E97548A432608F7130@DM2PR05MB751.namprd05.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Alex,=20


I too faced the same issue earlier.  But could not look into it/report it d=
ue to other priorities.

Hans, if you have root caused it please point me to the patch, few of my ap=
ps uses O_NONBLOCK.


Thanks,
Krishna.

-----Original Message-----
From: owner-freebsd-infiniband@freebsd.org [mailto:owner-freebsd-infiniband=
@freebsd.org] On Behalf Of Alex Bowden
Sent: Wednesday, August 17, 2016 1:54 AM
To: freebsd-infiniband@freebsd.org
Subject: Set non blocking on /dev/rdma_cm

Hi all,


I've modified rping to set O_NONBLOCKING on /dev/rdma_cm on the event chann=
el (rdma_create_event_channel) which fails like this:


  9997 rping    CALL  openat(AT_FDCWD,0x800a42708,0x100002<O_RDWR|O_CLOEXEC=
>,<unused>0)
  9997 rping    NAMI  "/dev/rdma_cm"
  9997 rping    RET   openat 3
  ..snip..

  9997 rping    CALL  fcntl(0x3,F_SETFL,0x6<O_RDWR|O_NONBLOCK>)
  9997 rping    RET   fcntl -1 errno 25 Inappropriate ioctl for device

Is this not supported for some reason? This is with the latest OFED v3.2 pa=
tches by Hans.

The manpage for rdma_create_event_channel seems to state you can set non-bl=
ocking on it.

-Alex

_______________________________________________
freebsd-infiniband@freebsd.org mailing list https://lists.freebsd.org/mailm=
an/listinfo/freebsd-infiniband
To unsubscribe, send any mail to "freebsd-infiniband-unsubscribe@freebsd.or=
g"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BN4PR12MB081885693F06A5B5666629D494140>