Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Subport] Fix issues on portsorch.cpp #21

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

peter-yu
Copy link

@peter-yu peter-yu commented Aug 9, 2024

  1. [Subport] Keep vlan tag when add member port into portchannel of subport

When add member port into portchannel, if the portchannel has subport interface, the port should keep the vlan tag.

  1. Handle HostIntfsStripTag properly

removeBridgePort should check port.m_child_ports.empty() before HostIntfsStripTag(,SAI_HOSTIF_VLAN_TAG_STRIP).

  1. fix ERR syslog while test_subport setup/teardown

fix 2:

config portchannel add PortChannel1
config interface ip add PortChannel1.40 100.40.40.40/24

config interface ip remove PortChannel1.40 100.40.40.40/24 config portchannel del PortChannel1

syslog:
Dec 27 15:01:38.336049 as5812-54x NOTICE swss#orchagent: :- removeRouterIntfs: Router interface is still referenced Dec 27 15:01:38.337833 as5812-54x ERR swss#orchagent: :- meta_generic_validation_remove: object 0x2000000000a81 reference count is 1, can't remove Dec 27 15:01:38.338038 as5812-54x ERR swss#orchagent: :- removeLag: Failed to remove LAG PortChannel1 lid:2000000000a81

root cause:
portchannel is still reference by subport

solution: PortsOrch::doLagTask, op == DEL_COMMAND

=====
fix 3:

syslog:
Dec 24 17:28:01.030970 as5812-54x ERR swss#orchagent: :- meta_sai_validate_oid: oid is set to null object id on SAI_OBJECT_TYPE_LAG_MEMBER Dec 24 17:28:01.031218 as5812-54x ERR swss#orchagent: :- setCollectionOnLagMember: Failed to enable collection on LAG member Ethernet28

root cause:
PortsOrch::setCollectionOnLagMember/ setDistributionOnLagMember, check lag member id

What I did

Why I did it

How I verified it

Details if related

@peter-yu peter-yu marked this pull request as ready for review August 9, 2024 02:52
@gord1306
Copy link

@peter-yu Please rewrite the headline to describe what the code change for

1. [Subport] Keep vlan tag when add member port into portchannel of subport

When add member port into portchannel, if the portchannel has subport interface,
the port should keep the vlan tag.

2. Handle HostIntfsStripTag properly

removeBridgePort should check port.m_child_ports.empty() before HostIntfsStripTag(,SAI_HOSTIF_VLAN_TAG_STRIP).

3. fix ERR syslog while test_subport setup/teardown

fix 2:

config portchannel add PortChannel1
config interface ip add PortChannel1.40 100.40.40.40/24

config interface ip remove PortChannel1.40 100.40.40.40/24
config portchannel del PortChannel1

syslog:
Dec 27 15:01:38.336049 as5812-54x NOTICE swss#orchagent: :- removeRouterIntfs: Router interface is still referenced
Dec 27 15:01:38.337833 as5812-54x ERR swss#orchagent: :- meta_generic_validation_remove: object 0x2000000000a81 reference count is 1, can't remove
Dec 27 15:01:38.338038 as5812-54x ERR swss#orchagent: :- removeLag: Failed to remove LAG PortChannel1 lid:2000000000a81

root cause:
portchannel is still reference by subport

solution: PortsOrch::doLagTask, op == DEL_COMMAND

=====
fix 3:

syslog:
Dec 24 17:28:01.030970 as5812-54x ERR swss#orchagent: :- meta_sai_validate_oid: oid is set to null object id on SAI_OBJECT_TYPE_LAG_MEMBER
Dec 24 17:28:01.031218 as5812-54x ERR swss#orchagent: :- setCollectionOnLagMember: Failed to enable collection on LAG member Ethernet28

root cause:
PortsOrch::setCollectionOnLagMember/ setDistributionOnLagMember, check lag member id
@peter-yu peter-yu changed the title Sync portorch.cpp [Subport] Fix issues on portsorch.cpp Aug 14, 2024
@peter-yu
Copy link
Author

@gord1306 commit headline updated

@gord1306 gord1306 merged commit a8e65f1 into edge-core:202311.X Aug 14, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants