Skip to content

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
@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.

2 participants