Re: [patch v2 13/37] add rxe_verbs.c

2011-09-01 Thread Bart Van Assche
On Thu, Sep 1, 2011 at 7:20 AM, Bob Pearson wrote: > From: bvanass...@acm.org > > On Sun, Jul 24, 2011 at 9:43 PM,   wrote: > > > +static struct ib_ah *rxe_create_ah(struct ib_pd *ibpd, struct > ib_ah_attr > > *attr) > > > +{ > > > +   int err; > > > +   struct rxe_dev *rxe = to_rdev(ibpd->device)

Re: [patch v2 13/37] add rxe_verbs.c

2011-09-01 Thread Bart Van Assche
On Thu, Sep 1, 2011 at 7:20 AM, Bob Pearson wrote: > From: bvanass...@acm.org >> On Sun, Jul 24, 2011 at 9:43 PM,   wrote: >> > +static int rxe_query_port(struct ib_device *dev, >> > +                     u8 port_num, struct ib_port_attr *attr) >> > +{ >> > +   struct rxe_dev *rxe = to_rdev(dev);

RE: [patch v2 13/37] add rxe_verbs.c

2011-08-31 Thread Bob Pearson
> -Original Message- > From: bart.vanass...@gmail.com [mailto:bart.vanass...@gmail.com] On > Behalf Of Bart Van Assche > Sent: Monday, August 15, 2011 8:25 AM > To: rpear...@systemfabricworks.com > Cc: linux-rdma@vger.kernel.org > Subject: Re: [patch v2 13/37] add rx

Re: [patch v2 13/37] add rxe_verbs.c

2011-08-15 Thread Bart Van Assche
On Sun, Jul 24, 2011 at 9:43 PM, wrote: > +static ssize_t rxe_show_skb_num(struct device *device, > + struct device_attribute *attr, char *buf) > +{ > + struct rxe_dev *rxe = container_of(device, struct rxe_dev, > +ib_dev.dev

Re: [patch v2 13/37] add rxe_verbs.c

2011-08-15 Thread Greg KH
On Mon, Aug 15, 2011 at 06:02:23PM +0200, Bart Van Assche wrote: > On Mon, Aug 15, 2011 at 5:07 PM, Greg KH wrote: > > For a device, you HAVE to be creating these attributes before the > > hotplug event is sent out, and to do that, you need to set the correct > > pointer before registering the dev

Re: [patch v2 13/37] add rxe_verbs.c

2011-08-15 Thread Bart Van Assche
On Mon, Aug 15, 2011 at 5:07 PM, Greg KH wrote: > For a device, you HAVE to be creating these attributes before the > hotplug event is sent out, and to do that, you need to set the correct > pointer before registering the device.  See the documentation for the > driver model for how to do this pro

Re: [patch v2 13/37] add rxe_verbs.c

2011-08-15 Thread Greg KH
On Mon, Aug 15, 2011 at 04:58:44PM +0200, Bart Van Assche wrote: > On Mon, Aug 15, 2011 at 4:45 PM, Greg KH wrote: > > On Mon, Aug 15, 2011 at 04:33:14PM +0200, Bart Van Assche wrote: > >> On Sun, Jul 24, 2011 at 9:43 PM,   wrote: > >> > +   for (i = 0; i < ARRAY_SIZE(rxe_dev_attributes); ++i) { >

Re: [patch v2 13/37] add rxe_verbs.c

2011-08-15 Thread Bart Van Assche
On Mon, Aug 15, 2011 at 4:45 PM, Greg KH wrote: > On Mon, Aug 15, 2011 at 04:33:14PM +0200, Bart Van Assche wrote: >> On Sun, Jul 24, 2011 at 9:43 PM,   wrote: >> > +   for (i = 0; i < ARRAY_SIZE(rxe_dev_attributes); ++i) { >> > +           err = device_create_file(&dev->dev, rxe_dev_attributes[i]

Re: [patch v2 13/37] add rxe_verbs.c

2011-08-15 Thread Greg KH
On Mon, Aug 15, 2011 at 04:33:14PM +0200, Bart Van Assche wrote: > On Sun, Jul 24, 2011 at 9:43 PM, wrote: > > + for (i = 0; i < ARRAY_SIZE(rxe_dev_attributes); ++i) { > > + err = device_create_file(&dev->dev, rxe_dev_attributes[i]); > > + if (err) { > > +

Re: [patch v2 13/37] add rxe_verbs.c

2011-08-15 Thread Bart Van Assche
On Sun, Jul 24, 2011 at 9:43 PM, wrote: > + for (i = 0; i < ARRAY_SIZE(rxe_dev_attributes); ++i) { > + err = device_create_file(&dev->dev, rxe_dev_attributes[i]); > + if (err) { > + pr_warn("device_create_file failed, " > +

Re: [patch v2 13/37] add rxe_verbs.c

2011-08-15 Thread Bart Van Assche
On Sun, Jul 24, 2011 at 9:43 PM, wrote: > +static int rxe_query_port(struct ib_device *dev, > + u8 port_num, struct ib_port_attr *attr) > +{ > + struct rxe_dev *rxe = to_rdev(dev); > + struct rxe_port *port; > + > + if (unlikely(port_num < 1 || port_num > rxe->nu

[patch v2 13/37] add rxe_verbs.c

2011-07-25 Thread rpearson
rxe interface to rdma/core Signed-off-by: Bob Pearson --- drivers/infiniband/hw/rxe/rxe_verbs.c | 1344 ++ 1 file changed, 1344 insertions(+) Index: infiniband/drivers/infiniband/hw/rxe/rxe_verbs.c