Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RCV_BYTES does not reset to 0 on switches #1

Open
fruhland opened this issue Oct 16, 2018 · 0 comments
Open

RCV_BYTES does not reset to 0 on switches #1

fruhland opened this issue Oct 16, 2018 · 0 comments

Comments

@fruhland
Copy link
Contributor

fruhland commented Oct 16, 2018

For some reason, when I reset the counters on our switch, only the lower 40-bits of the RCV_BYTES counter are set to zero. The most significant 24-bits are set to 0x0000ff, which leads to a value of more than 1 peta-byte after a reset. As a quick fix, I always set the the most significant 24-bits of this counter to zero manually by performing a bitwise AND with 0x000000ffffffffff.
This issue should be investigated further and, if possible, a better solution should be developed.

Current solution in IbPort.cpp:

mad_decode_field(pmaQueryBuf, IB_PC_EXT_RCV_BYTES_F, &value64);

if(m_nodeType == IB_NODE_SWITCH) {
    value64 &= 0x000000ffffffffffULL;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant