From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0067.outbound.protection.outlook.com [104.47.41.67]) by dpdk.org (Postfix) with ESMTP id 7ADDD568A for ; Thu, 27 Oct 2016 17:17:47 +0200 (CEST) Received: from BN3PR0301CA0076.namprd03.prod.outlook.com (10.160.152.172) by CY1PR0301MB1628.namprd03.prod.outlook.com (10.162.166.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12; Thu, 27 Oct 2016 15:17:46 +0000 Received: from BN1BFFO11FD034.protection.gbl (2a01:111:f400:7c10::1:122) by BN3PR0301CA0076.outlook.office365.com (2a01:111:e400:401e::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12 via Frontend Transport; Thu, 27 Oct 2016 15:17:45 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com;nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD034.mail.protection.outlook.com (10.58.144.97) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.679.5 via Frontend Transport; Thu, 27 Oct 2016 15:17:45 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.87]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u9RFGIfd027183; Thu, 27 Oct 2016 08:17:42 -0700 From: Shreyansh Jain To: Date: Thu, 27 Oct 2016 20:47:35 +0530 Message-ID: <1477581467-12588-10-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477581467-12588-1-git-send-email-shreyansh.jain@nxp.com> References: <1477310380-17944-1-git-send-email-shreyansh.jain@nxp.com> <1477581467-12588-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131220550653243494; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(33646002)(36756003)(8936002)(2950100002)(626004)(19580405001)(19580395003)(11100500001)(5003940100001)(586003)(50226002)(92566002)(6916009)(110136003)(68736007)(2351001)(229853001)(2906002)(105606002)(7846002)(87936001)(85426001)(106466001)(305945005)(47776003)(50466002)(77096005)(81156014)(81166006)(189998001)(48376002)(76176999)(356003)(50986999)(104016004)(8676002)(6666003)(86362001)(8666005)(4326007)(5660300001)(97736004)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB1628; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD034; 1:eMF1OpiKDmJlQUPIoVXI/Vn39T1Q0OqU44mjwcK05Zg+AmX8Euk2VfJlLCfflrs4YoIJf7sZvQC76pA4UsuFnpRT+pouI+SeNKCbZTUpTB9g4MWJSL21CRCRPx4OR+QnVvxox/sdYxGp3vHRht20PwveF2vjAr+YUcOq38b3TRY0ERdfvd+rLo+KzXk2axu4J0RbtKovQZKkH2ahybx3CtCsHUiz3q4/Y1XUuGEjA+BJLcSUVqMdBInvBYv7kMAbcDfh1OmmtGIQhm2zqEe43W6P5b43EjuipSZayw4hhUXXw0MxIycMGYCaED5PFqdWcr1S3E+cb1zH+QXxrQu3iIs35ewGVjJnWpupL5K1odtXenFalQULgITx9mZhdoFvyViIjADeo9C/4uIRckj7NcNBqVH/yFHn8KI00N2iBHPxCxcJUYJ9v8H3UJN7QW7XmWycu+H9j2BGMzj3sP1+CwZNkKUSY5iE4ji71H5dMSRsmXQYaseL2N2jQXByS3LcEuXM7HIZtqT6WcFN0QB668cvTfYU9VazheA5JAhQzkd+kXefVoHNUTSnEK67I5B2oob0NqZqRhyzSUIS0qlHmbAZtdmr9A8oLdZ1k1R/Tlzuz8D5yEEZWbCaJ5fsK4KQCVcI0t+9n8szbMVUlIvVZWS3DUD9heTmD6/Ew8Ojm/eq5qiR0L0NkgRGo3SzIrcWCWx17rvtOTgvcOwuN+b4gCzkykEiABB5gRMzgdkUx/I= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 0e4938c6-c237-4729-8f05-08d3fe7c675f X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1628; 2:Jl3c/htYwafrwXAJ4zmryW5/+Bowh0mgosLYKT9NDObxt/dGdtlkI7fjtS/T+r2TXi+WjzYifFqjpvRNprq16FAH3t35psD4brThfFbEXluFKqglkL494dP62ul1Z5ByEpHrpfpakyuMNExLxbgneliLuakH3FrLOhzeR3LOrMgq4yZKt7rRLOu9yqN2CLPfWpN5SS8J1PUglcqOppR6nQ==; 3:CFuATvzk5yyGIvriK7ofABnCNsipmU2JYXc05BQgd3e+ymnH0Q6y8gMABwREplUTblD/waD7zpc0tVFSvAfpQmY5Z/1FXtPiq3qMrlWl3+DLs2ulLtpk5J4N06/STbbduk43pHb1s7vtKICENaOq75q0ezulQ80mlioDpr/pXDlGsxcxTW0dhz9PYx3Qw2qyBxAkRV0X4EpM2zXQZIp37fjdDkeP3fxu8ou90OFnbMv5rP6cfIkJrc7d9fTwEcmH X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1628; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1628; 25:dIALIpAEMX6Zh/lJvXstlPMW9tS149aW0T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8pmvJU=; 4:yBJaMbJLV1XQQ8lqzHpEL/h0egtqBu3mVQMe4/lC7wqiDg5RCnAvtuQtUPIf3dUs3YkPMr+3fVeWMoBmqYNNkpaH1BGLEGKc3eKzod6gYVT3QukXI8Qjo04qXaRF2q3UTQTxjAGRbJlqcm6l26YXwqDNLkELUEAVR3adtVbz4tS1PQ7rwrUSi9M4JBhiuDqAudzrTFpcs2VNSnU1U0eZKqirHR4/q1+cVREn5p58yzNX1oHMYZuXJihJWF1RkrXbGa82dwtn1m2Ou/Yl5exj8IRTt2EiDzpypPbsw6cTMKHJMj8PD2rRXUmCSjffKC3g/68+mkBgn0J3an149O2gg/emaOsOLZ0sxZfxPgvIoFlZVRWIPBrb0StcMyXEm/gz+29VbefWONZFpjsAUtbXVVR9XD8tN5NP/f4tT5Q1BZ7E7+fI3RkK3ocxNo/G50PHa8ndxrZMXYGJxVqw30fjaZR7ZUdB8rxXpuLNIcEv8k/fq+TMXe/+U7VhkBQIYWlWckr6i0qFNya/Dn63b/hWAHXbgtjdr+/DKucoI+Cx7m6eV/P4Dqh6BL2ITv77b6m1 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13017025)(13018025)(13024025)(13023025)(13015025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:CY1PR0301MB1628; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB1628; X-Forefront-PRVS: 0108A997B2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1628; 23:9v8ZL+n3I+2+SSLi8Vn+Y8+jSLZ4ybUIw1RTTR8?= =?us-ascii?Q?mPDULvC4BWi6LOJv3L1pVycnhga8QzWv0dq/WRkiKlwQzffrcI++vXTr6gD1?= =?us-ascii?Q?zd2UKkCPlvy2pvulS7mTqadAJAw9oJCLgBPrh5NmDqRdWjBT1ZuhnYB10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o1EyqXHUR0zNOsv36Oz2uqkcWcrVZhyiW5D7ClqAyTn/LSGmtPxVHVKO9NCns2I3l+A8v57h/5mcnEcIeRTUQfQY6+bJHIswfVOQhjS5MmhWonDtk1JpCTIdrEmJsShBN0ChrpagVQonOLr+RPHRyqTiKA32XAe06wGpL3EWbzTrMpKKqgg/ZEWhHkPMyG0fwONMDrVPMsywfaCu8pCU5ML6sApciSqLCVNWRHQUVuowEWGJvmPiETmaJHTMxsNKPDWpKbt2XSvQq+Nml8mFSjQ3xes= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2016 15:17:45.1059 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1628 Cc: Shreyansh Jain , thomas.monjalon@6wind.com, viktorin@rehivetech.com Subject: [dpdk-dev] [PATCH v6 09/21] eal: introduce command line enable SoC option X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2016 15:17:48 -0000 From: Jan Viktorin Support --enable-soc. SoC support is disabled by default. Signed-off-by: Jan Viktorin [Shreyansh: Change --no-soc to --enable-soc; disabled by default] Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- doc/guides/testpmd_app_ug/run_app.rst | 4 ++++ lib/librte_eal/common/eal_common_options.c | 5 +++++ lib/librte_eal/common/eal_internal_cfg.h | 1 + lib/librte_eal/common/eal_options.h | 2 ++ 4 files changed, 12 insertions(+) diff --git a/doc/guides/testpmd_app_ug/run_app.rst b/doc/guides/testpmd_app_ug/run_app.rst index d7c5120..4dafe5f 100644 --- a/doc/guides/testpmd_app_ug/run_app.rst +++ b/doc/guides/testpmd_app_ug/run_app.rst @@ -156,6 +156,10 @@ See the DPDK Getting Started Guides for more information on these options. Use malloc instead of hugetlbfs. +* ``--enable-soc`` + + Enable SoC framework support + Testpmd Command-line Options ---------------------------- diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index 6ca8af1..2156ab3 100644 --- a/lib/librte_eal/common/eal_common_options.c +++ b/lib/librte_eal/common/eal_common_options.c @@ -75,6 +75,7 @@ const struct option eal_long_options[] = { {OPT_BASE_VIRTADDR, 1, NULL, OPT_BASE_VIRTADDR_NUM }, {OPT_CREATE_UIO_DEV, 0, NULL, OPT_CREATE_UIO_DEV_NUM }, + {OPT_ENABLE_SOC, 0, NULL, OPT_ENABLE_SOC_NUM }, {OPT_FILE_PREFIX, 1, NULL, OPT_FILE_PREFIX_NUM }, {OPT_HELP, 0, NULL, OPT_HELP_NUM }, {OPT_HUGE_DIR, 1, NULL, OPT_HUGE_DIR_NUM }, @@ -843,6 +844,10 @@ eal_parse_common_option(int opt, const char *optarg, break; /* long options */ + case OPT_ENABLE_SOC_NUM: + conf->enable_soc = 1; + break; + case OPT_HUGE_UNLINK_NUM: conf->hugepage_unlink = 1; break; diff --git a/lib/librte_eal/common/eal_internal_cfg.h b/lib/librte_eal/common/eal_internal_cfg.h index 5f1367e..2a6e3ea 100644 --- a/lib/librte_eal/common/eal_internal_cfg.h +++ b/lib/librte_eal/common/eal_internal_cfg.h @@ -67,6 +67,7 @@ struct internal_config { unsigned hugepage_unlink; /**< true to unlink backing files */ volatile unsigned xen_dom0_support; /**< support app running on Xen Dom0*/ volatile unsigned no_pci; /**< true to disable PCI */ + volatile unsigned enable_soc; /**< true to enable SoC */ volatile unsigned no_hpet; /**< true to disable HPET */ volatile unsigned vmware_tsc_map; /**< true to use VMware TSC mapping * instead of native TSC */ diff --git a/lib/librte_eal/common/eal_options.h b/lib/librte_eal/common/eal_options.h index a881c62..6e679c3 100644 --- a/lib/librte_eal/common/eal_options.h +++ b/lib/librte_eal/common/eal_options.h @@ -49,6 +49,8 @@ enum { OPT_BASE_VIRTADDR_NUM, #define OPT_CREATE_UIO_DEV "create-uio-dev" OPT_CREATE_UIO_DEV_NUM, +#define OPT_ENABLE_SOC "enable-soc" + OPT_ENABLE_SOC_NUM, #define OPT_FILE_PREFIX "file-prefix" OPT_FILE_PREFIX_NUM, #define OPT_HUGE_DIR "huge-dir" -- 2.7.4