Re: [PATCH v3 rdma-next 02/10] RDMA/nldev: common resource dumpit function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 01, 2018 at 08:21:26AM +0200, Leon Romanovsky wrote:

> static qp_dummpit_func(..)
> {
>    check_input(QP, ...)
>    fill_entries(QP, ...)

but that is not how it works, it is isn't fill_entires, it is singular
fill_entry().

You'd have to do something crazy like

 static qp_dummpit_func(..)
 {
    check_input(QP, ...)
    for (xx = start_loop(..); !loop_end(xx); next_loop(xx))
         fill_entry_body()

Which seems much worse than what is already in the patch. The nice
tidy 'fill_entry' function is perfect, all the boiler plate is in the
common code.

I agree the const struct could have fewer members though..

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux