Skip to content

Commit

Permalink
fix(xcvrd): handle port add/remove events in CmisManagerTask
Browse files Browse the repository at this point in the history
This commit fixes DPB support with CMIS transceivers.

CmisManagerTask's `port_dict` must be updated according to the port add/remove events.
This commit removes the `port_mapping` field from CmisManagerTask as
`port_mapping` was mostly used just for storing `asic_id` information
and that can be simply done by `port_dict` instead.

Added a helper method `get_asic_id()` method to CmisManagerTask for
getting `asic_id` from `logical_port`.

fixes sonic-net/sonic-buildimage#18893

Signed-off-by: Wataru Ishida <[email protected]>
  • Loading branch information
ishidawataru committed Jun 19, 2024
1 parent 81dd07c commit fcc0099
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 67 deletions.
Loading

0 comments on commit fcc0099

Please sign in to comment.