On Sun, Oct 06, 2019 at 06:51:37PM +0300, Leon Romanovsky wrote: > From: Erez Alfasi <ereza@xxxxxxxxxxxx> > > So far res_get_common_{dumpit, doit} was using the default > resource fill function which was defined as part of the > nldev_fill_res_entry fill_entries. > > Add a fill function pointer as an argument allows us to use > different fill function in case we want to dump different > values then 'rdma resource' flow do, but still use the same > existing general resources dumping flow. > > Signed-off-by: Erez Alfasi <ereza@xxxxxxxxxxxx> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > --- > drivers/infiniband/core/nldev.c | 44 +++++++++++++++++---------------- > 1 file changed, 23 insertions(+), 21 deletions(-) Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx>