From bc48589e47be0311fe1ba56e262ae68fe599bb7b Mon Sep 17 00:00:00 2001 From: Pavan Bhagavatula Date: Thu, 21 Sep 2017 17:20:20 +0530 Subject: [PATCH] eal: move bitmap from sched library The librte_sched uses rte_bitmap to manage large arrays of bits in an optimized method so, moving it to eal/common would allow other libraries and applications to use it. Signed-off-by: Pavan Nikhilesh Acked-by: Cristian Dumitrescu --- MAINTAINERS | 4 ++++ lib/librte_eal/common/Makefile | 1 + lib/{librte_sched => librte_eal/common/include}/rte_bitmap.h | 0 lib/librte_sched/Makefile | 2 +- lib/librte_sched/rte_sched.c | 2 +- 5 files changed, 7 insertions(+), 2 deletions(-) rename lib/{librte_sched => librte_eal/common/include}/rte_bitmap.h (100%) diff --git a/MAINTAINERS b/MAINTAINERS index 0b1bf96ac1..095d083ee2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -146,6 +146,10 @@ F: lib/librte_eal/common/rte_service.c F: doc/guides/prog_guide/service_cores.rst F: test/test/test_service_cores.c +Bitmap +M: Cristian Dumitrescu +F: lib/librte_eal/common/include/rte_bitmap.h + ARM v7 M: Jan Viktorin M: Jianbo Liu diff --git a/lib/librte_eal/common/Makefile b/lib/librte_eal/common/Makefile index 4e6baaa723..b335417242 100644 --- a/lib/librte_eal/common/Makefile +++ b/lib/librte_eal/common/Makefile @@ -42,6 +42,7 @@ INC += rte_hexdump.h rte_devargs.h rte_bus.h rte_dev.h rte_vdev.h INC += rte_pci_dev_feature_defs.h rte_pci_dev_features.h INC += rte_malloc.h rte_keepalive.h rte_time.h INC += rte_service.h rte_service_component.h +INC += rte_bitmap.h GENERIC_INC := rte_atomic.h rte_byteorder.h rte_cycles.h rte_prefetch.h GENERIC_INC += rte_spinlock.h rte_memcpy.h rte_cpuflags.h rte_rwlock.h diff --git a/lib/librte_sched/rte_bitmap.h b/lib/librte_eal/common/include/rte_bitmap.h similarity index 100% rename from lib/librte_sched/rte_bitmap.h rename to lib/librte_eal/common/include/rte_bitmap.h diff --git a/lib/librte_sched/Makefile b/lib/librte_sched/Makefile index 18274e73c8..e509447f72 100644 --- a/lib/librte_sched/Makefile +++ b/lib/librte_sched/Makefile @@ -55,7 +55,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_SCHED) += rte_sched.c rte_red.c rte_approx.c SRCS-$(CONFIG_RTE_LIBRTE_SCHED) += rte_reciprocal.c # install includes -SYMLINK-$(CONFIG_RTE_LIBRTE_SCHED)-include := rte_sched.h rte_bitmap.h rte_sched_common.h rte_red.h rte_approx.h +SYMLINK-$(CONFIG_RTE_LIBRTE_SCHED)-include := rte_sched.h rte_sched_common.h rte_red.h rte_approx.h SYMLINK-$(CONFIG_RTE_LIBRTE_SCHED)-include += rte_reciprocal.h include $(RTE_SDK)/mk/rte.lib.mk diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c index b7cba110f6..a2d0d68521 100644 --- a/lib/librte_sched/rte_sched.c +++ b/lib/librte_sched/rte_sched.c @@ -42,9 +42,9 @@ #include #include #include +#include #include "rte_sched.h" -#include "rte_bitmap.h" #include "rte_sched_common.h" #include "rte_approx.h" #include "rte_reciprocal.h" -- 2.39.5