Re: [ofa-general] NetEffect, iw_nes and kernel warning

2009-01-27 Thread Stephen Hemminger
On Tue, 27 Jan 2009 16:07:50 -0800 (PST) David Miller wrote: > From: Roland Dreier > Date: Tue, 27 Jan 2009 15:53:16 -0800 > > > but actually I still don't see how it's safe for a net driver to > > call skb_linearize() from its transmit routine, since there's a > > chance that that will uncondi

Re: [ofa-general] NetEffect, iw_nes and kernel warning

2009-01-27 Thread David Miller
From: Roland Dreier Date: Tue, 27 Jan 2009 15:53:16 -0800 > but actually I still don't see how it's safe for a net driver to > call skb_linearize() from its transmit routine, since there's a > chance that that will unconditionally enable BHs? It's simply not allowed. dev_queue_xmit() at a highe

Re: [ofa-general] NetEffect, iw_nes and kernel warning

2009-01-27 Thread Roland Dreier
Interesting... looks like an unfortunate interaction with unclear locking rules. See below for full explanation. BTW, what workload are you running to hit this? I assume you have CONFIG_HIGHMEM set? > WARNING: at kernel/softirq.c:136 local_bh_enable+0x9b/0xa0() I assume this is WARN_

[ofa-general] ***SPAM*** Re: [PATCH 04/21] RDS: Transport code

2009-01-27 Thread Andrew Grover
On Tue, Jan 27, 2009 at 1:56 PM, Evgeniy Polyakov wrote: >> > RDS_ prefix? >> >> Even needed for statics? > > It confuses tags and the like otherwise, and looks more consistent with > the rest of the code. Likely it is not a must, but just better look. Yup, will do, just was curious. Regards --

[ofa-general] Re: [PATCH 04/21] RDS: Transport code

2009-01-27 Thread Evgeniy Polyakov
On Tue, Jan 27, 2009 at 11:36:37AM -0800, Andrew Grover (andy.gro...@gmail.com) wrote: > On Tue, Jan 27, 2009 at 5:18 AM, Evgeniy Polyakov wrote: > > On Mon, Jan 26, 2009 at 06:17:41PM -0800, Andy Grover > > (andy.gro...@oracle.com) wrote: > >> +static LIST_HEAD(transports); > >> +static DECLARE

[ofa-general] ***SPAM*** Re: [PATCH 04/21] RDS: Transport code

