Skip to content

Commit 5ef0a32

Browse files
stephenxsstephens
authored and
stephens
committed
Support auto negotiation
Signed-off-by: Stephen Sun <[email protected]>
1 parent 6ee6444 commit 5ef0a32

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

vslib/SwitchStateBase.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -1336,6 +1336,11 @@ sai_status_t SwitchStateBase::create_ports()
13361336
attr.value.u32 = SAI_PORT_HOST_TX_READY_STATUS_READY;
13371337

13381338
CHECK_STATUS(set(SAI_OBJECT_TYPE_PORT, port_id, &attr));
1339+
1340+
attr.id = SAI_PORT_ATTR_AUTO_NEG_MODE;
1341+
attr.value.booldata = false;
1342+
1343+
CHECK_STATUS(set(SAI_OBJECT_TYPE_PORT, port_id, &attr));
13391344
}
13401345

13411346
return SAI_STATUS_SUCCESS;
@@ -1806,6 +1811,11 @@ sai_status_t SwitchStateBase::create_port_dependencies(
18061811

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

1814+
attr.id = SAI_PORT_ATTR_AUTO_NEG_MODE;
1815+
attr.value.booldata = false;
1816+
1817+
CHECK_STATUS(set(SAI_OBJECT_TYPE_PORT, port_id, &attr));
1818+
18091819
// attributes are not required since they will be set outside this function
18101820

18111821
CHECK_STATUS(create_ingress_priority_groups_per_port(port_id));

0 commit comments

Comments
 (0)