Thread (1 message) 1 message, 1 author, 2016-03-01

Re: [PATCH V1 libibverbs 1/8] Add ibv_poll_cq_ex verb

From: Christoph Lameter <hidden>
Date: 2016-03-01 16:10:52

On Tue, 1 Mar 2016, Matan Barak (External) wrote:
Function per every completion fields permutation is uglier for sure (there are
currently 9 optional completion fields in this proposal, you could easily do
the math to calculate how many permutations we have).
quoted
I'd say give it another think and try and make the user facing API
saner.
Lets think of the main requirement here - an extensible way of getting
completions with only user required data. So either you give an explicit
function for every permutation - which is pretty awful (to say the least) or
you have a way to say "this is what I want" and "if the vendor reported this
field, please give it to me".

Since it could be possible telling a future hardware "I'm only interested in
these fields in a CQ", the second approach seems to be better.
I like the approach in this patch and the example shows me how to
integrate that easily into our code base. Please lets get this merged.

Being able to customize the CQ contents so that they fit into a cacheline
is pretty important. We have high throughput packet capture devices that
are affected by slight changes to the cache footprint. We have seen
significant regressions in the past because fields were added that we did
not see to be important. I like it.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help