diff options
-rw-r--r-- | lib/libtle_dring/tle_dring.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libtle_dring/tle_dring.h b/lib/libtle_dring/tle_dring.h index 6aac22a..51cb7b7 100644 --- a/lib/libtle_dring/tle_dring.h +++ b/lib/libtle_dring/tle_dring.h @@ -527,7 +527,7 @@ tle_drb_calc_size(uint32_t num) { size_t sz; - sz = offsetof(struct tle_drb, objs[num]); + sz = offsetof(struct tle_drb, objs) + (sizeof(void*) * num); return RTE_ALIGN_CEIL(sz, RTE_CACHE_LINE_SIZE); } |