mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Properly handle NULs when normalizing SFP fields
Some generic 1.25gbps DAC cables were seen to have a NUL *after* the space padding in the model field. This caused the normalization to miss the space padding in the string. The vendor field did not have the issue. Note that this seems to be against spec per SFF-8472, which mentions only space padding or *all* NUL, not a combination of both. In the case of all NUL, we'll waste a few cycles with no-op writes.
This commit is contained in:
1 parent
55431b39f6
commit
bb84bdc55a
1 file changed
+1
-1
Reference in new issue
Block a user