Skip to content

Add: Add to GStreamer lcore mask support #1119

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

DawidWesierski4
Copy link
Collaborator

  • Add lcore masking support to allow users to specify the lcores the MTL plugin can use. This is useful for scenarios with isolated lcores.

  • Fix missing port and PTP arguments in gst common get arguments.

- Add lcore masking support to allow users
  to specify the lcores  the MTL plugin can use.
  This is useful for scenarios with isolated lcores.

- Fix missing port and PTP arguments in gst common
  get arguments.

g_object_class_install_property(
gobject_class, PROP_GENERAL_LCORE_MASK,
g_param_spec_string("lcore-mask", "dpdk core mask",
Copy link
Collaborator

@Sakoram Sakoram Apr 1, 2025

Choose a reason for hiding this comment

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

naming this "mask" suggests that it should be used like --lcore-mask 00101 or even with single number like --lcore-mask 20 (representing binary mask as single number), but it should be used like --lcore-list 2,4. Consider renaming it.

@@ -64,6 +65,7 @@ typedef struct GeneralArgs {
gchar dma_dev[MTL_PORT_MAX_LEN];
gint log_level;
gboolean enable_onboard_ptp;
gchar lcore_mask[MTL_PORT_MAX_LEN];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we set all the arrays length to MTL_PORT_MAX_LEN? It is very confusing.

 - Mtl parses the lcore list but adds the main
   lcore to the list. This is not described
   anywhere and should be corrected.
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