floodlight / bigcode

Other
11 stars 47 forks source link

Add modified sm/bigcode to support QSFP-DD. #94

Closed pjaipakdee closed 5 years ago

pjaipakdee commented 5 years ago

Following our inspection about update QSFP-DD support on sff bigcode.

My team already made an update it to support QSFP-DD following SFF-8628 document

Document Link : ftp://ftp.seagate.com/sff/INF-8628.PDF

Here is the example for eeprom output from QSFP-DD

Port 10: Present, Status = 0x00000000 eeprom: 0000: 18 30 80 01 00 00 00 00 00 00 00 00 00 00 00 00 0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0050: 00 00 00 00 00 03 1d 01 88 01 1c 01 88 01 1b 01 0060: 88 01 18 01 88 01 1a 01 88 01 16 01 88 01 15 01 0070: 88 01 14 01 88 01 00 00 00 00 00 00 00 00 00 00 0080: 18 41 6d 70 68 65 6e 6f 6c 20 20 20 20 20 20 20 0090: 20 78 a7 14 4e 44 59 59 59 46 2d 30 30 30 31 20 00a0: 20 20 20 20 44 20 41 50 46 31 39 31 37 30 30 31 00b0: 38 48 4d 48 20 20 31 39 30 34 32 36 20 20 00 00 00c0: 00 00 00 00 00 00 00 00 00 01 0a 23 05 06 0b 00 00d0: 00 00 00 02 0a 00 00 00 00 00 00 00 00 00 a9 00 00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Port 11: Present, Status = 0x00000000 eeprom: 0000: 18 30 00 06 00 00 00 00 00 00 00 00 00 00 3b d7 0010: 80 70 c2 b3 31 ff 00 00 00 00 00 00 00 00 00 00 0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0050: 00 00 00 00 00 02 11 1c 84 01 ff 00 00 00 00 00 0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0080: 18 49 4e 4e 4f 4c 49 47 48 54 20 20 20 20 20 20 0090: 20 44 7c 7f 54 2d 44 50 34 43 4e 48 2d 4e 30 30 00a0: 20 20 20 20 31 42 49 4e 49 42 55 38 31 34 31 32 00b0: 39 30 20 20 20 20 32 30 31 39 30 33 31 32 00 00 00c0: 00 00 00 00 00 00 00 00 a0 30 00 0c 00 00 00 00 00d0: 00 00 00 00 06 00 00 00 00 00 00 00 00 00 a7 00 00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

and after update here is the output from onlpdump -S (Different module with example eeprom data) root@localhost:/home# ./onlpdump -S Port Type Media Status Len Vendor Model S/N


0 100GBASE-CR4 Copper 1m LOROM INDUSTRIAL LRHSPC79D010 LRQ170210011 1 100GBASE-CR4 Copper 1m LOROM INDUSTRIAL LRHSPC79D010 LRQ165310021 2 100GBASE-CR4 Copper 1m LOROM INDUSTRIAL LRHSPC79D010 LRQ165310022 3 100GBASE-CR4 Copper 1m LOROM INDUSTRIAL LRHSPC79D010 LRQ165310022 4 100GBASE-CR4 Copper 1m LOROM INDUSTRIAL LRHSPC79D010 LRQ165310006 5 100GBASE-CR4 Copper 1m LOROM INDUSTRIAL LRHSPC79D010 LRQ165310006 6 100GBASE-CR4 Copper 1m LOROM INDUSTRIAL LRHSPC79D010 LRQ165310012 7 100GBASE-CR4 Copper 1m LOROM INDUSTRIAL LRHSPC79D010 LRQ165310012 8 100GBASE-CR4 Copper 1m LOROM INDUSTRIAL LRHSPC79D010 LRQ165310030 9 100GBASE-CR4 Copper 1m LOROM INDUSTRIAL LRHSPC79D010 LRQ165310030 10 100GBASE-CR4 Copper 1m LOROM INDUSTRIAL LRHSPC79D010 LRQ165310027 11 100GBASE-CR4 Copper 1m LOROM INDUSTRIAL LRHSPC79D010 LRQ165310027 12 NONE 13 NONE 14 400G_CR8 Copper 0m Amphenol NDW0Y0-0001 APF18090018U0U 15 400G_CR8 Copper 0m Amphenol NDW0Y0-0001 APF18090018U1K 16 NONE 17 NONE 18 NONE 19 NONE 20 NONE 21 NONE 22 NONE 23 NONE 24 NONE 25 NONE 26 NONE 27 NONE 28 NONE 29 NONE 30 NONE 31 NONE 32 NONE 33 NONE

Please help review.

Thanks

shivanangi commented 5 years ago

Hello Feng, is there any update to push this commit to support the 400G QSPF-DD Module?

jnealtowns commented 5 years ago

Thank you all for your contributions! I'm sorry this took so long.

Unfortunately this pull request couldn't be integrated as-is but I've used it as a starting point to add the support here: https://github.com/floodlight/bigcode/pull/95

It's all pretty basic at this point. Please let me know if you have any issues or concerns.

We can also use more eeprom testcases for the other types if you have them.