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

gatekeeper: more preparation for Ubuntu 24.04 LTS #693

Merged
merged 3 commits into from
Jun 27, 2024
Merged

Conversation

AltraMayor
Copy link
Owner

No description provided.

This commit avoids the following compilation warning:
lib/rib.c: In function ‘rib_create’:
lib/rib.c:125:15: warning: ‘dummy’ may be used uninitialized [-Wmaybe-uninitialized]
  125 |         ret = __read_addr(max_length, &dummy, (const uint8_t *)&dummy);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/rib.c:30:1: note: by argument 3 of type ‘const uint8_t *’ {aka ‘const unsigned char *’} to ‘__read_addr’ declared here
   30 | __read_addr(uint8_t length, rib_address_t *cpu_addr, const uint8_t *address)
      | ^~~~~~~~~~~
lib/rib.c:109:23: note: ‘dummy’ declared here
  109 |         rib_address_t dummy;
      |                       ^~~~~
Not only does gettid() require #define _GNU_SOURCE, but it has also
presented header problems in different versions of Lib C. So this
commit eases the effort to compile Gatekeeper on different distros.

A small benefit gained from using rte_gettid() is that it caches
the thread ID in a per-thread variable to avoid subsequent system
calls.
This commit centralizes all RSS fields that need to be set in
check_if_rss().
@AltraMayor AltraMayor added this to the Version 1.2 milestone Jun 26, 2024
@AltraMayor AltraMayor merged commit 8599065 into v1.2.0-dev Jun 27, 2024
1 check passed
@AltraMayor AltraMayor deleted the pre-u24.04 branch June 27, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant