Message ID | 20191025132318.13906-1-honli@redhat.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
Series | [linux-next] RDMA/srp: add module parameter 'has_max_it_iu_size' | expand |
On 2019-10-25 06:23, Honggang LI wrote: > +module_param(has_max_it_iu_size, bool, 0444); > +MODULE_PARM_DESC(has_max_it_iu_size, > + "Indicate the module supports max_it_iu_size login parameter"); Since the approach of this patch requires to add one new kernel parameter every time a new login parameter is added, I don't think this approach is future-proof. Has it been considered to export a list of all supported login parameters to user space? Thanks, Bart.
On Fri, Oct 25, 2019 at 07:10:44PM -0700, Bart Van Assche wrote: > On 2019-10-25 06:23, Honggang LI wrote: > > +module_param(has_max_it_iu_size, bool, 0444); > > +MODULE_PARM_DESC(has_max_it_iu_size, > > + "Indicate the module supports max_it_iu_size login parameter"); > > Since the approach of this patch requires to add one new kernel > parameter every time a new login parameter is added, I don't think this > approach is future-proof. Has it been considered to export a list of all > supported login parameters to user space? ok, I will drop this patch and usespace v2 srp_daemon patch. thanks
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index b7f7a5f7bd98..96434f743a91 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -74,6 +74,7 @@ static bool allow_ext_sg; static bool prefer_fr = true; static bool register_always = true; static bool never_register; +static bool has_max_it_iu_size = true; static int topspin_workarounds = 1; module_param(srp_sg_tablesize, uint, 0444); @@ -103,6 +104,10 @@ module_param(register_always, bool, 0444); MODULE_PARM_DESC(register_always, "Use memory registration even for contiguous memory regions"); +module_param(has_max_it_iu_size, bool, 0444); +MODULE_PARM_DESC(has_max_it_iu_size, + "Indicate the module supports max_it_iu_size login parameter"); + module_param(never_register, bool, 0444); MODULE_PARM_DESC(never_register, "Never register memory");