Skip to content

Commit 0d8489c

Browse files
committed
vslib: support SAI_PORT_ATTR_HOST_TX_READY_STATUS
Signed-off-by: Wataru Ishida <[email protected]>
1 parent d4846a8 commit 0d8489c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

vslib/SwitchStateBase.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,6 +1235,11 @@ sai_status_t SwitchStateBase::create_ports()
12351235
attr.value.u32 = DEFAULT_VLAN_NUMBER;
12361236

12371237
CHECK_STATUS(set(SAI_OBJECT_TYPE_PORT, port_id, &attr));
1238+
1239+
attr.id = SAI_PORT_ATTR_HOST_TX_READY_STATUS;
1240+
attr.value.u32 = SAI_PORT_HOST_TX_READY_STATUS_READY;
1241+
1242+
CHECK_STATUS(set(SAI_OBJECT_TYPE_PORT, port_id, &attr));
12381243
}
12391244

12401245
return SAI_STATUS_SUCCESS;
@@ -1699,6 +1704,11 @@ sai_status_t SwitchStateBase::create_port_dependencies(
16991704

17001705
CHECK_STATUS(set(SAI_OBJECT_TYPE_PORT, port_id, &attr));
17011706

1707+
attr.id = SAI_PORT_ATTR_HOST_TX_READY_STATUS;
1708+
attr.value.u32 = SAI_PORT_HOST_TX_READY_STATUS_READY;
1709+
1710+
CHECK_STATUS(set(SAI_OBJECT_TYPE_PORT, port_id, &attr));
1711+
17021712
// attributes are not required since they will be set outside this function
17031713

17041714
CHECK_STATUS(create_ingress_priority_groups_per_port(port_id));
@@ -2423,6 +2433,7 @@ sai_status_t SwitchStateBase::refresh_read_only(
24232433
*/
24242434

24252435
case SAI_PORT_ATTR_OPER_STATUS:
2436+
case SAI_PORT_ATTR_HOST_TX_READY_STATUS:
24262437
return SAI_STATUS_SUCCESS;
24272438

24282439
case SAI_PORT_ATTR_FABRIC_ATTACHED:

0 commit comments

Comments
 (0)