diff options
author | Mohammad Abdul Awal <mohammad.abdul.awal@intel.com> | 2017-05-11 13:36:12 +0100 |
---|---|---|
committer | Mohammad Abdul Awal <mohammad.abdul.awal@intel.com> | 2017-05-15 15:11:36 +0100 |
commit | fbba0a3bf2dbfd86e48efe9745af9f94203d5f80 (patch) | |
tree | 69ba709ff7ebc503fc2036324c1ffa09037a9f7d /test/gtest/test_tle_dring.h | |
parent | 8d020909941acca43cf7e772a99682a894347526 (diff) |
Added rte_ring wrapper functions to support dpdk-17.05 and older version
Change-Id: I5cfcff8be275ab2a2fb4ad6a62777a8cb88f425b
Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>
Diffstat (limited to 'test/gtest/test_tle_dring.h')
-rw-r--r-- | test/gtest/test_tle_dring.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/gtest/test_tle_dring.h b/test/gtest/test_tle_dring.h index a978bae..32a223e 100644 --- a/test/gtest/test_tle_dring.h +++ b/test/gtest/test_tle_dring.h @@ -145,7 +145,7 @@ init_drb_ring(uint32_t num) /* allocate and initialise rte_ring. */ n = rte_align32pow2(num); - sz = sizeof(*r) + n * sizeof(r->ring[0]); + sz = rte_ring_get_memsize(n); r = (struct rte_ring *)calloc(1, sz); if (r == NULL) { |