From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0077.outbound.protection.outlook.com [104.47.41.77]) by dpdk.org (Postfix) with ESMTP id E19F47E24 for ; Sat, 15 Oct 2016 15:44:33 +0200 (CEST) Received: from BN6PR03CA0010.namprd03.prod.outlook.com (10.168.230.148) by CY1PR03MB1424.namprd03.prod.outlook.com (10.163.17.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.659.11; Sat, 15 Oct 2016 13:44:32 +0000 Received: from BY2FFO11FD021.protection.gbl (2a01:111:f400:7c0c::102) by BN6PR03CA0010.outlook.office365.com (2603:10b6:404:23::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.16 via Frontend Transport; Sat, 15 Oct 2016 13:44:32 +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 BY2FFO11FD021.mail.protection.outlook.com (10.1.15.210) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.669.7 via Frontend Transport; Sat, 15 Oct 2016 13:44:31 +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 u9FDhhgL021870; Sat, 15 Oct 2016 06:44:29 -0700 From: Shreyansh Jain To: CC: , , , Shreyansh Jain , Hemant Agrawal Date: Sat, 15 Oct 2016 19:14:56 +0530 Message-ID: <1476539108-13170-6-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476539108-13170-1-git-send-email-shreyansh.jain@nxp.com> References: <1473410639-10367-1-git-send-email-shreyansh.jain@nxp.com> <1476539108-13170-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131210126719378465; (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)(81166006)(189998001)(33646002)(97736004)(105606002)(11100500001)(5003940100001)(8936002)(5660300001)(7846002)(626004)(68736007)(8666005)(356003)(36756003)(2351001)(50986999)(110136003)(229853001)(6666003)(6916009)(2950100002)(104016004)(76176999)(2906002)(4326007)(92566002)(50466002)(86362001)(106466001)(305945005)(50226002)(85426001)(19580395003)(81156014)(19580405001)(8676002)(586003)(48376002)(87936001)(77096005)(47776003)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB1424; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD021; 1:ybOuLMtSeJiNqONanLOccpfLNzhx/6wdrRWOX/lepbI5ciZBwIFcUjIwpLHzN2H0ZxQsobiQmTtO/lOa77VGpuSkBpFEeUKNomB5/7F8gWZKhLKIA/6EqCfZYpYwjNgjYkpGU3cPemP8DsZmh8RpNAZJ4fMxERhr+k6Cbz+VjW2yrUR+W1jveoh/BrdMf4Dj+SQLWnjRSvIfhTiycbThpsnQYb67RMbMPvNpCvfguxlSX//txvoemgooylwvnQEWupYZ+2o8trHS2KRJGdIxMrYjhO93MvA1TxeDD/DkKptsxcYbUv/BQ75jvG3oSDtQbUpB9usPkAZHEoPEyT7W4QY1zwuxzc6W0taF8F7R5CFGo2fR2idkD4XlOOYLb86PGd66OMt+S9ncJNz970xFS1SIR0Igxngg/kN056kDGP98+W80xNQ9WH6+5Wn/LH3kz+R29eb0BLTc+d0z9rV0DZ/Yq9TSyknZ/VZHE9x2TB6Q4KwkIVYbfwQ2oaqVzktifqNSrezyg6KW+duzHcutqPKJUEVjC0Od7oUEUkz0LqCCiE0ZamK/+Qh87eLysHBY9tWUlE6ACyG/kFaEytwgidWBRp3wzZRVzOxcNvVTwj3IIxEiGSoZJ5AqwwYdjMD0Y6pl/TKT4Z7WUVXGXmohIHK060dzgpQJfmLOp0m/7F9RIM52CpM49vSkCUhUnPmj+BFAQnI80Gkksq5ONMLxjPqhHaqVxOlV6YabKfqDe1s= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 785366ff-c909-4648-82c1-08d3f501647f X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1424; 2:5tkOSFBI7SBio/LBJNQDwgwr8hkzvfk48mT5wTlaAByQEt4TPTEml5IvBUMUYQJxpdl+KQZ7SmBlCtKUjQf9YQTcxyg/eUQHu31UqMb8qpsaRbkho9AazjY9hcJWrEVZKUYDMfC8aEKxvTi47P/AX2ktbfMSnJp90dHmVEY5Z+tnbQ2ULloq2b2X/pd6gLyrbonh5Zs8HlVmyoHbFVeFRg==; 3:7A/2Mvt32+In/NkfC/KXVn8XPi2Shu1eCuhThvnMtucd1OwbYrlgaL8cBagkQJrk6rkQgtbIWDUq17HqnXbZV9lx0gx/LOFpSudqvEOBRvGJBJxGwjXddLnnnA+SM+KnfgTr4eslw0LXXW+fGx07kTMOM7w5RRO7kLV2sa+ZTnSzfaK1ac44kvJ/LpCMa/YiSGe/gXLS4Uo/bdrgD4022iseTok/+vw8iGpLx1KmjVzKT3oLsQgU4sirUi+dRYQE X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1424; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1424; 25:Pv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3Vm1jpdd5+8XjsI+qii47lgWS4/kUQtHaIfjKF3uC1+k15lJwDOQ8YZ2z3tjdxm2fb87wHsS06zEw; 4:GEqQ1d+TS5S/FFTs6VuDIyBSJd8bwcgsCsWHJaiSjIUJVZZJIFNV4ZT89q23X1QwJ2mnH52bCO7m0CiXSZZmAMQUaIxcstGpHsqJQRGoaXKx8oHP32eX56CoKeUe8dEiBXU1e4yWmvvlpIa8T8HMvXf/KpE5g67atURabqBkzKvOGnhuTTy0p0m4P1UxkfI9VSEHQvYsTvArpkTNy8A9XJkw6V6q8FwdUh/L21hIFw24FoGQT1TmXgnzvebtP7ABSZq0TH5/JV0AXa3afpvrAODHuwHMJIrKQ7sEY63aRYF/Lp11w6bedp60z6fo0GGoY21BYLyT0QQKR0Oy64BrtFP0U5vU8u9trycoQwxM6MBI+boDRg+dLYpqM+Oid2RTzSo6TTsc3s/IY7TGuSII6LrLBy5RZ35aLH8GZrKg6Qs3unUfoCsf+67DYark6b6yXYlmhUVeULegLZSy/7O0s4fDsgRJ4S8UYNsUbr2FryGRq6/2R3Xvgg2+F1N52bjGj9Ob8v33k36PJPkC/zea+FStyg13cbsR/xTuMrHjM2NGrjSCoG9k0ZuZ8239YUW/ 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)(8121501046)(13023025)(13017025)(13024025)(13018025)(13015025)(5005006)(3002001)(10201501046)(6055026); SRVR:CY1PR03MB1424; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR03MB1424; X-Forefront-PRVS: 00963989E5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB1424; 23:BOBOW7hn4Y8Xts5zJARGTHQ0Oc/qQ3gRbWUYrXV5v?= =?us-ascii?Q?5CXaqdFpjLdONj00YNakRZi92RE1RjblsQ7xnT9DAJsf/K70itBQ///Z1lCt?= =?us-ascii?Q?B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kxP+bIDgWCKg?= =?us-ascii?Q?/maeCPEm6EiH1uPj6DNpjxGaPTVV10+fvRo/0dLh91NU9m5vraXk0ADY1Cg8?= =?us-ascii?Q?3/q7qBa/IXcQmLQV3yAHm6CaDLn7NHIIUr6ZimqBedIOTa7Oj9y+ICbpucdQ?= =?us-ascii?Q?G5yPY7ukhJCD3t/WZdApd6wEQ8+8c0ggWDxi2ZjG/c01DwHhvYRgTv0av5Jd?= =?us-ascii?Q?En10lrI3qOwEGBA6c/7YQ7RTHPwYG1multb?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1424; 6:MzYbl1oCXxB7BqmYFszxvE6S7WV1Tm8rDWobtB0fbWS6tBhpG/bqmzsPliiTl3HTXZjrky3e8v9rz+qEnoN1rp26Ssu2x1dMgjnfjr1chYRaCej4P3uq1NeCpuQQkXvAgD44GzqGP7YFi3aCvgdzG/58YlVraKOgW26XrhCmFYCAmL1m4UJKx8Psoq6lF2KP5IMBVylf8eseQbqzCSWNdm3MMEQhqbSZas8gQKQ+/eURJpYeuABDWC5qHMm78xMaSXVKcAdHh+gqFt9CR7vvW9n94mOukDzdXHnoIkuJKv8TWMh7JHiyc/R80BACPwmP; 5:JVpe5dbpcjN85ky1q1+J1zZY+WFJLGOpmrRENuuMf2UpMFSBAt/OZwwi8fWX9uakX93c76BdJoqfNbzHQ3Trk89q0HbgH2Hfz4+90POtG7SkxbCGlVp62LZJ+XgmqMdqUkJS976893+I/46Ob3gkpUStuCg8RgjD1SgMhv7mepLxVy1IeytlCWEu5C/bzSPU; 24:wj01CFtdBefj9Hf2k6ZQu2a+vsSzXn6/FNDhq9fFtd5mWQtRcusJa7NveVxn9tHgGAWBn1lJX/JWrArEqHO5S8N48BiuUTy8PNtQevjodkE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1424; 7:h7EG1IY6UX5voW+Rv76YasPKR+Uh6d5zcZ2E+MgEPQ+BDTIo80qKiFCJfFBE90j9TAHZCUMnsxeaprm+/3zu6pKPfssjZAWkQ6CC3i4OzpwRf78NRb27UhmlAnuGAzf5GjDJ5pqzUfdU3Nxbm0OhydJIfXxnwGAzVLsjsbUW0bPZiHT6QdAxFwjo1qCz7njF7eizngrRf8PnxQluDt0wscSF+AX2lgkhPgiOrtZSCCfs+h85aItfZ6d52qLkD493GRWHfTJIJtgE9sgQKgTolCZXALof2bz48HcgejRXCriujG3EII4C5htU8fG45bZhFByLAMNyQNcHfPmNDAJ5ly2SbLABEaeTWJU4Cj/Qk20= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2016 13:44:31.7350 (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: CY1PR03MB1424 Subject: [dpdk-dev] [PATCH v4 05/17] 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: Sat, 15 Oct 2016 13:44:35 -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