Thread (1 message) 1 message, 1 author, 2016-07-11

Re: [PATCH v3] IB core: Add port_xmit_wait counters

From: Hal Rosenstock <hidden>
Date: 2016-07-11 13:03:31

On 7/10/2016 8:15 PM, Christoph Lameter wrote:
On Fri, 8 Jul 2016, Hal Rosenstock wrote:
quoted
quoted
Its used to calculate the offset. See the macro definition.
Isn't it used to calculate the index not the offset (and that part of
index is not used anywhere AFAIT) ?
_width, _offset and _counter are all just used for the calculation of
"index" which is the final value that is stored in the port table.

Ok we can change that to index to be accurate?


#define PORT_PMA_ATTR(_name, _counter, _width, _offset)                 \
struct port_table_attribute port_pma_attr_##_name = {                   \
.attr  = __ATTR(_name, S_IRUGO, show_pma_counter, NULL),        \
.index = (_offset) | ((_width) << 16) | ((_counter) << 24),     \
.attr_id = IB_PMA_PORT_COUNTERS ,                               \
}
I'm not sure I'm following what you mean. Are you proposing to change
_counter to _index ?
--
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