From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0054.outbound.protection.outlook.com [104.47.37.54]) by dpdk.org (Postfix) with ESMTP id 53C5068F5 for ; Fri, 9 Sep 2016 10:44:53 +0200 (CEST) Received: from BN6PR03CA0048.namprd03.prod.outlook.com (10.175.124.34) by BN6PR03MB2435.namprd03.prod.outlook.com (10.168.223.13) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.609.9; Fri, 9 Sep 2016 08:44:51 +0000 Received: from BL2FFO11FD019.protection.gbl (2a01:111:f400:7c09::132) by BN6PR03CA0048.outlook.office365.com (2603:10b6:404:10c::34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.599.9 via Frontend Transport; Fri, 9 Sep 2016 08:44:52 +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 BL2FFO11FD019.mail.protection.outlook.com (10.173.161.37) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.587.6 via Frontend Transport; Fri, 9 Sep 2016 08:44:51 +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 u898hoYw018305; Fri, 9 Sep 2016 01:44:49 -0700 From: Shreyansh Jain To: CC: , , Shreyansh Jain Date: Fri, 9 Sep 2016 14:13:48 +0530 Message-ID: <1473410639-10367-5-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1473410639-10367-1-git-send-email-shreyansh.jain@nxp.com> References: <1451682326-5834-1-git-send-email-viktorin@rehivetech.com> <1473410639-10367-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131178842916555170; (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)(1110001)(1109001)(339900001)(199003)(189002)(8936002)(7846002)(104016004)(586003)(2950100001)(8666005)(50986999)(68736007)(47776003)(50226002)(81156014)(85426001)(86362001)(19580405001)(110136002)(575784001)(356003)(305945005)(19580395003)(8676002)(81166006)(4326007)(97736004)(105606002)(87936001)(5660300001)(2351001)(189998001)(106466001)(36756003)(229853001)(2906002)(76176999)(33646002)(50466002)(5003940100001)(626004)(92566002)(48376002)(77096005)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2435; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD019; 1:dvVogQYbpOVKwfdpKdXzfIqMLcM5Jzyw7OxL5LME2CntnuPrYItUKev1o//GJ5+6OcQduATcE/hW++gAnNdSFYoKJ7+hTjkU1eIlBsi3kmytJDvoM2uvx6bzt6cDRXHRa3KipiUedKayQ+ozntXSn7Nsld1t8GsO4CVAWG1NReiHUBHfdEnuWpTsrzD/8pGjOBQagC/bsY2mqvDDT/RxMg4ZV5qxgOWdAJ2QTIxgX9IU4sCWivOakrkj7kV36lIwBwhkI7X4cy5Zk9LL22ysc1vEQgTJjBrz/x0CfMqutTe4hS63Hm27ke8j42xeqjAduP4V8lnohJYelaH0x1hRhy7SYYlU/HzuZzrSbAmd73odtog3TRkvSimq9OYwufa3mrImq2DY4qU3N0hxQ+wxU6KsOMpH1F97yEyfl+O/ZjdediR5bcv/0hXXEZJgdpUT56mtnQdQhAUJY/pKAz0ryupxfg1bFnJDe5nSMdQ+OPt2Wf3CKV8EywcmP+qzUGncttDAU4SkJZN3FRC8ou82JEyNoTeYYk+SjNXnjqneXSv05NNYxiQB5cOJAX0jzRbC12oVgqW7XK/qVkNhs6qpRR7u+cJ+iCmdkWi4SvKrsZQ8yjKTp3T3XKMf4cXuSjeihDT6L/2hnPN47E4+BfJr5897l6/lHiTlfPOvgQcivcZzENW/qWbWlcNY0CLRQSnaQegI/9ysOJZ+qBIIRIC9z7hJsHh9aahyTRGtCcQjiyE= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 056869e6-c8a4-4107-2841-08d3d88d908b X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2435; 2:LOc1RA0ACWzTBlZLt0hOXUaD3aKWdPNUnPuF4XXpY9ediK1nKWsUYo3APqi6dxTx5mXAOydqUFm7xDaVKSPSnnTfd99JPwAw9NpK1xAiiZQ4EwMgCN1F8//qnuqHhTTvJyq9eEaRDvY2iDzF20Ds9XuQvbmfjKIB4sfA4IKdetL5vmDRmmE4zCMRGwFYCP8p; 3:M2bzj7naxClBOCoTYMCorzkuIProWqRygSiKg8NHAOkSfvvMP0cp1Ku7wVIeENK5VBqMuz9U7rLRVcBXzuSgDgv41CHBQfqGVY57O4iDKxVr6zYjZZe8rpMxhCkB39d5pYGkSMAwNpvGF0/qdM3ViI5o6gs/bN2iRuWNAuhWXS6t+EAJ/O6Ky0BLxX7B5WIzWpjdkW2AQNqyQPvatq69f7zligFIlNHc21+hUxC6sEs=; 25:MrQ1BdFJc8fsXQVgxaLhws606RnN1xjpk5CAzl9u9MoeUcI/bzBlMnjfrJM7lpswAWK7xqpyMTdOjkNCO30jYHfhuM6yAddUwiTTRVVwvXp9ulfzCkcpnMSsU/+p51Qqe2CoHhx2GU0S2R3Jm+NvFTsb+luZ9cnbdEVpvb8JwyzTHS8hhCQoywdff6BBulUceLxwatDEK2JVlr6sCXKeNAU7k700GrqhNkKjIwg0Yt5reriOg4Xrc30NOdg5xEHf/J6lofsX/wG62eyNgmW0cbhQh97SrdedaLqylvelQXPc0MlYpqQPwn358qwrJ3FmWsx7oBKtFNBbVOS6EYvhqFASJ3zPD0lsEBuPomazzg8KdL7HEbcdJKAs9prPtOP2e3VVxu1kBkjwi0caPYVOmtXkBbA4z6W56TMAok2ei44= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN6PR03MB2435; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2435; 31:huirxXBV4Nt9CjsKdgbo41RHPCE1GPTuHpvgWR0H9egQH67qsaxvCYswxsjcYjbxlWOle8BV5FNIuHVhpPvNc7NTPMKdvhUx84mxs8n8OX3Wu4KIId3Qh/7+//553AXaZf8JI+u0XPWcscMTIHBmCtgvDF8VM5qFQ5awhtyzcom5blubs30ygdJn9eJQSkP67iZvWGsYZQtCVk835x77Q/DgvwEQaJTivg9UbIkqlRA=; 4:QYXexGejriXaaXWnt/hIVca5SFiAU4KDETVOxMRpTbipqfYfF0amDON/00dE5eOAd7xYfREuVuD2Hd1fD/lIMGxWF66xuPNRP07E8CzUYQtwnV++nBjt9AqpyIOv8FxRvtbaPUyRz/9nN3HiEuMpmop5SbRBEK4mtrDZoKuT8AAUF6Jc+eRzDGl6mviRJiJk5WJoc2SXqnEks0gE2RSalxeBh8cHo0XI7jFRmpKDmF3h5TlRkcZksGs399KlwoENlzb8rfydf6fOlJDAQ+iWO+Vhu4Ftc2C/k61ny9+/uec5Mm5N7oLCzlxRqjWZe7mUVVcZaWUiyssdjtBvv42R3BSUZiivOFYZlcWSPi0C/fyHMtx4DpRd9diWPddbevTJAW1WwXNHqfe9WmxIo163GPlF0RbILm9yhRwXKmRoQ/RUD0jOf0uP4gDq1FNhSXRyq2nyVEbmq3xLjp55BZTt5YfTPpZOrp0N0iHEpOUxJwY+QMmJGZdIgindln3nXusFU3+QDN8E/3rMj9B6febnnZkOSHcf/wNQhssG0rpP9rM= 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)(13015025)(13017025)(13023025)(13018025)(13024025)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:BN6PR03MB2435; BCL:0; PCL:0; RULEID:(400006); SRVR:BN6PR03MB2435; X-Forefront-PRVS: 00603B7EEF X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2435; 23:oFQWnrEo8tEXAC3zsp+ezgtsdvBkS0BNjgmTFCGiQ?= =?us-ascii?Q?btk/2TfyKhqoeSr/iSuWok9K1HV6F626gem5sj9l/3EiifEvmxx1O0jPdsv3?= =?us-ascii?Q?fdsrN+G6acEp43TuLSSq0lXik1YGI5M2j2l185QRSU/3LpJ1M9PxGvxEwXdJ?= =?us-ascii?Q?KDEjQySQqGmR0nR43ByyypyI5JOxk8mEVpzMBED5m9nsqyMO2NbruoTCb5tr?= =?us-ascii?Q?iVmp2CQ67h2yI6wsw1F61y7DYXpGe6755RaLajptEA/lCVpmf10+tOo4cizU?= =?us-ascii?Q?P+kp7Dhcyj8psFDcPTdYdhTFuiispzvBFgO3it99Dgikj/Q62EUMxPcco1D8?= =?us-ascii?Q?BSKleILWOKY6owtDoa/I7IqcAh99dH2B5t978yTesyMPHzNkOpgrv4LpxnyF?= =?us-ascii?Q?DmFjqywBgVj8NEkEgGcOafvFTk23QsciC3Vyfjdgt7c315r/fjhLsykfS0pe?= =?us-ascii?Q?7qHVYKPMwzz9sahl+9lX3I2lOJ1C1l3HaKXmCqW0NzXuX21UcMisVS24M13r?= =?us-ascii?Q?UG7ZmMOtKwYyeeogliDgfijlGAwg73wjOlep06uHF73ytWOBGyy7edIzPxbi?= =?us-ascii?Q?4EsIwJ5jJKfW/rH1gr4G/xucnfru4yFVK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PHUlMcqPR5LC6utfbCeUwHJlYcafj4LxPr3nS1x9NNJc6/POAldyWBLRdoumy8mXUzYMnjFFvcVuvOdilERM90tw8OXj6UfDGmsBIJtlkZ5sW0E1ynaZT4OUdHN1FWEJ4k=; 24:pNJqbl13ajtoTero49lU0CJD3ITnCk390V/vVDIwDomYx7S5JMsl5uEeQ4nuu796EfSKOL+pDuwJ98+QAt/v8dRGEO5pKi89cP5UKOjmKDU=; 7:ec8hKrHcQmS5wQBt6efePSlSZbTTW5jYFg5YhwFuEyASTVH5RVXAv2/fpgv8zycXmkCHUuZCvPhX6p54t8LsmSTu7cP4YQ2iOx47iAypI478Og5U/1h1BNxgkQX9FIzCVp/uhGH8LPwt6sHDXhZsIsMqCin3QrVHcczxZ1bVBx/s9q0NVW3pd2XPWREvP+0xUvO9hUPLKxBAad7FJtTJ1PajzX7eMuwlQxflhBjqBdIeilDrf6B24uJ/kFkJjKou SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2016 08:44:51.4683 (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: BN6PR03MB2435 Subject: [dpdk-dev] [PATCH v3 04/15] eal: introduce --no-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, 09 Sep 2016 08:44:54 -0000 This option has the same meaning for the SoC infra as the --no-pci for the PCI infra. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- 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 ++ 3 files changed, 8 insertions(+) diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index 1a1bab3..d97cf0a 100644 --- a/lib/librte_eal/common/eal_common_options.c +++ b/lib/librte_eal/common/eal_common_options.c @@ -85,6 +85,7 @@ eal_long_options[] = { {OPT_NO_HPET, 0, NULL, OPT_NO_HPET_NUM }, {OPT_NO_HUGE, 0, NULL, OPT_NO_HUGE_NUM }, {OPT_NO_PCI, 0, NULL, OPT_NO_PCI_NUM }, + {OPT_NO_SOC, 0, NULL, OPT_NO_SOC_NUM }, {OPT_NO_SHCONF, 0, NULL, OPT_NO_SHCONF_NUM }, {OPT_PCI_BLACKLIST, 1, NULL, OPT_PCI_BLACKLIST_NUM }, {OPT_PCI_WHITELIST, 1, NULL, OPT_PCI_WHITELIST_NUM }, @@ -855,6 +856,10 @@ eal_parse_common_option(int opt, const char *optarg, conf->no_pci = 1; break; + case OPT_NO_SOC_NUM: + conf->no_soc = 1; + break; + case OPT_NO_HPET_NUM: conf->no_hpet = 1; break; diff --git a/lib/librte_eal/common/eal_internal_cfg.h b/lib/librte_eal/common/eal_internal_cfg.h index 5f1367e..3a98e94 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 no_soc; /**< true to disable 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..ba1e704 100644 --- a/lib/librte_eal/common/eal_options.h +++ b/lib/librte_eal/common/eal_options.h @@ -69,6 +69,8 @@ enum { OPT_NO_HUGE_NUM, #define OPT_NO_PCI "no-pci" OPT_NO_PCI_NUM, +#define OPT_NO_SOC "no-soc" + OPT_NO_SOC_NUM, #define OPT_NO_SHCONF "no-shconf" OPT_NO_SHCONF_NUM, #define OPT_SOCKET_MEM "socket-mem" -- 2.7.4