diff --git a/vslib/SwitchStateBase.cpp b/vslib/SwitchStateBase.cpp index fc1f46e59..0cf5fcb6d 100644 --- a/vslib/SwitchStateBase.cpp +++ b/vslib/SwitchStateBase.cpp @@ -1235,6 +1235,11 @@ sai_status_t SwitchStateBase::create_ports() attr.value.u32 = DEFAULT_VLAN_NUMBER; CHECK_STATUS(set(SAI_OBJECT_TYPE_PORT, port_id, &attr)); + + attr.id = SAI_PORT_ATTR_HOST_TX_READY_STATUS; + attr.value.u32 = SAI_PORT_HOST_TX_READY_STATUS_READY; + + CHECK_STATUS(set(SAI_OBJECT_TYPE_PORT, port_id, &attr)); } return SAI_STATUS_SUCCESS; @@ -1699,6 +1704,11 @@ sai_status_t SwitchStateBase::create_port_dependencies( CHECK_STATUS(set(SAI_OBJECT_TYPE_PORT, port_id, &attr)); + attr.id = SAI_PORT_ATTR_HOST_TX_READY_STATUS; + attr.value.u32 = SAI_PORT_HOST_TX_READY_STATUS_READY; + + CHECK_STATUS(set(SAI_OBJECT_TYPE_PORT, port_id, &attr)); + // attributes are not required since they will be set outside this function CHECK_STATUS(create_ingress_priority_groups_per_port(port_id)); @@ -2425,6 +2435,7 @@ sai_status_t SwitchStateBase::refresh_read_only( */ case SAI_PORT_ATTR_OPER_STATUS: + case SAI_PORT_ATTR_HOST_TX_READY_STATUS: return SAI_STATUS_SUCCESS; case SAI_PORT_ATTR_FABRIC_ATTACHED: