Skip to content

faux-mgs: Move majority of implementation into gateway-sp-comms#1579

Merged
jgallagher merged 3 commits into
mainfrom
mgs-cleanup-1
Aug 17, 2022
Merged

faux-mgs: Move majority of implementation into gateway-sp-comms#1579
jgallagher merged 3 commits into
mainfrom
mgs-cleanup-1

Conversation

@jgallagher

Copy link
Copy Markdown
Contributor

This is the first of two PRs that work toward a cleanup of MGS's implementation and making it share the bulk of its implementation with faux-mgs. In this PR, we add a SingleSp to gateway-sp-comms and rework faux-mgs to use it. SingleSp is a handle to a tokio task that owns a single UdpSocket used to talk to a single SP (and in the full MGS sense, is conceptually the socket associated with one port of the management network switch).

The next PR will rework MGS proper to make use of SingleSp; in this PR, it is only used by faux-mgs.

@andrewjstone andrewjstone left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks really good. Mostly nits from me.

Comment thread gateway-sp-comms/src/single_sp.rs Outdated
Comment thread gateway-sp-comms/src/communicator.rs Outdated
Comment thread gateway-sp-comms/src/single_sp.rs Outdated
Comment thread gateway-sp-comms/src/single_sp.rs Outdated
Comment thread gateway-sp-comms/src/single_sp.rs Outdated
Comment thread gateway-sp-comms/src/single_sp.rs Outdated
Comment thread gateway-sp-comms/src/single_sp.rs Outdated
Comment thread gateway-sp-comms/src/single_sp.rs Outdated
Comment thread gateway-sp-comms/src/single_sp.rs Outdated
Comment thread gateway-sp-comms/src/single_sp.rs
@jgallagher jgallagher enabled auto-merge (squash) August 17, 2022 16:00
@jgallagher jgallagher merged commit 419b1d1 into main Aug 17, 2022
@jgallagher jgallagher deleted the mgs-cleanup-1 branch August 17, 2022 16:36
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