Commit 9045995
[orchagent]: Enhance initSaiPhyApi (#2367)
* Add support for generic hwinfo string in gearbox_config.json
The SAI_SWITCH_ATTR_SWITCH_HARDWARE_INFO formatting is vendor specific.
* Remove the formating check that assumes its of the mdio sysfs format
* Note the the count remains without including the NULL termintor,
which is not compliant with the SAI header definintion that indicates
a NULL terminated string.
Signed-off-by: [email protected]
* Add support to allow Firmware Major Version to return unsupported"
Some external phys do not support Firmware upgrades and therefore
do not have a firmware version.
The SAI_SWITCH_ATTR_FIRMWARE_MAJOR_VERSION may return
SAI_STATUS_ATTR_NOT_SUPPORTED which needs to be gracefully
supported and allow the phy to be created.
* Allow SAI_STATUS_NOT_SUPPORTED return value and set
version to empty string.
Signed-off-by: Aaron Payment <[email protected]>
* Address review comments
* Address review comments, fix hwinfo
Co-authored-by: Aaron Payment <[email protected]>1 parent 9d3a5c5 commit 9045995
1 file changed
+20
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | 362 | | |
366 | 363 | | |
367 | 364 | | |
| |||
377 | 374 | | |
378 | 375 | | |
379 | 376 | | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
385 | 380 | | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
| 381 | + | |
| 382 | + | |
393 | 383 | | |
394 | 384 | | |
395 | | - | |
| 385 | + | |
396 | 386 | | |
397 | 387 | | |
398 | 388 | | |
| |||
452 | 442 | | |
453 | 443 | | |
454 | 444 | | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
| 445 | + | |
463 | 446 | | |
464 | | - | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
465 | 459 | | |
466 | | - | |
467 | 460 | | |
468 | 461 | | |
| 462 | + | |
0 commit comments