2009-01-27 Thread Andrew Grover
On Tue, Jan 27, 2009 at 5:18 AM, Evgeniy Polyakov wrote: > On Mon, Jan 26, 2009 at 06:17:41PM -0800, Andy Grover > (andy.gro...@oracle.com) wrote: >> +static LIST_HEAD(transports); >> +static DECLARE_RWSEM(trans_sem); >> + > > RDS_ prefix? Even needed for statics? >> +int rds_trans_register(str

[ofa-general] Re: [PATCH 21/21] RDS: Add AF and PF #defines for RDS sockets

2009-01-27 Thread Andrew Grover
On Mon, Jan 26, 2009 at 11:27 PM, Rémi Denis-Courmont wrote: > You also need to add lock class declaration to net/core/sock.c, I believe. Very true, thanks. Regards -- Andy ___ general mailing list general@lists.openfabrics.org http://lists.openfabrics

***SPAM*** Re: [ofa-general] [PATCH 0/21] Reliable Datagram Sockets (RDS)

2009-01-27 Thread Andrew Grover
On Tue, Jan 27, 2009 at 7:34 AM, Steve Wise wrote: > Hey Andy, > > Why didn't you include the iWARP transport as well? Hi Steve, As I mentioned on IRC, there are some ib/iw coexistence issues and other minor bugs to resolve, and then I will include the iWARP code. Regards -- Andy __

[ofa-general] Re: [PATCH 02/21] RDS: Main header file

2009-01-27 Thread Andrew Grover
On Mon, Jan 26, 2009 at 11:34 PM, Rémi Denis-Courmont wrote: >> +#ifndef PF_RDS >> +#define PF_RDS AF_RDS >> +#endif > > You should probably remove that and put the last patch of your series ahead of > this one. Yup will do. >> +#ifndef SOL_RDS >> +#define SOL_RDS 272 >> +#endi

Re: [ofa-general] ***SPAM*** Re: [PATCH 02/21] RDS: Main header file

2009-01-27 Thread Steve Wise
Andrew Grover wrote: On Tue, Jan 27, 2009 at 5:05 AM, Evgeniy Polyakov wrote: +#define RDS_PORT 18634 + What will happen if some application already uses that port? RDS errors out. Yeah we're going to want to get an assigned port at some point, I guess. You should s

[ofa-general] ***SPAM*** Re: [PATCH 02/21] RDS: Main header file

2009-01-27 Thread Andrew Grover
On Tue, Jan 27, 2009 at 5:05 AM, Evgeniy Polyakov wrote: >> +#define RDS_PORT 18634 >> + > > What will happen if some application already uses that port? RDS errors out. Yeah we're going to want to get an assigned port at some point, I guess. Regards -- Andy

[ofa-general] ***SPAM*** Re: [PATCH 03/21] RDS: Congestion-handling code

2009-01-27 Thread Andrew Grover
On Mon, Jan 26, 2009 at 7:48 PM, Stephen Hemminger wrote: > So this is starting to look like another "Oracle special" like AIO > and HugeTLB. That has lots of caveat restrictions on the application. Yep it's a datacenter-centric protocol. Regards -- Andy _

[ofa-general] ***SPAM*** Re: [PATCH 03/21] RDS: Congestion-handling code

2009-01-27 Thread Andrew Grover
On Tue, Jan 27, 2009 at 5:10 AM, Evgeniy Polyakov wrote: > On Mon, Jan 26, 2009 at 06:17:40PM -0800, Andy Grover > (andy.gro...@oracle.com) wrote: >> +/* >> + * Yes, a global lock. It's used so infrequently that it's worth keeping it >> + * global to simplify the locking. It's only used in the

***SPAM*** Re: [ofa-general] ***SPAM*** rping with size over 64 bytes.

2009-01-27 Thread Jaiwant Mulik
Ah ... ok. That worked. I was not setting any parameter on the server. On Jan 27, 2009, at 1:45 PM, Steve Wise wrote: Are you setting the -S 65 on the server side as sell? IE: the parameters must match on the client and server. Jaiwant Mulik wrote: Hi all, Here is the config I am running:

[ofa-general] ***SPAM*** [PATCH] : Define debugging variables only when CONFIG_INFINIBAND_NES_DEBUG is enabled

2009-01-27 Thread Manish Katiyar
Below patch removes following compilation warnings : drivers/infiniband/hw/nes/nes_cm.c:781: warning: unused variable 'tmp_addr' drivers/infiniband/hw/nes/nes_cm.c:820: warning: unused variable 'tmp_addr' Signed-off-by: Manish Katiyar --- drivers/infiniband/hw/nes/nes_cm.c |4 1 files

Re: [ofa-general] ***SPAM*** rping with size over 64 bytes.

2009-01-27 Thread Steve Wise
Are you setting the -S 65 on the server side as sell? IE: the parameters must match on the client and server. Jaiwant Mulik wrote: Hi all, Here is the config I am running: -- OS: Linux iwarp2 2.6.20-1.2320.fc5 #1 SMP Tue Jun 12 18:50:49 EDT 2007 x86_64 x86_64 x86

[ofa-general] ***SPAM*** rping with size over 64 bytes.

2009-01-27 Thread Jaiwant Mulik
Hi all, Here is the config I am running: -- OS: Linux iwarp2 2.6.20-1.2320.fc5 #1 SMP Tue Jun 12 18:50:49 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux OFED: 1.3.1 librdmacm: 1.0.7 hw: Chelsio 302X --- ulimit -l is set to 128 rping does not work

[ofa-general] Re: [PATCH] infiniband-diags/ibsysstat: use RMPP for client/server communication

2009-01-27 Thread Sasha Khapyorsky
Hi Hal, On 11:10 Tue 27 Jan , Hal Rosenstock wrote: > > Just because the class allows RMPP doesn't mean all operations use it Ok, agree. But obviously it doesn't mean that RMPP should not be used. So I think we are fine now. > so no this wasn't a bug IMO. It was done that way for extensibil

Re: [ofa-general] Re: [PATCH 06/21] RDS: Connection handling

2009-01-27 Thread Steve Wise
Oliver Neukum wrote: Am Tuesday 27 January 2009 14:34:19 schrieb Evgeniy Polyakov: On Mon, Jan 26, 2009 at 06:17:43PM -0800, Andy Grover (andy.gro...@oracle.com) wrote: +static inline int rds_conn_is_sending(struct rds_connection *conn) +{ + int ret = 0; + + if (!mutex_tryl

[ofa-general] Re: [PATCH] infiniband-diags/ibsysstat: use RMPP for client/server communication

2009-01-27 Thread Hal Rosenstock
Sasha, On Tue, Jan 27, 2009 at 7:19 AM, Sasha Khapyorsky wrote: > Hi Hal, > > On 17:14 Mon 26 Jan , Hal Rosenstock wrote: >> On Mon, Jan 26, 2009 at 4:26 PM, Sasha Khapyorsky >> wrote: >> > >> > This patch adds support for bigger than (256 - vendor2 data offset) data >> > sending by ibsysst

[ofa-general] Re: [PATCH 06/21] RDS: Connection handling

2009-01-27 Thread Evgeniy Polyakov
On Tue, Jan 27, 2009 at 02:47:27PM +0100, Oliver Neukum (oli...@neukum.org) wrote: > > > +static inline int rds_conn_is_sending(struct rds_connection *conn) > > > +{ > > > + int ret = 0; > > > + > > > + if (!mutex_trylock(&conn->c_send_lock)) > > > + ret = 1; > > > + else > > > + m

[ofa-general] Re: [PATCH 06/21] RDS: Connection handling

2009-01-27 Thread Oliver Neukum
Am Tuesday 27 January 2009 14:34:19 schrieb Evgeniy Polyakov: > On Mon, Jan 26, 2009 at 06:17:43PM -0800, Andy Grover > (andy.gro...@oracle.com) wrote: > > +static inline int rds_conn_is_sending(struct rds_connection *conn) > > +{ > > + int ret = 0; > > + > > + if (!mutex_trylock(&conn->c_send

[ofa-general] Re: [PATCH 06/21] RDS: Connection handling

2009-01-27 Thread Evgeniy Polyakov
On Mon, Jan 26, 2009 at 06:17:43PM -0800, Andy Grover (andy.gro...@oracle.com) wrote: > +static inline int rds_conn_is_sending(struct rds_connection *conn) > +{ > + int ret = 0; > + > + if (!mutex_trylock(&conn->c_send_lock)) > + ret = 1; > + else > + mutex_unlo

[ofa-general] Re: [PATCH 05/21] RDS: Info and stats

2009-01-27 Thread Evgeniy Polyakov
On Mon, Jan 26, 2009 at 06:17:42PM -0800, Andy Grover (andy.gro...@oracle.com) wrote: > +void rds_info_register_func(int optname, rds_info_func func) > +{ > + int offset = optname - RDS_INFO_FIRST; > + > + BUG_ON(optname < RDS_INFO_FIRST || optname > RDS_INFO_LAST); > + > + spin_lock(&

[ofa-general] Re: [PATCH 04/21] RDS: Transport code

2009-01-27 Thread Evgeniy Polyakov
On Mon, Jan 26, 2009 at 06:17:41PM -0800, Andy Grover (andy.gro...@oracle.com) wrote: > +static LIST_HEAD(transports); > +static DECLARE_RWSEM(trans_sem); > + RDS_ prefix? > +int rds_trans_register(struct rds_transport *trans) > +{ > + BUG_ON(strlen(trans->t_name) + 1 > > +sizeof

[ofa-general] Re: [PATCH 03/21] RDS: Congestion-handling code

2009-01-27 Thread Evgeniy Polyakov
On Mon, Jan 26, 2009 at 06:17:40PM -0800, Andy Grover (andy.gro...@oracle.com) wrote: > +/* > + * Yes, a global lock. It's used so infrequently that it's worth keeping it > + * global to simplify the locking. It's only used in the following > + * circumstances: > + * > + * - on connection build

[ofa-general] Re: [PATCH 02/21] RDS: Main header file

2009-01-27 Thread Evgeniy Polyakov
Hi. On Mon, Jan 26, 2009 at 06:17:39PM -0800, Andy Grover (andy.gro...@oracle.com) wrote: > +/* > + * XXX randomly chosen, but at least seems to be unused: > + * # 18464-18768 Unassigned > + * We should do better. We want a reserved port to discourage unpriv'ed > + * userspace from

[ofa-general] Re: [PATCH 01/21] RDS: Socket interface

2009-01-27 Thread Evgeniy Polyakov
Hi Andy. On Mon, Jan 26, 2009 at 06:17:38PM -0800, Andy Grover (andy.gro...@oracle.com) wrote: > +/* this is just used for stats gathering :/ */ Shouldn't this be some kind of per-cpu data? > +static DEFINE_SPINLOCK(rds_sock_lock); > +static unsigned long rds_sock_count; > +static LIST_HEAD(rds

[ofa-general] NetEffect, iw_nes and kernel warning

2009-01-27 Thread arturp1
Hello, I'm using "iw_nes" driver for NetEffect 10Gbit card under linux 2.6.27.10. I run it on PC with 8 processors. >From time to time kernel shows following warning: WARNING: at kernel/softirq.c:136 local_bh_enable+0x9b/0xa0() Modules linked in: iscsi_trgt st sg scst_vdisk scst drbd twofish two

[ofa-general] NetEffect, iw_nes and kernel warning

2009-01-27 Thread alu...@poczta.onet.pl
Hello, I'm using "iw_nes" driver for NetEffect 10Gbit card under linux 2.6.27.10. I run it on PC with 8 processors. >From time to time kernel shows following warning: WARNING: at kernel/softirq.c:136 local_bh_enable+0x9b/0xa0() Modules linked in: iscsi_trgt st sg scst_vdisk scst drbd twofish two

[ofa-general] Re: [PATCH 02/21] RDS: Main header file

2009-01-27 Thread Rémi Denis-Courmont
On Tuesday 27 January 2009 04:17:39 ext Andy Grover, you wrote: > +/* > + * XXX randomly chosen, but at least seems to be unused: > + * # 18464-18768 Unassigned > + * We should do better. We want a reserved port to discourage unpriv'ed > + * userspace from listening. > + */ > +#defin

[ofa-general] Re: [PATCH 21/21] RDS: Add AF and PF #defines for RDS sockets

2009-01-27 Thread Rémi Denis-Courmont
On Tuesday 27 January 2009 04:17:58 ext Andy Grover, you wrote: > RDS is a reliable datagram protocol used for IPC on Oracle > database clusters. This adds address and protocol family numbers > for it. > > Signed-off-by: Andy Grover > --- > include/linux/socket.h |4 +++- > 1 files changed, 3

Re: [ofa-general] [PATCH 0/21] Reliable Datagram Sockets (RDS)

2009-01-27 Thread Steve Wise
Hey Andy, Why didn't you include the iWARP transport as well? Andy Grover wrote: Hi Roland, This patchset adds support for RDS as an Infiniband ULP. RDS is an Oracle-originated protocol used to send IPC datagrams (up to 1MB) reliably, and is used currently in Oracle RAC and Exadata products.

[ofa-general] [ANNOUNCE] RHEL5.3 support added to OFED-1.4 (latest daily build)

2009-01-27 Thread Vladimir Sokolovsky
Hi, RHEL5.3 support was added to OFED-1.4 daily builds, starting from OFED-1.4-20090127-0600. OFED-1.4 daily builds are available under: http://www.openfabrics.org/downloads/OFED/ofed-1.4-daily/ Regards, Vladimir ___ general mailing list general

[ofa-general] Re: [PATCH] infiniband-diags/ibsysstat: use RMPP for client/server communication

2009-01-27 Thread Sasha Khapyorsky
On 14:19 Tue 27 Jan , Sasha Khapyorsky wrote: > > diff --git a/infiniband-diags/src/ibsysstat.c > b/infiniband-diags/src/ibsysstat.c > index c20a6f0..a145daf 100644 > --- a/infiniband-diags/src/ibsysstat.c > +++ b/infiniband-diags/src/ibsysstat.c > @@ -169,6 +174,11 @@ static char *ibsystat_s

[ofa-general] Re: [PATCH] infiniband-diags/ibsysstat: use RMPP for client/server communication

2009-01-27 Thread Sasha Khapyorsky
Hi Hal, On 17:14 Mon 26 Jan , Hal Rosenstock wrote: > On Mon, Jan 26, 2009 at 4:26 PM, Sasha Khapyorsky wrote: > > > > This patch adds support for bigger than (256 - vendor2 data offset) data > > sending by ibsysstat server using RMPP. It fixes bug#1237 - where server > > output was truncated

[ofa-general] NetEffect, iw_nes and kernel warning

2009-01-27 Thread alu...@poczta.onet.pl
Hello, I'm using "iw_nes" driver for NetEffect 10Gbit card under linux 2.6.27.10. I run it on PC with 8 processors. >From time to time kernel shows following warning: WARNING: at kernel/softirq.c:136 local_bh_enable+0x9b/0xa0() Modules linked in: iscsi_trgt st sg scst_vdisk scst drbd twofish tw

[ofa-general] ofa_1_4_kernel 20090127-0200 daily build status

2009-01-27 Thread Vladimir Sokolovsky (Mellanox)
This email was generated automatically, please do not reply git_url: git://git.openfabrics.org/ofed_1_4/linux-2.6.git git_branch: ofed_kernel Common build parameters: Passed: Passed on i686 with linux-2.6.16 Passed on i686 with linux-2.6.17 Passed on i686 with linux-2.6.19 Passed on i686 with

***SPAM*** Re: [ofa-general] ***SPAM*** Byte_Cnt field in the MTHCA_CQE structure

2009-01-27 Thread Dotan Barak
On Mon, Jan 26, 2009 at 11:08 PM, Adit Ranadive wrote: > Hello, > I have been looking at doing some low level work with the OFED library 1.1 > in terms of figuring out how many bytes have been sent by an IB > application. If you have the source code, you can add a counter when posting send reques

[ofa-general] Re: IPoIB kernel Oops -- possible race condition identified.

2009-01-27 Thread Jack Morgenstein
On Monday 26 January 2009 19:00, Yossi Etigin wrote: >  There's a patch of mine in OFED that's probably exposing a bug in ipoib. > The bug is that priv->broadcast can be NULL-ified and join_task does not > protect the check with the spinlock. > The patch may expose the bug because it uses rtnl_lock