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
eal: fix tailq init for uio and vfio resources
[dpdk.git]
/
lib
/
librte_eal
/
linuxapp
/
eal
/
eal_pci_init.h
diff --git
a/lib/librte_eal/linuxapp/eal/eal_pci_init.h
b/lib/librte_eal/linuxapp/eal/eal_pci_init.h
index
0a0853d
..
aa7b755
100644
(file)
--- a/
lib/librte_eal/linuxapp/eal/eal_pci_init.h
+++ b/
lib/librte_eal/linuxapp/eal/eal_pci_init.h
@@
-38,6
+38,7
@@
struct pci_map {
void *addr;
struct pci_map {
void *addr;
+ char *path;
uint64_t offset;
uint64_t size;
uint64_t phaddr;
uint64_t offset;
uint64_t size;
uint64_t phaddr;
@@
-57,7
+58,6
@@
struct mapped_pci_resource {
};
TAILQ_HEAD(mapped_pci_res_list, mapped_pci_resource);
};
TAILQ_HEAD(mapped_pci_res_list, mapped_pci_resource);
-extern struct mapped_pci_res_list *pci_res_list;
/*
* Helper function to map PCI resources right after hugepages in virtual memory
/*
* Helper function to map PCI resources right after hugepages in virtual memory
@@
-71,6
+71,13
@@
void *pci_map_resource(void *requested_addr, int fd, off_t offset,
/* map IGB_UIO resource prototype */
int pci_uio_map_resource(struct rte_pci_device *dev);
/* map IGB_UIO resource prototype */
int pci_uio_map_resource(struct rte_pci_device *dev);
+void pci_unmap_resource(void *requested_addr, size_t size);
+
+#ifdef RTE_LIBRTE_EAL_HOTPLUG
+/* unmap IGB_UIO resource prototype */
+void pci_uio_unmap_resource(struct rte_pci_device *dev);
+#endif /* RTE_LIBRTE_EAL_HOTPLUG */
+
#ifdef VFIO_PRESENT
#define VFIO_MAX_GROUPS 64
#ifdef VFIO_PRESENT
#define VFIO_MAX_GROUPS 64