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
version: 21.11-rc0
[dpdk.git]
/
drivers
/
crypto
/
virtio
/
virtio_pci.h
diff --git
a/drivers/crypto/virtio/virtio_pci.h
b/drivers/crypto/virtio/virtio_pci.h
index
d9a214d
..
0a7ea1b
100644
(file)
--- a/
drivers/crypto/virtio/virtio_pci.h
+++ b/
drivers/crypto/virtio/virtio_pci.h
@@
-7,6
+7,7
@@
#include <stdint.h>
#include <stdint.h>
+#include <rte_eal_paging.h>
#include <rte_pci.h>
#include <rte_bus_pci.h>
#include <rte_cryptodev.h>
#include <rte_pci.h>
#include <rte_bus_pci.h>
#include <rte_cryptodev.h>
@@
-67,7
+68,7
@@
struct virtqueue;
*
* Note the sizeof(struct vring_desc) is 16 bytes.
*/
*
* Note the sizeof(struct vring_desc) is 16 bytes.
*/
-#define VIRTIO_MAX_INDIRECT ((int) (
PAGE_SIZE
/ 16))
+#define VIRTIO_MAX_INDIRECT ((int) (
rte_mem_page_size()
/ 16))
/* Do we get callbacks when the ring is completely used, even if we've
* suppressed them?
/* Do we get callbacks when the ring is completely used, even if we've
* suppressed them?