Skip to content

Merge ChannelTrigger with ProxyTrigger#601

Merged
chhwang merged 3 commits intomainfrom
chhwang/trigger
Aug 8, 2025
Merged

Merge ChannelTrigger with ProxyTrigger#601
chhwang merged 3 commits intomainfrom
chhwang/trigger

Conversation

@chhwang
Copy link
Contributor

@chhwang chhwang commented Aug 7, 2025

No description provided.

@chhwang chhwang requested review from Binyang2014 and Copilot August 7, 2025 17:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR merges the ChannelTrigger union with the ProxyTrigger struct to simplify the trigger handling in the proxy service by eliminating the need for reinterpret_cast operations and consolidating the trigger structure definitions.

  • Removed the separate ChannelTrigger union and moved its functionality into ProxyTrigger
  • Simplified proxy trigger handling by removing reinterpret_cast operations
  • Updated device-side trigger construction to use the unified ProxyTrigger structure

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/port_channel.cc Simplified handleTrigger to work directly with ProxyTrigger instead of casting
python/mscclpp/fifo_py.cpp Removed Python bindings for ProxyTrigger field access
include/mscclpp/port_channel_device.hpp Removed ChannelTrigger union and updated device calls to use ProxyTrigger directly
include/mscclpp/fifo_device.hpp Enhanced ProxyTrigger to include the fields union and constructor from ChannelTrigger

@chhwang chhwang enabled auto-merge (squash) August 8, 2025 19:03
@chhwang chhwang merged commit 542a10f into main Aug 8, 2025
14 checks passed
@chhwang chhwang deleted the chhwang/trigger branch August 8, 2025 19:07
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