Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions vslib/SwitchStateBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1336,6 +1336,11 @@ sai_status_t SwitchStateBase::create_ports()
attr.value.u32 = SAI_PORT_HOST_TX_READY_STATUS_READY;

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

attr.id = SAI_PORT_ATTR_AUTO_NEG_MODE;
attr.value.booldata = true;

CHECK_STATUS(set(SAI_OBJECT_TYPE_PORT, port_id, &attr));
}

return SAI_STATUS_SUCCESS;
Expand Down Expand Up @@ -1806,6 +1811,11 @@ sai_status_t SwitchStateBase::create_port_dependencies(

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

attr.id = SAI_PORT_ATTR_AUTO_NEG_MODE;
attr.value.booldata = true;

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));
Expand Down