Comments (5)
I cannot reproduce this problem. I tried to reproduce this issue with wedge100BF_32x device and also used four transceivers with insertion and removal on random ports and used "onlpdump" command to view SFP Presence bitmap and finally I cannot reproduce this issue.
I kindly request to provide more detail on how to reproduce this issue. For example, console log or which ports to test and how many transceivers used to test.
from opennetworklinux.
We are NOT using "onlpdump" command.
There is a periodic (500 mS) poll which is using ONLP API onlp_sfp_presence_bitmap_get(&sfp_bitmap_new)
Call returns 32 bit bitmap word. When QSFP is inserted to any of the empty ports appropriate bit in the the bitmap is changing from 0b to 1b.
If you remove QSFP next poll(s) keep returning the same bitmap with 1b in the position related to the removed QSFP. Naturally plugging QSFP back to the same port does not change the bitmap, bit remains 1b.
Plugging QSFP to a different port, which was empty before, changes bitmap with new 1b in a new position.
Our assumption was that onlp_sfp_presence_bitmap_get(&sfp_bitmap_new) should be sufficient for transceivers presence poll.
from opennetworklinux.
Found a workaround:
Calling function should clear transceivers bitmap each time before polling presence with ONLP library API:
sfp_bitmap_new.words[0] = 0;
sfp_bitmap_new.words[1] = 0;
rc = onlp_sfp_presence_bitmap_get(&sfp_bitmap_new);
When it is done result bitmap has correct presence information.
Suggestions:
- Add bitmap clearing to the ONLP function;
OR - Document necessary cleaning in a library header file comments.
from opennetworklinux.
Maybe lines 370~372 in the following link can be a good reference on using that API.
from opennetworklinux.
Transceiver bit map clearing is done inside function "onlp_sfp_presence_bitmap_get_locked__" in sfp.c file
from opennetworklinux.
Related Issues (20)
- edge-core as6701-32x support? HOT 5
- Build Issue for fetch jessie binary-amd64 packages HOT 2
- CRITICAL:docker_shell:The binfmt_misc system could not be mounted. HOT 1
- 'cat etc/onl/platform' is unknown HOT 1
- Facing below failure when build the ONL "ERROR:onlrfs:Exception 'Could not mount proc in rfs.' in OnlRfsContext::__enter__" HOT 2
- OpenNetworkLinux - Change user login credentials as "admin/onl" instead of default login as "root/onl" in Source code
- systemd-udevd[643]: Process '/sbin/initblockdev xxx add' failed with exit code 1. HOT 2
- Is building from non-Ubuntu possible at all ? HOT 1
- hello
- No module named x86_64_delta_dds64c8_r0
- Looking to build this to support cel_redstone-powerpc
- Specify onie img file HOT 5
- Specify onie img file
- Specify onie img file
- Specify onie img file
- How to make `onlpdusmp -S ` support OSFP HOT 2
- [ONL Arm64] ONL-BOOT partition size cannot be customized HOT 6
- Checksums for latest Stretch build
- Migration plan HOT 1
- Package all does not exist.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opennetworklinux.