Skip to content

Commit

Permalink
[dpdk-rs] Bug Fix: always include rte_config.h first
Browse files Browse the repository at this point in the history
dpdk expects/requires you to include rte_config.h before any other
header. don't include rte_build_config.h directly instead include
rte_config.h which includes rte_build_config.h.

Signed-off-by: Tyler Retzlaff <[email protected]>
  • Loading branch information
tylerretzlaff authored and anandbonde committed Dec 20, 2023
1 parent 7fc12c6 commit 4f56b46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dpdk-rs/inlined.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Licensed under the MIT license.
*/

#include <rte_config.h>
#include <rte_errno.h>
#include <rte_ethdev.h>
#include <rte_ether.h>
Expand Down
2 changes: 1 addition & 1 deletion dpdk-rs/wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Licensed under the MIT license.
*/

#include <rte_build_config.h>
#include <rte_config.h>
#include <rte_ethdev.h>
#include <rte_common.h>
#include <rte_cycles.h>
Expand Down

0 comments on commit 4f56b46

Please sign in to comment.