Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
a4fbb22a
Commit
a4fbb22a
authored
Apr 06, 2020
by
Ragnar Sundblad
Committed by
Grzegorz Daniluk
May 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for SFP:s reporting a speed of 1200 Mb/s.
Signed-off-by:
Maciej Lipinski
<
maciej.lipinski@cern.ch
>
parent
d18c2077
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
sfp_lib.h
userspace/libwr/include/libwr/sfp_lib.h
+1
-0
hal_ports.c
userspace/wrsw_hal/hal_ports.c
+1
-0
No files found.
userspace/libwr/include/libwr/sfp_lib.h
View file @
a4fbb22a
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
* 1000BASE-X. */
* 1000BASE-X. */
#define SFP_SPEED_1Gb_10 0x0A
/* Unfortunatelly the above is not always true,
#define SFP_SPEED_1Gb_10 0x0A
/* Unfortunatelly the above is not always true,
* e.g. Cisco copper SFP (MGBT1) says simply 10 and not 13.*/
* e.g. Cisco copper SFP (MGBT1) says simply 10 and not 13.*/
#define SFP_SPEED_1Gb_12 0x0C
/* Some fiber SFPs say 12 and not 13 */
#define SFP_DIAGNOSTIC_IMPLEMENTED (1 << 6)
/* Digital diagnostic monitoring
#define SFP_DIAGNOSTIC_IMPLEMENTED (1 << 6)
/* Digital diagnostic monitoring
implemented. "1" for compliance
implemented. "1" for compliance
...
...
userspace/wrsw_hal/hal_ports.c
View file @
a4fbb22a
...
@@ -482,6 +482,7 @@ static void hal_port_insert_sfp(struct hal_port_state * ps)
...
@@ -482,6 +482,7 @@ static void hal_port_insert_sfp(struct hal_port_state * ps)
/* check if SFP is 1GbE */
/* check if SFP is 1GbE */
ps
->
calib
.
sfp
.
flags
|=
shdr
.
br_nom
==
SFP_SPEED_1Gb
?
SFP_FLAG_1GbE
:
0
;
ps
->
calib
.
sfp
.
flags
|=
shdr
.
br_nom
==
SFP_SPEED_1Gb
?
SFP_FLAG_1GbE
:
0
;
ps
->
calib
.
sfp
.
flags
|=
shdr
.
br_nom
==
SFP_SPEED_1Gb_10
?
SFP_FLAG_1GbE
:
0
;
ps
->
calib
.
sfp
.
flags
|=
shdr
.
br_nom
==
SFP_SPEED_1Gb_10
?
SFP_FLAG_1GbE
:
0
;
ps
->
calib
.
sfp
.
flags
|=
shdr
.
br_nom
==
SFP_SPEED_1Gb_12
?
SFP_FLAG_1GbE
:
0
;
/*
/*
* Now, we should fix the alpha value according to fiber
* Now, we should fix the alpha value according to fiber
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment