Commit b8e3fa2
Remove FirmwareMinorVersion query for PAI
Summary:
PAI sdk does not support the `FirmwareMinorVersion` switch attribute. When querying this attribute, the SAI API returns error code.
This diff removes the `FirmwareMinorVersion` query from `fwVersionImpl()` and updates the version string format to only include the major version. The firmware version struct still populates the major version correctly.
Reference from PAI 4.0 testing:
```
s_a[0].id=172; // FirmwareMinorVersion
rv=switch_api->get_switch_attribute(...);
// rv: fffb0000 (SAI_STATUS_ATTR_NOT_SUPPORTED)
```
Also in the pai reference guide, we see that only FirmwareMajorVersion attribute is supported
{F1984397807}
**note: This change is limited ot SaiPhyRetimer class which is only used by ladakh**
Reviewed By: harshitgulati18
Differential Revision: D89773816
fbshipit-source-id: c48364acf0cbf8cefc67ad79c378c165f4a120d41 parent 5ff28b2 commit b8e3fa2
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
135 | | - | |
| 133 | + | |
136 | 134 | | |
137 | 135 | | |
138 | 136 | | |
| |||
0 commit comments