From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0074.outbound.protection.outlook.com [157.56.110.74]) by dpdk.org (Postfix) with ESMTP id 036FD5955 for ; Mon, 27 Jun 2016 13:55:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=oYDooDPrQEOrfsIJvYy3a54k6SHThW5awTUBdBTNFw0=; b=VP4VmSCyEirLR2Audl1JnUCXx3xEjtrVQDcsZUIWA9XSDRTJTJS64B1Th/TR52zOeeGPHU1QE14dzGwqZE72TrSB5B4VaN9YgKHnmjTz7bzvrwRZc9lezvG+s8g3pDDWaoY5H6C7xseiji4egyr98e0MEzDoQQDxZa6vHXueros= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain.localdomain (171.48.12.117) by BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) with Microsoft SMTP Server (TLS) id 15.1.528.16; Mon, 27 Jun 2016 11:54:56 +0000 From: Jerin Jacob To: CC: , , , , , Jerin Jacob Date: Mon, 27 Jun 2016 17:24:06 +0530 Message-ID: <1467028448-8914-3-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1467028448-8914-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1467028448-8914-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.48.12.117] X-ClientProxiedBy: MA1PR01CA0014.INDPRD01.PROD.OUTLOOK.COM (10.164.117.21) To BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) X-MS-Office365-Filtering-Correlation-Id: b19ae9bf-a0b4-4901-5137-08d39e81dd2b X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 2:N1laSxObg8tDStGprUsDd8U+o32CDyqCzkQzoaD3GaVvMMbf2/J65VKQAp4UGfDy5HI437l9yUCc64sCvD2RLDBub9pf/zP3pWVClor1idqaKWRCMoyNLn2FKP62rifVoRRcz1DuzmYwCkiu4vn6hTncWQf0qyZ9UxrGTIfUjMb5NCDr+dt1ymuzR5gnosaY; 3:L98QNb4xb2r3ac1GWJX4w2p+MqGwoWc9uilMDwyrmQcphqbtrYY3mfTKk3UZyJStk5MrrkdIJ2M915sNMrWu2EUsyI78Aj6h14EjeJH8N8DATpus8Y3vMDOl4WlA2fFU; 25:a9bPVuxumLO3GCdWcXLdg3oTuDfrg2sH6UpvIOFXQSUobmHARsN17VAUFAyq83HUGeeMhdM87VKuRFsM55LWXdsHN7ljQwg+UDSuEeY4q5zGsuy0X84ncKchHguxbOiIPqA2a6imGnrM21W4itd4garza7sRCjeGQAdT8PO85C8NPWXyR7UTf3E4wq1CW6R2a+suioLhtuPDWLChOv/jehLSJ1ggMh3sJCuz45NN0gQOo2FkFisQIRV/i01wAtL6jAfbw7WHp6Zn9BiE47RUzdrax8z7fzM32pe3J2d1YUbU0eeyn+fF+XWCxi/aojuc6tRkSel5X8mxedetQBm64K8HyRwlLTlKBPaw8s04kCXQL6BhSeo8Y9IxslqXD/2nE4bL6WibcIib4gp8hATSvveOwMBjROm/prjqyv+RZCw= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0701MB1720; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 31:ZtxpYuhHPu+xiYf+LTKQZFvOrB1QM9lwe0hVoQ3o+OK+tn8p7yjYx8zPSx9K2DYxNJ+osdgJ0m+8vdgnduwK6kbZR3RJq7Z2bTXPVGSF832J7//OoXbX0kaj3KS3m6j4zYHJak3TuM6F0ggdXQF05ZQN/PIIPQWKLaIiYdX85zAfxkUtz6hCN5LHa52oVoQXnwHZS5pHilRAvj+S/SLjAQ==; 20:c0G3h0N2OBI6k7tdIk6DX9qdiwl0TOMiHseFMaxrvYJDhIyoLztK+7m/af5wqxiTRnk1RLmSILdj9g3NvZO6bw3nWrvXWocjmUKs4wPWSfdy29mRxjhwqoEIOAPc0dG3ikDXPoQkAbXhcoGlhz9xe1yxV4NY3zM+NJfsEFsZVWPWPp1vC4wzt2nPp3u2XIX3sc75JWk+NjLYQLHekQ/WBOQpMUr5DwX12y6CJZjhSCybLxdQ5RFqXTLd4C7NEdhbadbzvbplXiAcheyWCwxdUuz+QQkn8Q0cwmy3sXJZPpMGblIxCd6v3JHyOYOqJ4ZNgr1Ebvf4zp267CZDApJlpbT9WLgH0IdCLi98d4MVM4gCBtWI3Omx9Bcf9ICMOq3quWcv0pBL59hHPsiywp6xqtLz8Rs8mB5o2TYa8IdjcXeuy8yTB1VfunemkoSnB+gApky1vm+F0dG+VQzuZvsvrMwkTqu4LS7L8se5ceHjjirMDbZBcHwfZ+vxZU4zI4DZIeTOHb0P8e8hZlhS/A+nDpiL3ouBk1B1rrYlmS7PaXxjxwfiNjToqr/7PRJ1KttH5PpeJFtxyJvqlVwXeTowWH1xPv0ieBF3NFquMb8cuIs= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:BN3PR0701MB1720; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1720; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 4:iI3+ku3/Jq3qPYb5Jqv7FrBLNDEgqdfnvgUm9MDvvCKTmRIwg9AjiA20IHGY4/jkIxEnQ87BCrmDytBxcOZoxvkmls07hkrIluwkzHoPLfIz4N0y6spw4YELzcL86esHvFWfr53A2zluYjVzI7kjwV3SItUrYd03ScfdntVG1OfsUXC5G8B3fewOubdcc6FpuyIoSHvN4tC92eikItHNBgd4BFXsVRqJDT+6WmiSIzBP5FzFmJxobnZJwAm38v2DdlXAzEa60iSgvbcT1FF1GgbqPT5Tro1xdYwXMU6aI/i1ejW+MlN20inx9CF5ymw/0Em4ksTHqFPp3jJHIOy7DHMprbdfvr0ZSXsGPKKXQngyu//Fl+gwzF3KeVwyVb11 X-Forefront-PRVS: 09860C2161 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(189002)(199003)(50226002)(4001430100002)(97736004)(105586002)(50466002)(50986999)(76176999)(586003)(3846002)(48376002)(42186005)(106356001)(101416001)(107886002)(5003940100001)(110136002)(2950100001)(19580395003)(19580405001)(305945005)(77096005)(36756003)(92566002)(2906002)(81166006)(47776003)(68736007)(4326007)(7846002)(66066001)(229853001)(8676002)(2351001)(33646002)(6116002)(81156014)(7736002)(189998001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1720; H:localhost.localdomain.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1720; 23:oh/eNOnROPwmA60sGBbVa74Qz8Vn0eWpFZp6N6l?= =?us-ascii?Q?8PvMnDUYx+xrknFMzCmfbUISoIBnKRGOx6PDv7jrcPXSKybq8O/j5x6YPhtB?= =?us-ascii?Q?mbncuIx6umujxTKwuNGUqVdY+j8y8+oSvlDqQHHcf4755Ik95FcDNsPNmRbW?= =?us-ascii?Q?HyuS+Y2OR78YRysULpnUYKfdi39F1r06LV7xdU+EymNCDoP3IzbDW2A7ZGKS?= =?us-ascii?Q?hWQOe3vIOBqHGnUuJFfQ7heBa6dVdcSafEEE2b/TarqVzkhlCHhxm5muZdDz?= =?us-ascii?Q?uENW41mDMDaW3t0eLto7AJ7u4xVx9Q28Wib71uqMOLXkuvBxNcrICI/JSprX?= =?us-ascii?Q?l3E4IC6TAE88E2rkyB9VowfSP6vOwQ343RyhKBWMeHMytihErmA3e37cXFqM?=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hSKyDUBr2oCIozcMTZfJcuMspzIBZFv5CotLFYgdvPJAe90ilpNC/QGTtALyMlbAT7Th5mA5dEHn2bnFz8XC7zpq9PSVBX5FXhKGFGFlP0vdjfXfOuk9Jv7ohMJZ6KVGfClt0Bi8/1AiSBPpY+NhUyNGfEcJpbfTejt7l+HEbO/KGpoxCg=; 5:xJhYrBeOnu/Hgvxcg77zlDVpch7IhIKj1LKzShnW7fxt2AAwdA5LIP3CQymdiqSX35UMuwKDCrzBoJRRCbaebABc0g5vv1Z2REsT3UD5hKHIq1+MR8bDQkgMDjpqSisZQ8TEzQyZWIPQK8EtqzP1BA==; 24:KRQQ01wp6vdiq4KgzEz/R8gSuxqx/Hv2yW95WULKKin+wMb+KxbHKduAEfKWghQQ6E2biOGbOXvf8YCYv2xw4H78kZYaSDKgDsl5/bB+Q20=; 7:jWmtdfOocUSUIKoMrUyaJ4EeGx+Gvc3D5VYIKSKac4aiD085e5jAyWsLromiG9CiPvXTyepw2L1+2tJ0NaP84P9OXluO4R2frqZcAczHoDyubjLX85jStQkpmfe763aYFVtC+Jn2hvzoLh9z/UO46pvLiB8OlzwU790MIkMgz1ZclXUGq6Xvwl+9tek29OEtU5qE+0nr5Om87RnQyCD9uBEdbsg+99TeEAyA9w7IKMCmuyqlPeuWEa96OJ4/1N2D SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2016 11:54:56.2484 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1720 Subject: [dpdk-dev] [PATCH 2/4] virtio: introduce RTE_LIBRTE_VIRTIO_INC_VECTOR 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: Mon, 27 Jun 2016 11:55:00 -0000 like other PMD drivers, introduce RTE_LIBRTE_VIRTIO_INC_VECTOR for vector based handler selection in virtio Enabled by default in common config and disabled for non X86 platforms Signed-off-by: Jerin Jacob --- config/common_base | 1 + config/defconfig_arm-armv7a-linuxapp-gcc | 1 + config/defconfig_arm64-armv8a-linuxapp-gcc | 1 + config/defconfig_ppc_64-power8-linuxapp-gcc | 1 + config/defconfig_tile-tilegx-linuxapp-gcc | 1 + drivers/net/virtio/virtio_rxtx.c | 2 ++ 6 files changed, 7 insertions(+) diff --git a/config/common_base b/config/common_base index 3a04fba..f6ce168 100644 --- a/config/common_base +++ b/config/common_base @@ -267,6 +267,7 @@ CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_RX=n CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_TX=n CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_DRIVER=n CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_DUMP=n +CONFIG_RTE_LIBRTE_VIRTIO_INC_VECTOR=y # # Compile burst-oriented VMXNET3 PMD driver diff --git a/config/defconfig_arm-armv7a-linuxapp-gcc b/config/defconfig_arm-armv7a-linuxapp-gcc index bde6acd..a249ad5 100644 --- a/config/defconfig_arm-armv7a-linuxapp-gcc +++ b/config/defconfig_arm-armv7a-linuxapp-gcc @@ -75,3 +75,4 @@ CONFIG_RTE_LIBRTE_VMXNET3_PMD=n CONFIG_RTE_LIBRTE_PMD_XENVIRT=n CONFIG_RTE_LIBRTE_PMD_BNX2X=n CONFIG_RTE_LIBRTE_QEDE_PMD=n +CONFIG_RTE_LIBRTE_VIRTIO_INC_VECTOR=n diff --git a/config/defconfig_arm64-armv8a-linuxapp-gcc b/config/defconfig_arm64-armv8a-linuxapp-gcc index a786562..95ed30e 100644 --- a/config/defconfig_arm64-armv8a-linuxapp-gcc +++ b/config/defconfig_arm64-armv8a-linuxapp-gcc @@ -48,5 +48,6 @@ CONFIG_RTE_IXGBE_INC_VECTOR=n CONFIG_RTE_LIBRTE_IVSHMEM=n CONFIG_RTE_LIBRTE_FM10K_PMD=n CONFIG_RTE_LIBRTE_I40E_PMD=n +CONFIG_RTE_LIBRTE_VIRTIO_INC_VECTOR=n CONFIG_RTE_SCHED_VECTOR=n diff --git a/config/defconfig_ppc_64-power8-linuxapp-gcc b/config/defconfig_ppc_64-power8-linuxapp-gcc index bef8f49..1eca73a 100644 --- a/config/defconfig_ppc_64-power8-linuxapp-gcc +++ b/config/defconfig_ppc_64-power8-linuxapp-gcc @@ -51,6 +51,7 @@ CONFIG_RTE_LIBRTE_EAL_VMWARE_TSC_MAP_SUPPORT=n CONFIG_RTE_LIBRTE_IXGBE_PMD=n CONFIG_RTE_LIBRTE_I40E_PMD=n CONFIG_RTE_LIBRTE_VIRTIO_PMD=y +CONFIG_RTE_LIBRTE_VIRTIO_INC_VECTOR=n CONFIG_RTE_LIBRTE_VMXNET3_PMD=n CONFIG_RTE_LIBRTE_PMD_BOND=n CONFIG_RTE_LIBRTE_ENIC_PMD=n diff --git a/config/defconfig_tile-tilegx-linuxapp-gcc b/config/defconfig_tile-tilegx-linuxapp-gcc index 5a50793..0d6fe1e 100644 --- a/config/defconfig_tile-tilegx-linuxapp-gcc +++ b/config/defconfig_tile-tilegx-linuxapp-gcc @@ -59,6 +59,7 @@ CONFIG_RTE_LIBRTE_IXGBE_PMD=n CONFIG_RTE_LIBRTE_I40E_PMD=n CONFIG_RTE_LIBRTE_FM10K_PMD=n CONFIG_RTE_LIBRTE_VIRTIO_PMD=n +CONFIG_RTE_LIBRTE_VIRTIO_INC_VECTOR=n CONFIG_RTE_LIBRTE_VMXNET3_PMD=n CONFIG_RTE_LIBRTE_ENIC_PMD=n diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c index 63b53f7..e9b42f3 100644 --- a/drivers/net/virtio/virtio_rxtx.c +++ b/drivers/net/virtio/virtio_rxtx.c @@ -499,6 +499,7 @@ virtio_dev_tx_queue_setup(struct rte_eth_dev *dev, return -EINVAL; } +#ifdef RTE_LIBRTE_VIRTIO_INC_VECTOR #ifdef RTE_MACHINE_CPUFLAG_SSSE3 struct virtio_hw *hw = dev->data->dev_private; /* Use simple rx/tx func if single segment and no offloads */ @@ -510,6 +511,7 @@ virtio_dev_tx_queue_setup(struct rte_eth_dev *dev, hw->use_simple_rxtx = 1; } #endif +#endif ret = virtio_dev_queue_setup(dev, VTNET_TQ, queue_idx, vtpci_queue_idx, nb_desc, socket_id, (void **)&txvq); -- 2.5.5