From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0050.outbound.protection.outlook.com [104.47.42.50]) by dpdk.org (Postfix) with ESMTP id 036717CE5 for ; Wed, 20 Sep 2017 17:37:56 +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=eVIDLisOT0R7CRMEXFevbE3dY7Yc8f9zE89pv3zS9yM=; b=WAITKpMMRVeY1Q/r6NekYgTaQoidhom40ABHml2Jz12QW8WSw/pzL1SsKGh1YQyQf0iTBaVN+QNdc5Mw90QSN5Y8FpYJiRy1cwShAKpxEyLMIT17Djp83PTrbgJEeRNKZn5BTej9oFBGQf7FEN5ZPku9yIzFVYUlAC6K6uPODvQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from PBHAGAVATULA-LT.caveonetworks.com (111.93.218.67) by DM5PR07MB3468.namprd07.prod.outlook.com (10.164.153.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Wed, 20 Sep 2017 15:37:53 +0000 From: Pavan Nikhilesh To: cristian.dumitrescu@intel.com, stephen@networkplumber.org Cc: dev@dpdk.org, Pavan Bhagavatula Date: Wed, 20 Sep 2017 21:07:11 +0530 Message-Id: <1505921833-2286-1-git-send-email-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504795187-11087-1-git-send-email-pbhagavatula@caviumnetworks.com> References: <1504795187-11087-1-git-send-email-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0095.INDPRD01.PROD.OUTLOOK.COM (10.174.208.11) To DM5PR07MB3468.namprd07.prod.outlook.com (10.164.153.23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 48286d0a-85c7-4b04-b1e1-08d5003d9035 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:DM5PR07MB3468; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3468; 3:WXbekk2QVtGFtGpJnukvNH2B62X2nMXo4+lRCvnMlnIq2JfU8lALg2lKHqA3N9GHHG5Fkj8gjlVMfRpmyvwt8Yn7d/iV0StMayuHwF/kYYJjlKkae/PSNW12xkY8UUicsblE0rEbqICveGCtbI/FnIkKLcofJqLYw/KA/l11zuNUaTwvq/LExMIwfEpzAHVMr5dvWaxnIbMnVoS961N42mCICnE4DVNQQ18HPku42LS+qytX0F2F0B2YjQweEBvi; 25:r/I+7kY0kcY04arlr9FcERFbElTGlJzGfp19H60Aj1JQ9ITnMR1TS6D6ZQH/RkG9OUfcJ0ZVFtD+B0SwHDa3BusRoJbbnnmSbW7h54t0ff7RcEt16nGSWyDw40vSvq6K1As75XfyF9GHXnbd+3kC0E2Mn/YvWrcFb227srexrmdqQtJjQuP+UX/KVbcFj70L/ObPAIbwJ/pByNjZMRieCkkVakvpOKLr1/3/SL3bTs1weqwNwQuP6NaUpqYQFf1UfXrR7WTgspjxkc06vXWUJqs9Xpm83qeJF2zPUg2Rq2DY7YqjIRPiFbsHSmGQTDN/DaJJ6UJLl24oyTNFFhCZ8Q==; 31:NlofAESZv9T2xraN8FqTP7ORL7912AuYjUv2LRNmvC9lPlFkIOlljjh93JRty257HNHm3vmggv0QgMUNGVh5vqU8e6+ci1WI+hTKKGV2hk3fe1mGCdN7UplZBXh8ouFWA7Z8AV7LSRK4Gc6C2rfG/8phfvmT663BRA79GRKSZqN3TEiv3+kRd7IeiRQOfAHQrdTrbYULGC92Dq/1S5wudnCdmhBNP+o/F8l0TS4p6Io= X-MS-TrafficTypeDiagnostic: DM5PR07MB3468: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3468; 20:qdgHJiOKig+Zk6zkYRdvLedYwOGbEygpzBbsqEx5t9denfhQ/+8h7EvrbKtVWyU30b3PU4dHbtOuJrl8izZHqZmbA5e9l3OlSzDRWfSGdOgK/E8y5erwMdqpIR/A0090rIwQhQecQWf24hz33jZxk9EKubIUUUWZLflbObKMfvaQbGCLJNJYeCCXtHQ7BghilhhZXrlfbQiSrl6+aqt4JLVabLvpzuXeGerOpaa/TRmk2qjm6EnkN7xgSRJzzpqdIImzyEhrS2QI9tk9O11XbG5T4cwEgw6Apj7UC7Pdk2SmpagJZRsl1zAqw6IyrJa9Ve/oER1pNRofio9sehBqebgBzPcf3LYaRsjTqgpGTvzjPz2V3wVmnsRBrkb+3U+Ygb2Quaz6gW7XB4LkiSCmj9GuVGX4tCzkSiHleEctCP45nib3APZyMqu6mRRObpOYLVpIR/jjKoa1EqBnvxiIdqggUR8IUfirelK/4EgISi4ATsu/wnCI8jHFJjnBiARj78v2hLzQtxCw3xiJScFik76IKDDlZG9xWI0xNGx9Culz63UwjYM6Rr/qbMhWg7XDdxxqFVWj5PI2BfLgrOSPG1yeO/HIaxSlvxeLAry0R1M=; 4:lXKbtb3YmR48x6gfiN2h1qCfdMgVhmsnCU0W49i7QOCidY5MOVr20sYRKOdF4e5PBX5uHO086nia/4K/Hb+Ap1RXgdKTZY+HXDRcPoj8O54cWb5Y0Nc5gsM8/bnMYFywWN3YleScFqVERgGfYKX7MMrXZHlT57S6CJ+KuQhs4emooqc8da383OFnZO3qxEiF75qcXH54iI8g0WnAA2O9Wd3d1E9q+EdrxbjFkuIIUyuwmVDLHqSsz+/pqWPHHd09VFg2pwbe1W3/2LCpYCcOE01Vug99F6kAryyvXxgP9QY= X-Exchange-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)(100000703101)(100105400095)(10201501046)(93006095)(6041248)(20161123558100)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR07MB3468; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR07MB3468; X-Forefront-PRVS: 04362AC73B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(189002)(199003)(105586002)(16586007)(316002)(97736004)(76176999)(50986999)(47776003)(5009440100003)(16526017)(66066001)(189998001)(36756003)(478600001)(6506006)(48376002)(2906002)(25786009)(107886003)(69596002)(106356001)(6486002)(101416001)(50466002)(6512007)(6666003)(68736007)(305945005)(33646002)(53936002)(53416004)(5003940100001)(81166006)(7736002)(81156014)(5660300001)(4326008)(72206003)(6116002)(3846002)(50226002)(42882006)(2950100002)(8936002)(8676002)(575784001)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3468; 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; DM5PR07MB3468; 23:B5cNAF0QZQcjoMW12VcEl5HOllrXwmOLwd5rrM2lb?= =?us-ascii?Q?fGHdoUkKj3PnOiNqCdi+ma38E175IgRwqluHA8sUvGSsKyX5pjjesnSQufG2?= =?us-ascii?Q?+v+DrqHw1Kkfo0oJNT29kdFldsYc/o/yGBkHUHZf91H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4TKN5Lp0HalP021Y1eN9izKj8o0zq7jSyCaemHnGTYwU43niVGhgaRi989Ok= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2017 15:37:53.7736 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3468 Subject: [dpdk-dev] [PATCH v2 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: Wed, 20 Sep 2017 15:37:57 -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 --- 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 | 5 +++-- lib/librte_sched/rte_sched.c | 2 +- 4 files changed, 5 insertions(+), 3 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..9a28a9e 100644 --- a/lib/librte_sched/Makefile +++ b/lib/librte_sched/Makefile @@ -55,7 +55,8 @@ 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_reciprocal.h +SYMLINK-$(CONFIG_RTE_LIBRTE_SCHED)-include := rte_sched.h rte_sched_common.h +SYMLINK-$(CONFIG_RTE_LIBRTE_SCHED)-include += rte_reciprocal.h rte_red.h +SYMLINK-$(CONFIG_RTE_LIBRTE_SCHED)-include += rte_approx.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..b3e0d4f 100644 --- a/lib/librte_sched/rte_sched.c +++ b/lib/librte_sched/rte_sched.c @@ -34,6 +34,7 @@ #include #include +#include #include #include #include @@ -44,7 +45,6 @@ #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