From f43ed4a0983f8df1e161514b29c0888b6a5a88c2 Mon Sep 17 00:00:00 2001 From: Shu0T1an ChenG Date: Fri, 21 Jul 2017 11:47:43 -0700 Subject: [PATCH] [portsorch]: Remove SAI_PORT_ATTR_BIND_MODE This attribute is removed in the SAI master. Port can be part of .1D bridge and VLANs at the same time. Hence bind mode is not necessary. --- orchagent/portsorch.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/orchagent/portsorch.cpp b/orchagent/portsorch.cpp index fe22d1fc75..f9bef1e32f 100644 --- a/orchagent/portsorch.cpp +++ b/orchagent/portsorch.cpp @@ -1181,20 +1181,6 @@ bool PortsOrch::addVlanMember(Port vlan, Port port, string& tagging_mode) SWSS_LOG_NOTICE("Set untagged port %s VLAN ID to %hu", port.m_alias.c_str(), vlan.m_vlan_id); } -#if 0 - // Set port bind mode - sai_attribute_t port_attr; - port_attr.id = SAI_PORT_ATTR_BIND_MODE; - port_attr.value.s32 = SAI_PORT_BIND_MODE_PORT; - status = sai_port_api->set_port_attribute(port.m_port_id, &port_attr); - if (status != SAI_STATUS_SUCCESS) - { - SWSS_LOG_ERROR("Failed to set port pid:%lx bind mode to port: %d", - port.m_port_id, status); - return false; - } -#endif - port.m_vlan_id = vlan.m_vlan_id; port.m_port_vlan_id = vlan.m_vlan_id; port.m_vlan_member_id = vlan_member_id;