]> git.proxmox.com Git - mirror_ovs.git/commit
dpif-netdev-perf: Fix linker unresolved symbols on Windows
authorAlin Gabriel Serdean <aserdean@ovn.org>
Tue, 15 May 2018 00:48:59 +0000 (03:48 +0300)
committerAlin Gabriel Serdean <aserdean@ovn.org>
Tue, 15 May 2018 12:17:56 +0000 (15:17 +0300)
commit12028f5f4cfe2292e3c4e02e63e404e35c5fac19
treea9de5fb30fc896c1083ca6a676ac34f4cfb8dcbf
parent39ca338374abe367e28a2247bac9159695f19710
dpif-netdev-perf: Fix linker unresolved symbols on Windows

MSVC complains:
"libopenvswitch.lib(dpif-netdev.obj) : error LNK2019: unresolved external
symbol pmd_perf_start_iteration referenced in function pmd_thread_main
libopenvswitch.lib(dpif-netdev.obj) : error LNK2019: unresolved external
symbol pmd_perf_end_iteration referenced in function pmd_thread_main"

Remove inline keyword from the declaration of:
`pmd_perf_start_iteration` and `pmd_perf_end_iteration`

More on the subject:
https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/function-inlining-problems

Fixes: broken build on Windows
Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
lib/dpif-netdev-perf.c