From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0043.outbound.protection.outlook.com [104.47.42.43]) by dpdk.org (Postfix) with ESMTP id 60427BB14 for ; Fri, 28 Oct 2016 14:30:50 +0200 (CEST) Received: from BLUPR0301CA0009.namprd03.prod.outlook.com (10.162.113.147) by BN3PR03MB2369.namprd03.prod.outlook.com (10.166.74.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.693.12; Fri, 28 Oct 2016 12:30:48 +0000 Received: from BN1AFFO11FD035.protection.gbl (2a01:111:f400:7c10::110) by BLUPR0301CA0009.outlook.office365.com (2a01:111:e400:5259::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.693.12 via Frontend Transport; Fri, 28 Oct 2016 12:30:48 +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 BN1AFFO11FD035.mail.protection.outlook.com (10.58.52.159) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.679.5 via Frontend Transport; Fri, 28 Oct 2016 12:30:48 +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 u9SCPEML019399; Fri, 28 Oct 2016 05:30:45 -0700 From: Shreyansh Jain To: Date: Fri, 28 Oct 2016 17:56:26 +0530 Message-ID: <1477657598-826-10-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477657598-826-1-git-send-email-shreyansh.jain@nxp.com> References: <1477581467-12588-1-git-send-email-shreyansh.jain@nxp.com> <1477657598-826-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131221314484722265; (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)(199003)(189002)(19580395003)(8666005)(626004)(97736004)(85426001)(5660300001)(356003)(87936001)(50226002)(6666003)(48376002)(105606002)(104016004)(76176999)(2351001)(586003)(189998001)(68736007)(11100500001)(50466002)(7846002)(106466001)(50986999)(305945005)(81156014)(81166006)(229853001)(19580405001)(2906002)(8676002)(110136003)(5003940100001)(77096005)(4326007)(6916009)(47776003)(86362001)(92566002)(8936002)(2950100002)(36756003)(33646002)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2369; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD035; 1:D/IzKgUj/v+IOdZnpOA45CBnjN8NWtQ70PSLwDynuw/dbolXnwKXUKW5Ghc1tWKoovaw17Skcvlw9SCS+QQvuH8ECan126KKaVD5kHvzsxbss1TPd5SU0G4axN43r2DZ1KKTihqnZH8UQYulw15kgMWnjuH4yK7RhOBQTGGd0BgbWyZCEejROODRcfk7qdLXYjfV6uUCn+2OMCuyT7mY3CB2oL05jocxHhoB+UzKJ9o3DPv++aGzbuOjX4w8BPZDd1c0L6UjnB6J4P+SQZIXe7vnG+jtwBp0AzVeCSz8YPBs6b+OC7xsuJNEMKbeVyq6sDWE3JuzhnXYxww+IAbJNtPYBZrtEf3P5OIuxw6l4zF2S99QNL3B9UHelB/+R7PvFNJpj4sgRwHcRxiY/xyjQisSpRhwdnsfT1K4MERUHVX3kDwvFW369gB6n9E66lMkBaaN/Kq+SG4bQQzNLESCH5ELesI7A+Il3zKh1RGKkSdvfnFsvVznl7VD9nClX/4xiC7/UpVg+XhgJbpldlTd9NeFlUfz5XT1W+a4htI2OzkexcTngLYwkjbNdGsjhSZtv1W4PS98t4C6Qr+KTZmI20KWWCKScdTRD0pNIyLllqsnFzdim4Inti6DJt8PiJwPq4YP4Yhaejj04khTCeAbtQ/g2NnfNl0yYDWi/N6763FDu+yCX/WdhpNv3To20a3LD9W+IarOHk+3P7Tz4jWZTArVR9O6J7CCQv3FO86Bjr8= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: a94f9370-e094-4795-f8f8-08d3ff2e3f46 X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2369; 2:Kmivxys3XsysA6m3SBH+PSw/Tu5DoKQ/LhJWGKKksqo+CiU5zECQfo4O6OBcuta/A+utXgLna4Stp47qjL2vk3CtjTVzYraKLCHchtQVtefKImtD9/s/PwBXV0/MrPVbxVoTh28MkeZUmSIfBcTUiSLQX9RWOmkkB5eddjiPv5oV6OxdISVsOkxOKb5qmwOyYEzTZvjeGZHh6zDHtnQXCQ==; 3:Z1lhFStQuZUuYZ/jOFeZ7vkf5p1EIm75W05QEX7Lo6MWAQBZuS/4rpuPLyTEVq+T8j0jIFcw7ci2Izy+vQVxO9DZgRtGGkj32sWwsl037nPgM8QJxDtrzWBFhn1nRzjG6erTRmkegaaBBY5/wJPbYJJ8rBhrj1zNKMOcGTWbt4Oejd9CCtLxwY3pPP/URng98gdweeNLuOr+uVylkrmiti9jLAm6lCI4axFM76cbPNQ9xkVwK/Cfu3N6IK6mBFhN X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB2369; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2369; 25:NRJL/JZ2kzFnR85Isot+6YQU464+Zl+feNNpGxPeUgYbTNu6GeGlSnNzqzWjE3+vG+21GQPYD3Yipt/L83e0wyhAXnJzXmltm0fG0t34gbemwG+VVYd3ZLqm3JeHm8i6Xy/Ep6j/L/uCtHShuo3PIx8oHH6/i7MAuOLePkA9Dnbfe4jjmQ5ICoGihVfA8TkfU+XKC7jgavjf0vKHYDGVBIrrXxAAU9iAl7dZDg55UeoDYsaepnzaTXJyVlXDLDXpoMzslfA93NT10M/68aDsBScWL6jwiCL0D+d4dfXf5kbi6LQd4+52STDlQy1fJoAyhstc4SZ6fJmUl79RuZ7x35kbmmXC/klowhBJGPY/f6U6pCsQIru6585km0fvFufzfySuhonpCw3A6GyK/Erql2hDj5m+0QnnRhwCZ0/htzK69gCJ/n7riO5FC4+O1wqwbzSWFxw0frZPsSEFSkVuBQ==; 31:/FrBQSZL5tOvoPO0cBYrcw/wivFv8ww5fBGtKMtIifbtuh0Oeptkjbt96JyuMOBSHg0aQXtzBz0nPqXSpYzWuH7SiV7T0tXvQY15X+TFB0oRGOIrY3fuemarvEMzHWTjcfeeuOE3b8V7fGQliUF7aAJtEFO/3PecXW9DSx2H65B7lUT9nZhS+jwXYK0oTAze9cv6sbL240jm1uZefwYlw1AE7/nIa42NFy4TC1CcfJpwr9ETmKyqKi99tH2V2kdBW1Ko+semejTenUbBAExded3g36z6mh9LAzs0N7jPQpM= 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)(13018025)(13023025)(5005006)(13024025)(13015025)(8121501046)(13017025)(10201501046)(3002001)(6055026); SRVR:BN3PR03MB2369; BCL:0; PCL:0; RULEID:(400006); SRVR:BN3PR03MB2369; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2369; 4:8O32QZRSGws24bIKFUpQ+DkMpoDcH1Jvl1Sf//XRs8qvZ5LI2+ArDPA/1oxHGdHMjGJ9YfjnWbPNrvLOX9Uipr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HnCocOQUloBFNyGgPyJiGCCCNFPrm38D+1CNKW5y2t?= =?us-ascii?Q?6GKuSsScXOol3W/i17wMZDI7IpqN+4WCiRTtuxXvLUPOwKu3/vZHut19OWmT?= =?us-ascii?Q?uYui2/sKrve9yIu+ShhSE86VOsrvxO0TN3mmQZ4+WN4sh28UoduOUUqFK9Jj?= =?us-ascii?Q?qQnncvpVVvDhqCMCcGoRVU/y/P9ZIzcQo6SJNvYK0Yth1JHSkscTVtBJWV2P?= =?us-ascii?Q?s+1/h7a6ZiYQjmcRZKQCbchlxB8MLITUBv5jGHJ6LHN9L3JOAQRNtoWIB+Tf?= =?us-ascii?Q?o6uTP5NIqObPAzmyIhSiTvrVJGJb3Qyduiye4Y5gXskEGyw8MeYeg+7F8oXD?= =?us-ascii?Q?frwpY6SIGsus8sC27bchtaANkuI3t9VClt713+qzg5viQLQA3+EiT8u/qWrA?= =?us-ascii?Q?FW8Wsfiku93oCfbo1aoYJqq/0OtNtG1kdUULI6NQwvcXCP71a0SguSYFpPwh?= =?us-ascii?Q?/U5C98QzD5iuljgrakqhn6xJHlcMLyClZPmhngFuBDLw+OJp4rzXywZ1cx7L?= =?us-ascii?Q?oi5faBwndTof+kQVIaR2QPVdM8OjrmLMR2dIFEgc4r5GKQlT1rUQqOvRXmNT?= =?us-ascii?Q?Qz1EOgUqJ7GjYHd+4Fel9nt/omEjznO1WeG/e0te3nwJkK52GyqiF8jpSIRG?= =?us-ascii?Q?AoEW1eOApUduOetJdK/AownMMB3Mo4kJQ+XV0bwtKIFqx30wOOI13JHUMtkG?= =?us-ascii?Q?MgMrDkWqclW2ahfCrrng4rViiYeew8kKt16/lbZ+wTvHNsYhxuuNOQ4FkxBu?= =?us-ascii?Q?Ew1zZdB6N07tmmgIBN58qkN6xM/G/0Zrnfr?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2369; 6:mLMuEppTzOO2XvRkmEGCihmaQ/ztpaLUq15H3Ttxob1noPcbBwRG0WCSrBpJ3xoXP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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: BN3PR03MB2369 Cc: Shreyansh Jain , thomas.monjalon@6wind.com, viktorin@rehivetech.com Subject: [dpdk-dev] [PATCH v7 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: Fri, 28 Oct 2016 12:30:51 -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