diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2023-08-14 09:31:25 -0700 |
---|---|---|
committer | David Marchand <david.marchand@redhat.com> | 2023-12-01 16:40:06 +0100 |
commit | e6e2701997bf71e538c84ca46b441cef1a077d4e (patch) | |
tree | 546f22d958ee115013b595f3cc18c6cf6ea035fb /lib | |
parent | 3ff028e2e775918f40ae6f93fa35c757e85a9196 (diff) |
power: use a dynamic logtype for guest channel
DPDK libraries should not be reusing RTE_LOGTYPE_USER1 in
lieu of doing proper logtype registration.
Fixes: cd0d5547e873 ("power: vm communication channels in guest")
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/power/guest_channel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/power/guest_channel.c b/lib/power/guest_channel.c index 7b2ae0b650..cc05347425 100644 --- a/lib/power/guest_channel.c +++ b/lib/power/guest_channel.c @@ -17,7 +17,8 @@ #include "guest_channel.h" -#define RTE_LOGTYPE_GUEST_CHANNEL RTE_LOGTYPE_USER1 +RTE_LOG_REGISTER_SUFFIX(guest_channel_logtype, guest_channel, INFO); +#define RTE_LOGTYPE_GUEST_CHANNEL guest_channel_logtype /* Timeout for incoming message in milliseconds. */ #define TIMEOUT 10 |