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

Fix RDMA support in sample apps #241

Merged
merged 2 commits into from
Oct 29, 2024
Merged

Conversation

ko80
Copy link
Collaborator

@ko80 ko80 commented Oct 29, 2024

This pull request includes the following commits:

  • Fix RDMA support in sample apps
  • Correct out_dir in text-rdma.sh

Commit a4f5e3d ("Refactor MCM Data Plane SDK API + upgrade FFmpeg plugins and sample apps (OpenVisualCloud#213)")
introduced a new MCM SDK API but occassionally removed RDMA
support from sample apps.

Add support of RDMA in sample apps with the new API.

Fixes: a4f5e3d ("Refactor MCM Data Plane SDK API + upgrade FFmpeg plugins and sample apps (OpenVisualCloud#213)")
Signed-off-by: Konstantin Ilichev <konstantin.ilichev@intel.com>
Change-type: DefectResolution
Signed-off-by: Kasiewicz, Marek <marek.kasiewicz@intel.com>
Copy link
Collaborator

@Sakoram Sakoram left a comment

Choose a reason for hiding this comment

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

I see some imperfections in the design as we are forced to create a big if statement to switch between payload types and set exactly the same fields (ip and ports) in almost identical structures.

I guess it should be done differently for example with some inheritance ( translated into C: placing common structure at the front of the specific structure) then we could set common parameters ones, and branch only to do things that are different.

Anyway, the code works. The design improvements can be done in the future.

@ko80
Copy link
Collaborator Author

ko80 commented Oct 29, 2024

I see some imperfections in the design as we are forced to create a big if statement to switch between payload types and set exactly the same fields (ip and ports) in almost identical structures.

I guess it should be done differently for example with some inheritance ( translated into C: placing common structure at the front of the specific structure) then we could set common parameters ones, and branch only to do things that are different.

Anyway, the code works. The design improvements can be done in the future.

Yeah, it will be reworked shortly since we've already planned to move to the JSON-based configuration.

Copy link
Collaborator

@tszumski tszumski left a comment

Choose a reason for hiding this comment

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

LGTM

@ko80 ko80 merged commit e742afe into OpenVisualCloud:main Oct 29, 2024
7 checks 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.

5 participants