From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0071.outbound.protection.outlook.com [104.47.36.71]) by dpdk.org (Postfix) with ESMTP id A93178E01 for ; Mon, 22 Jan 2018 16:03:20 +0100 (CET) Received: from DM5PR03CA0059.namprd03.prod.outlook.com (10.174.189.176) by DM5PR03MB2699.namprd03.prod.outlook.com (10.168.197.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Mon, 22 Jan 2018 15:03:19 +0000 Received: from BN1AFFO11FD038.protection.gbl (2a01:111:f400:7c10::128) by DM5PR03CA0059.outlook.office365.com (2603:10b6:4:3b::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.17 via Frontend Transport; Mon, 22 Jan 2018 15:03:19 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD038.mail.protection.outlook.com (10.58.52.242) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.428.12 via Frontend Transport; Mon, 22 Jan 2018 15:03:19 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id w0MDqVQO020039; Mon, 22 Jan 2018 06:52:34 -0700 From: Hemant Agrawal To: CC: , , Date: Mon, 22 Jan 2018 19:21:17 +0530 Message-ID: <1516629083-13967-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516629083-13967-1-git-send-email-hemant.agrawal@nxp.com> References: <1516428908-5430-1-git-send-email-hemant.agrawal@nxp.com> <1516629083-13967-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131611069992881628; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39380400002)(396003)(376002)(39860400002)(346002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(5660300001)(51416003)(54906003)(76176011)(81166006)(8936002)(50226002)(81156014)(16586007)(316002)(8676002)(53936002)(69596002)(104016004)(107886003)(498600001)(77096007)(2906002)(36756003)(85426001)(47776003)(68736007)(336011)(26005)(50466002)(97736004)(2950100002)(6916009)(6666003)(86362001)(2351001)(106466001)(356003)(105606002)(4326008)(305945005)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2699; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD038; 1:vFWslqE+fJiEp+Imm1OJfvoxlLJQBHua0tBwPsn3FnTQnAYAgQijLkbFooU1jY7IFZ1UBTuYtZL9fPbG1njUXoqFMCXoLiswG+++Kkd0maxpuNEkXQp8fVFZ2RMqWDX5 MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 68da6e33-8b5d-4793-4ddc-08d561a945e6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:DM5PR03MB2699; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2699; 3:NP0UtSqJlxghlOsbSXF6nJPOrnUdnADnIOMX5Lqbyu0h4CuLjBuCxyYq78tCgpZhY3+kQEBZyGcW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bqzM57FPZezUP4tAomtKIVpPtxXHTWXV6R13OMpO04eo91ELPpBbxLdd+VcyfP1FtwRoFrccEk2ImfsPq1yXcX2v8QGbpBU8HmrmMtM2ybyuuZshtUEG27vVDtBlaT1oWSQ5UAe0Y3kz+tvhYjS1w7XdlQJEPpKCJz7UVDlgw94uAd1mSr9moW3O5EEPyz22 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(3231023)(2400081)(944501161)(3002001)(10201501046)(93006095)(93001095)(6055026)(6096035)(20161123559100)(20161123561025)(20161123563025)(201703131430075)(201703131433075)(201703131448075)(201703151042153)(20161123556025)(20161123565025)(201708071742011); SRVR:DM5PR03MB2699; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:DM5PR03MB2699; X-Forefront-PRVS: 0560A2214D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB2699; 23:2oeq5ipWPbvxnw+B3RWKvCvnl5nLcMTmA/E0FGerB?= =?us-ascii?Q?yKlf9qzWo1yV1DkEOVFsHdjtPgWTH7BD7vMmhHE46LN5xIh/XlrPYCNZFq16?= =?us-ascii?Q?jjvn76jOZ/Fqek5KjpYVZwSHjV4H8LZQ+UvZwMgRn0+TlV969ualTutXY06F?= =?us-ascii?Q?qd5wJY5XDHrIUpvaiw7I939d3h18jkabLd74hXnxQu4Zt7xJb4nI5ZzIxRe0?= =?us-ascii?Q?+bhwQSDuXeKi5VZ6913e5wCmR/5gN7kcvyUy4efMTcERTddQMBD7EOlsJuHC?= =?us-ascii?Q?0ur5Dx4EOJke49kPJ519UKATq1iMZeHs4PfxSkIgvBIpWmcDYQhcJaOYg3Vi?= =?us-ascii?Q?O+OIjBQDBM+LrtAT2UcBbCuaG39ytfVnMhBkhSUu8ZDxTHhcv9xcJvHCncID?= =?us-ascii?Q?99Aj1qhuLjENl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IpnVVTMJmRQY5zrYChIkABfZBBUTpzG9atmGtmVpa6LuAgSSIv3PpETJXm0eOsWBwYOMtrzb6+abKahZj8+IhN5hm5FZuVbf8WQRui6xIa89kPN55o3hk+uYpUcDN+A9N7kwGtSciUGGiUYVlj+4m6xGXx5GVR8jnmNQ5i37HT2XBdvoz3MvtJarPNDFITMAqcRt3jAPErHIJA0IV6d95IFpnmEg=; 5:BHrM/F8YqPMmz8FZ0t8DclOhopQZVmXNX5TOFNkDe5hRrUua08yTgEB7YMSQbm0FJ70wX1hW4wAwdPJFuENP8DWU+vQWYF71zCD8Z8jdj12cxUsWlATYZ4Ab523yhFztSOGpS8J+dg9uV2FXJ2p2P03cSV3aMw+a15HCYT3DHWI=; 24:yZYaI+NbgvIbzypPHt/pkGrQcsCFgh4jpKeF6UIo6Tb6HdZl6GoPHVUIu/2WVksvypgJakI9rtQAe61PyWj+OTAH25dkdBYQjUpRpRMf40A=; 7:D21OuriY13oRdf2gaGr+pZA0b93GXEJ1Sw2agsZnxiYgxq8K0DvLlxpRBddFESvPq2WyQ938RXG/FT2Xyb1bQVe7n5z5eyktdrX4IsEHYH6L6t3hPAPcgPJWeEl1mx5eRMaFArbgVkjis9y8672KlrIH7/KVdjCI7EHjfbpQ4ToKfy+rxXqK3tb+40EbNkkQM+PyhTgcaYs15TFaw7UEYyYKirLmNyJkeS3H4JJZnyX0ykKzbG4x7Q8VHYFrYF1d SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2018 15:03:19.0541 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 68da6e33-8b5d-4793-4ddc-08d561a945e6 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2699 Subject: [dpdk-dev] [PATCH v6 1/7] eal: prefix mbuf pool ops name with user defined 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: Mon, 22 Jan 2018 15:03:21 -0000 This patch prefix the mbuf pool ops name with "user" to indicate that it is user defined. Signed-off-by: Hemant Agrawal Acked-by: Olivier Matz --- lib/librte_eal/bsdapp/eal/eal.c | 4 ++-- lib/librte_eal/common/eal_common_options.c | 2 +- lib/librte_eal/common/eal_internal_cfg.h | 3 ++- lib/librte_eal/linuxapp/eal/eal.c | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index 04cbd81..c602d02 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -114,7 +114,7 @@ int rte_cycles_vmware_tsc_map; const char * rte_eal_mbuf_default_mempool_ops(void) { - return internal_config.mbuf_pool_ops_name; + return internal_config.user_mbuf_pool_ops_name; } /* Return a pointer to the configuration structure */ @@ -397,7 +397,7 @@ eal_parse_args(int argc, char **argv) switch (opt) { case OPT_MBUF_POOL_OPS_NAME_NUM: - internal_config.mbuf_pool_ops_name = optarg; + internal_config.user_mbuf_pool_ops_name = optarg; break; case 'h': eal_usage(prgname); diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index 996a034..7a40414 100644 --- a/lib/librte_eal/common/eal_common_options.c +++ b/lib/librte_eal/common/eal_common_options.c @@ -218,7 +218,7 @@ eal_reset_internal_config(struct internal_config *internal_cfg) #endif internal_cfg->vmware_tsc_map = 0; internal_cfg->create_uio_dev = 0; - internal_cfg->mbuf_pool_ops_name = RTE_MBUF_DEFAULT_MEMPOOL_OPS; + internal_cfg->user_mbuf_pool_ops_name = RTE_MBUF_DEFAULT_MEMPOOL_OPS; } static int diff --git a/lib/librte_eal/common/eal_internal_cfg.h b/lib/librte_eal/common/eal_internal_cfg.h index c67685c..1169fcc 100644 --- a/lib/librte_eal/common/eal_internal_cfg.h +++ b/lib/librte_eal/common/eal_internal_cfg.h @@ -52,7 +52,8 @@ struct internal_config { volatile enum rte_intr_mode vfio_intr_mode; const char *hugefile_prefix; /**< the base filename of hugetlbfs files */ const char *hugepage_dir; /**< specific hugetlbfs directory to use */ - const char *mbuf_pool_ops_name; /**< mbuf pool ops name */ + const char *user_mbuf_pool_ops_name; + /**< user defined mbuf pool ops name */ unsigned num_hugepage_sizes; /**< how many sizes on this system */ struct hugepage_info hugepage_info[MAX_HUGEPAGE_SIZES]; }; diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index 229eec9..e8c7100 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -124,7 +124,7 @@ int rte_cycles_vmware_tsc_map; const char * rte_eal_mbuf_default_mempool_ops(void) { - return internal_config.mbuf_pool_ops_name; + return internal_config.user_mbuf_pool_ops_name; } /* Return a pointer to the configuration structure */ @@ -609,7 +609,7 @@ eal_parse_args(int argc, char **argv) break; case OPT_MBUF_POOL_OPS_NAME_NUM: - internal_config.mbuf_pool_ops_name = optarg; + internal_config.user_mbuf_pool_ops_name = optarg; break; default: -- 2.7.4