aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libtle_dring
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libtle_dring')
-rw-r--r--lib/libtle_dring/Makefile18
-rw-r--r--lib/libtle_dring/tle_dring.h2
2 files changed, 3 insertions, 17 deletions
diff --git a/lib/libtle_dring/Makefile b/lib/libtle_dring/Makefile
index fa03e90..f91e178 100644
--- a/lib/libtle_dring/Makefile
+++ b/lib/libtle_dring/Makefile
@@ -11,24 +11,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-ifeq ($(RTE_SDK),)
-$(error "Please define RTE_SDK environment variable")
-endif
-
-# Default target, can be overwritten by command line or environment
-RTE_TARGET ?= x86_64-native-linuxapp-gcc
-
-include $(RTE_SDK)/mk/rte.vars.mk
-
# library name
-LIB = libtle_dring.a
-
-CFLAGS += -O3
-CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR)
-
-EXPORT_MAP := tle_dring_version.map
+LIB_NAME = libtle_dring
-LIBABIVER := 1
+include $(TLDK_ROOT)/mk/tle.var.mk
#source files
SRCS-y += dring.c
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);
}