Re: [PATCH v5 09/27] IB/Verbs: Reform IB-core verbs/uverbs_cmd/sysfs

2015-04-23 Thread Michael Wang
On 04/22/2015 06:28 PM, ira.weiny wrote: [snip] > >> >> link_layer_show() was supposed to report the same info to user >> space as usual, so user tool don't have to change anything :-) > > We need to expose the "cap_*" functionality to userspace which can then > convert > to this interface and

Re: [PATCH v5 09/27] IB/Verbs: Reform IB-core verbs/uverbs_cmd/sysfs

2015-04-22 Thread ira.weiny
On Wed, Apr 22, 2015 at 09:38:57AM +0200, Michael Wang wrote: > Hi, Ira > > Thanks for the review :-) > > On 04/22/2015 01:19 AM, ira.weiny wrote: > [snip] > >> diff --git a/drivers/infiniband/core/sysfs.c > >> b/drivers/infiniband/core/sysfs.c > >> index cbd0383..8570180 100644 > >> --- a/drive

Re: [PATCH v5 09/27] IB/Verbs: Reform IB-core verbs/uverbs_cmd/sysfs

2015-04-22 Thread Michael Wang
Hi, Ira Thanks for the review :-) On 04/22/2015 01:19 AM, ira.weiny wrote: [snip] >> diff --git a/drivers/infiniband/core/sysfs.c >> b/drivers/infiniband/core/sysfs.c >> index cbd0383..8570180 100644 >> --- a/drivers/infiniband/core/sysfs.c >> +++ b/drivers/infiniband/core/sysfs.c >> @@ -248,14

Re: [PATCH v5 09/27] IB/Verbs: Reform IB-core verbs/uverbs_cmd/sysfs

2015-04-21 Thread ira.weiny
On Mon, Apr 20, 2015 at 10:36:12AM +0200, Michael Wang wrote: > > Use raw management helpers to reform IB-core verbs/uverbs_cmd/sysfs. > > Cc: Hal Rosenstock > Cc: Steve Wise > Cc: Tom Talpey > Cc: Jason Gunthorpe > Cc: Doug Ledford > Cc: Ira Weiny > Cc: Sean Hefty > Signed-off-by: Michael

[PATCH v5 09/27] IB/Verbs: Reform IB-core verbs/uverbs_cmd/sysfs

2015-04-20 Thread Michael Wang
Use raw management helpers to reform IB-core verbs/uverbs_cmd/sysfs. Cc: Hal Rosenstock Cc: Steve Wise Cc: Tom Talpey Cc: Jason Gunthorpe Cc: Doug Ledford Cc: Ira Weiny Cc: Sean Hefty Signed-off-by: Michael Wang --- drivers/infiniband/core/sysfs.c | 8 ++-- drivers/infiniband/co