git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/octeontx: support fast mbuf free
[dpdk.git]
/
buildtools
/
pmdinfogen
/
pmdinfogen.h
diff --git
a/buildtools/pmdinfogen/pmdinfogen.h
b/buildtools/pmdinfogen/pmdinfogen.h
index
1da2966
..
93930e4
100644
(file)
--- a/
buildtools/pmdinfogen/pmdinfogen.h
+++ b/
buildtools/pmdinfogen/pmdinfogen.h
@@
-1,12
+1,8
@@
-
-
/
* Postprocess pmd object files to export hw support
+/* SPDX-License-Identifier: GPL-2.0
+
* Postprocess pmd object files to export hw support
*
* Copyright 2016 Neil Horman <nhorman@tuxdriver.com>
* Based in part on modpost.c from the linux kernel
*
* Copyright 2016 Neil Horman <nhorman@tuxdriver.com>
* Based in part on modpost.c from the linux kernel
- *
- * This software may be used and distributed according to the terms
- * of the GNU General Public License V2, incorporated herein by reference.
- *
*/
#include <stdio.h>
*/
#include <stdio.h>
@@
-16,12
+12,15
@@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
+#ifdef __linux__
+#include <endian.h>
+#else
+#include <sys/endian.h>
+#endif
#include <fcntl.h>
#include <unistd.h>
#include <elf.h>
#include <fcntl.h>
#include <unistd.h>
#include <elf.h>
-#include <rte_config.h>
#include <rte_pci.h>
#include <rte_pci.h>
-#include <rte_byteorder.h>
/* On BSD-alike OSes elf.h defines these according to host's word size */
#undef ELF_ST_BIND
/* On BSD-alike OSes elf.h defines these according to host's word size */
#undef ELF_ST_BIND
@@
-75,9
+74,9
@@
#define CONVERT_NATIVE(fend, width, x) ({ \
typeof(x) ___x; \
if ((fend) == ELFDATA2LSB) \
#define CONVERT_NATIVE(fend, width, x) ({ \
typeof(x) ___x; \
if ((fend) == ELFDATA2LSB) \
- ___x =
rte_le_to_cpu_##widt
h(x); \
+ ___x =
le##width##to
h(x); \
else \
else \
- ___x =
rte_be_to_cpu_##widt
h(x); \
+ ___x =
be##width##to
h(x); \
___x; \
})
___x; \
})
@@
-85,6
+84,7
@@
else \
enum opt_params {
PMD_PARAM_STRING = 0,
enum opt_params {
PMD_PARAM_STRING = 0,
+ PMD_KMOD_DEP,
PMD_OPT_MAX
};
PMD_OPT_MAX
};
@@
-117,4
+117,3
@@
struct elf_info {
struct pmd_driver *drivers;
};
struct pmd_driver *drivers;
};
-