diff options
author | Damjan Marion <damarion@cisco.com> | 2017-10-12 13:09:26 +0200 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-10-25 19:04:06 +0000 |
commit | 149ba779cff4ffc48d87ca67a2a8d4afd49b05f5 (patch) | |
tree | bc0467669b33b745fe4f44d4d0c787cf53900536 /src/plugins/dpdk/device/dpdk_priv.h | |
parent | a19d7b822ae9584cde522aefba36915e2af58846 (diff) |
vlib: add support for multiple buffer pools
Change-Id: Icaf7d7ad47284aea7a56e8006b69f45874d64202
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/dpdk/device/dpdk_priv.h')
-rw-r--r-- | src/plugins/dpdk/device/dpdk_priv.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/dpdk_priv.h b/src/plugins/dpdk/device/dpdk_priv.h index 52b4ca4b303..a95d03cfba4 100644 --- a/src/plugins/dpdk/device/dpdk_priv.h +++ b/src/plugins/dpdk/device/dpdk_priv.h @@ -51,6 +51,14 @@ _(proc-type) \ _(file-prefix) \ _(vdev) +typedef struct +{ + /* must be first */ + struct rte_pktmbuf_pool_private mbp_priv; + u8 buffer_pool_index; +} dpdk_mempool_private_t; + + static inline void dpdk_get_xstats (dpdk_device_t * xd) { |