Conversation
vDorst
left a comment
There was a problem hiding this comment.
Not tested yet, but small comments.
| if (cmd_words_len == 1) { | ||
| print_string("\nSlot 1 - Rate: "); print_byte(sfp_read_reg(0, 12)); | ||
| print_string(" Encoding: "); print_byte(sfp_read_reg(0, 11)); | ||
| print_string("\n"); |
There was a problem hiding this comment.
replace with write_char('\n')
| if (machine.n_sfp == 2) { | ||
| print_string("\nSlot 2 - Rate: "); print_byte(sfp_read_reg(1, 12)); | ||
| print_string(" Encoding: "); print_byte(sfp_read_reg(1, 11)); | ||
| print_string("\n"); |
There was a problem hiding this comment.
replace with write_char('\n')
| } else if (cmd_compare(0, "sfp") && cmd_words_len == 3) { | ||
| parse_sfp(); |
There was a problem hiding this comment.
This can be removed, check below is the same.
This is redundant.
|
I am very interested in the results of testing with different SFP+ modules. I had to use a fixed 1GBit module on the other side of the link, because I use an intel X520 card in a PC for testing and the linux driver seems not able to change the speed to 1GBit for a 10GBit module. I unfortunately do not have any 2.5GBit capable SFP+ modules at hand, so could not test this at all. |
|
I pushed the fixes for the bugs found above. There is a pre-existing issue with the |
|
We can make use of |
|
With a DAC cable, the link is successfully established when setting sfp speed to 1g, 2g5 or 10g on both sides. |
I'll try |
|
Fixed the above (apart from the 5GBit setting). I added a check for the speed setting, which verifies that the slot is actually present, e.g. if the machine has only 1 slot. |
|
Looks good to me! |
|
Do we also want to support |
|
I had forgotten that 100MBit fiber modules actually existed. But I found support in the RTL-SDK, there is support for BTW: In the OEM Web-interface, do they support setting 5GBit for fiber modules? I am not sure the API version we have supports that. |
While testing #246, I noticd that SFP did not light-up while forcing 2.5gbit link. This is because RJ45 and SFP share the same LED-settings. But RJ45 has two leds-settings. Solution is to add settings for SFP for both managed and unmanaged variant.
|
Personally, I would prefer merging PRs that are ready (as this one is) over adding just one more feature (that probably nobody will ever use).... |
You are probably right. This can be merged, and support for 100FX is then a different story. We do not even have support for those modules, yet. Not even speaking of forcing faster modules into that mode. |
|
The following appears to work to allow 100MBit modules: It seems I can make a 10GBit and a 1GBit module talk 100MBit to each other: |
|
Thanks |
Add configuration commands for SFP speed configuration, e.g.
sfp 1 1g, which allow modules which have higher speeds to be configured to use lower speeds, such as 1gbit for a 10gbit module. This has to be supported by the module hardware.This is supposed to address issue #245
This is now ready to merge, the 5GBit support is however missing, due to lack of test hardware.