On Mon, 2011-10-24 at 05:33 +0000, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger <nab@xxxxxxxxxxxxxxx> > > This patch converts the srp_max_rdma_size module parameter into a per > endpoint configfs attribute. This includes adding the necessary bits > for show + store attributes w/ min/max bounds checking, and updating > srpt_get_ioc() to accept a struct srpt_port parameter. > > Reported-by: Roland Dreier <roland@xxxxxxxxxxxxxxx> > Cc: Roland Dreier <roland@xxxxxxxxxxxxxxx> > Cc: Bart Van Assche <bvanassche@xxxxxxx> > Signed-off-by: Nicholas A. Bellinger <nab@xxxxxxxxxxxxxxx> > --- > drivers/infiniband/ulp/srpt/ib_srpt.c | 60 ++++++++++++++++++++++++++++----- > drivers/infiniband/ulp/srpt/ib_srpt.h | 10 +++++ > 2 files changed, 61 insertions(+), 9 deletions(-) > <SNIP> > diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.h b/drivers/infiniband/ulp/srpt/ib_srpt.h > index 59ee2d7..c9caa90 100644 > --- a/drivers/infiniband/ulp/srpt/ib_srpt.h > +++ b/drivers/infiniband/ulp/srpt/ib_srpt.h > @@ -114,6 +114,7 @@ enum { > MIN_SRPT_SRQ_SIZE = 4, > DEFAULT_SRPT_SRQ_SIZE = 4095, > MAX_SRPT_SRQ_SIZE = 65535, > + MAX_SRPT_RDMA_SIZE = 256U, > Hey btw, what should the proper MAX_SRPT_RDMA_SIZE be here..? --nab -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html