From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0047.outbound.protection.outlook.com [104.47.37.47]) by dpdk.org (Postfix) with ESMTP id 88E321B19C for ; Thu, 21 Sep 2017 13:50:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Kl2dWWqD4aSQNOF1EGz+ZGdy4FpdQ9wljHUIGkJyils=; b=D/re/FEzj6SSsNyhJaYYE3ZwGJBmTmmQ9Tq+PGQDz4RIbqHMovk1Yo0FacDX1T9vMgvBPpNJvx5Zfc2kczY3Tgr3NrJEIadwXOGP3NhZSvas2Onbktd5ImCBEWWeBeSBN5/HxHlIHyMpfHgaqKwHWKksm67/lZqpgXeK+L2njzg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from PBHAGAVATULA-LT.caveonetworks.com (111.93.218.67) by MWHPR07MB3471.namprd07.prod.outlook.com (10.164.192.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Thu, 21 Sep 2017 11:50:42 +0000 From: Pavan Nikhilesh To: cristian.dumitrescu@intel.com, stephen@networkplumber.org Cc: dev@dpdk.org, Pavan Bhagavatula Date: Thu, 21 Sep 2017 17:20:20 +0530 Message-Id: <1505994622-902-1-git-send-email-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1505921833-2286-1-git-send-email-pbhagavatula@caviumnetworks.com> References: <1505921833-2286-1-git-send-email-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0085.INDPRD01.PROD.OUTLOOK.COM (10.174.208.153) To MWHPR07MB3471.namprd07.prod.outlook.com (10.164.192.22) X-MS-Office365-Filtering-Correlation-Id: 03678ff6-59e6-41eb-44b7-08d500e6fde3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:MWHPR07MB3471; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3471; 3:TaKc3qHk9ltjopMK8XM00otxI3P8RxJqxUjgQDWrMwLkrUamWtgc90+lWD0mTl2ITlhoTWdb1X6sKEikRdMqT84uZvi7HtvUOJayVaIxWO8i7zDS632OtDmgMA8sTCKJ45lqMxQxI38LAqCrElfWfDe8x+MOKtyEYOE0bkVJAvmJ+bUd026C97YDrXkCFxW8ZgAvOAWOASP+/TBK6NYTc96mTMtSH3+AONvis8s0rjGUjnrgraKIRO9fTchcIzlS; 25:GjyqI0Quo6mSFvJQgk3hgk4oxldxf/2JzTPixvoXg3XwM21Hy4QUnAbqjOUT73j58PFcQBPXdp0yc/Wmfp8QK/lkfVqyWQivrVwkKe2DfAA6FdcOZ6+46/74Mrwxj9DtAK+CnnXGN1RvoBAnzb0MEaqoxvG3TtdjJ7MEIt35lwwGTG3yYXonm26zK4HbrYUQ47570pHAyuqd1s27N3HHlvlOPrWkWELLQ0Yafxd+DvB17MPhg9t056IJd3tfr2Pu3vncXuYlpxFB+fDNh15cjpVf8ZuRi3ohiJaB0IAekBG2VtpV/XNoy+Cy5ZBaEEXn1IFrfAM3odPU/qQwqmzM5A==; 31:m8/9oep0R8GKBGkGERVPRjGilu7hWEsHeN7xFDXNEn2vXFbF+O6YZfmpPOn9AVsPuSFS4FwzCUDvtmVb2CKLl5H/rJCAGV1UWUrfprwJ4EMySislcDEUodGHlIEpF0lsmN0SPrfJh885jO2UQDmvYFDUvrtW9iqsiBilYoPQip3e4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change-Antispam-Report-Test: UriScan:(278428928389397); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(6041248)(20161123555025)(20161123558100)(20161123560025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR07MB3471; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR07MB3471; X-Forefront-PRVS: 04371797A5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(189002)(199003)(5003940100001)(50986999)(68736007)(6116002)(3846002)(101416001)(42882006)(106356001)(48376002)(50466002)(7736002)(105586002)(53936002)(2950100002)(5660300001)(16586007)(16526017)(316002)(76176999)(66066001)(47776003)(4326008)(69596002)(8936002)(81166006)(81156014)(107886003)(72206003)(8676002)(53416004)(2906002)(6512007)(97736004)(33646002)(575784001)(189998001)(25786009)(478600001)(305945005)(36756003)(50226002)(6486002)(6666003)(6506006)(5009440100003)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3471; H:PBHAGAVATULA-LT.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR07MB3471; 23:M8zwwUOY3+y7XaqKEvKgz1H3o0UmWMvD+Nfh3eiwC?= =?us-ascii?Q?S94pjf6wHyEcq5lDGA02yWlwM74p6DQrEtcca2ReI7xUcDozKqI7rY4uegq8?= =?us-ascii?Q?EaYOrE7mCdnn7mhBj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ncbY4RyFVySY1KNXLCXBN3uKkIlVUc/jB1Xp3FAt7f3PdoS7tbwtt9xoA2orORPipkNdNvGPaM+RAHvs5YedQi8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2017 11:50:42.9021 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3471 Subject: [dpdk-dev] [PATCH v3 1/3] eal: move bitmap from lib sched X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Sep 2017 11:50:47 -0000 From: Pavan Bhagavatula 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 --- v3 changes: - address review comments v2 changes: - undo rte_bitmap.h cosmetic changes - update maintainer info 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 +- 4 files changed, 3 insertions(+), 2 deletions(-) rename lib/{librte_sched => librte_eal/common/include}/rte_bitmap.h (100%) diff --git a/lib/librte_eal/common/Makefile b/lib/librte_eal/common/Makefile index e8fd67a..c2c6a7f 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 18274e7..e509447 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 b7cba11..a2d0d68 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.7.4