From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0069.outbound.protection.outlook.com [104.47.41.69]) by dpdk.org (Postfix) with ESMTP id 4DDA11B01E for ; Mon, 8 Jan 2018 15:10:42 +0100 (CET) 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=Nbhk9RO28pUHG7C7zWIiOuYcxvy5yzjxaSYk+eTkWUs=; b=gsN3CMrBSTu3n0kAoAAp04p6D/vio0LknMWAH8Lww+7I3YpsBB9r3hICfaYm5sH8JXVWeJH7yxI1lT0RK8ogOqk5QLbUmqwc1QTmlhf6UCsb/rEW4t6NBmTt3zUsetmxLEbBPp4R+TTwRA7/hfeO4poFN0V7f042XvxtgsEmV1o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (171.61.92.144) by CO2PR07MB2517.namprd07.prod.outlook.com (10.166.200.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Mon, 8 Jan 2018 14:10:36 +0000 Date: Mon, 8 Jan 2018 19:40:14 +0530 From: Jerin Jacob To: Pavan Nikhilesh Cc: santosh.shukla@caviumnetworks.com, bruce.richardson@intel.com, harry.van.haaren@intel.com, gage.eads@intel.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, liang.j.ma@intel.com, dev@dpdk.org Message-ID: <20180108141013.GC8412@jerin> References: <20171130072406.15605-1-pbhagavatula@caviumnetworks.com> <20171218214405.26763-1-pbhagavatula@caviumnetworks.com> <20171218214405.26763-5-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171218214405.26763-5-pbhagavatula@caviumnetworks.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-Originating-IP: [171.61.92.144] X-ClientProxiedBy: BMXPR01CA0033.INDPRD01.PROD.OUTLOOK.COM (10.174.214.19) To CO2PR07MB2517.namprd07.prod.outlook.com (10.166.200.151) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a8883733-bdb9-4313-f830-08d556a198c6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:CO2PR07MB2517; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2517; 3:WdcMMjTLkARTiZFAQXqyHSgtlCSKT5t7kXVe2hiUbdpmunGExVamTbuTTR9OkEwdYWewR7w8Qrp/9+NkEjWYu5aDLj0R21AcAkm3Lpu1fe2VHgvC1sAjEOnwuoFD5XblAnnxCNQtrKuFqgOh7ZA1lS3r0vngzWeklEaanzZjLTYHgYqEue+d1YIXihH0ijQxz/AR3T/d3P18+wWlTZIoJd8NF8yfJqamqQTstVF04lJ/Z+IkrLdNwWiUS3zzJynx; 25:+XLtNZ/HPx1HIE0AoVriPZFLxVu1GysqZmFcWHIburet+8SkkDa91fiV5acp6EMdHhe+CtSHZOpysPdeoP00grZgZeRNyH0X4bv575POJxcTNgIi7UNLoCE9VGBwzq9Tyf9KPvzxVF6gwgKmJ0ZwOHeVHK/MiPViT7Mcu8wHIyiZt9OzPhD9B6P8oBpHahKTtzFM0K84857XNm0k2Y51FC/KPOZKwdEWfza+iyQuAhOkB8ZQpMjOTlK9vkd47Tnm/hGmBxKwvsR0u1HZdNfIHq18zZOEhAE+2yBKCDy6HYQc86f6UhjV7ZYUkDiMVqKnrw+9x3pmjKn+en876J48JA==; 31:BzfyZLhr7iEvP+vbsFk2zKLt+YfX5Meotdf9ZIvZ6Ea6V2QFf4NuCk0qbWKmC2t1XViZ9IFEVrYZC0L3FunmLNZZESHCujHo2VQfEqX3vyRoGUmgap+lfk6F1tFqPklHo+31akPBdrl38AVLyB/3u2vXjFhBiczBwbTw3bWv/5IJv0ONg2moqw8mNCwnh4UQqqvZPrAwxtjh5ZCwV+QNZsBJizTD/NZE3rum+kRbIYg= X-MS-TrafficTypeDiagnostic: CO2PR07MB2517: X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2517; 20:n4jTDgHerXwLcK8IBh+lJQ0dtBl7U6glfhFURW4vOLFe3GZ3DTf+zW2PEDDI7/q4b9/vpa2uJJybmATPgaOA1yPHXsgX5crHg8vT2B0h4j9CQAQpQs7jbolNuOJHEFRfuaMWXHdMUTDWF4IDDJR9Xe61Jw/YNmaYQae8b3toO3Yj4JG0DB7Y2rupafHAH3aqgvl5OQotmmDDQnofTeufYSmot6TVNa0QeAI9878whrfI+1P+HPPVFHmvcvoZKHk32Qg/Czw3y0b2k6UGDBNs5Dgbut+zo9zCV4jlCBQY4SdZvMMGRW4cQSDaZ+nozPS9kJE4uAKZkXKi2P2fTpyeygudqc0YkMqPEnHydeuLA+0OWoEOAyjYNTcHjj3+TH6AqRcgwIuRbs6AF1suKqDdJuyEqiKIYwxV6wpqxPHtIMCJZQLHF8E7I2L0BUHLso4WFfI6HIEt25RyYngmMopTSquNu+uBA5SdJnyX3pTZZ2q+++rzykzXfdv4Gyo9P6V4HXu5oC16HY1/7hBkH0Uvu06C4GlHEaRMcVl9YHHACX+X1lO69ZV8tL1LeSeg8+lYV7oZgZj5BIzIunjG3bK6XkcLvxgZQHnJma5HoykeE4M= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(10201501046)(3002001)(3231023)(944501075)(6041268)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:CO2PR07MB2517; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CO2PR07MB2517; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2517; 4:B19OBIhkNGIScDZa1pNQBnYIXq3BrOLQ517ksba+2R7rIdIhi1kj8rgFg0uR1EjHEziqJXt1VjVM4QAAzl0Y/t6yskxydTRu6/dcZsOf6uceCIp1P49t54kMExGsD03GLIFFMr2YVxiV/vPTKy35DAGJMWXaw9CSnJUjyJ289YSLz08dJ3qCpgGRsdTj26qsBdDkfHKp19vYbPD8xA+hEbjQ6wkZi4pI4SUBy0V6jM2MzKraiZVtmZ16csqLam2NEMGbqqdwkf5TJjwbIJxYxdCWaFqYFQRYe5urtr2CxQMKi8/5zgx9ayXhCB2W/SY7L4m3ySkM1eISDuHwNL970hUHYL4at/fey/uGOCTDnEk= X-Forefront-PRVS: 054642504A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(366004)(346002)(39850400004)(396003)(39380400002)(13464003)(199004)(189003)(16526018)(8656006)(33896004)(105586002)(66066001)(55016002)(47776003)(16586007)(33716001)(25786009)(316002)(58126008)(83506002)(4326008)(106356001)(9686003)(52116002)(50466002)(76176011)(7736002)(305945005)(6496006)(8936002)(81166006)(8676002)(81156014)(229853002)(6246003)(23726003)(42882006)(2950100002)(386003)(68736007)(5660300001)(2906002)(53936002)(1076002)(3846002)(6636002)(72206003)(6666003)(478600001)(6116002)(97736004)(6862004)(33656002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB2517; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; CO2PR07MB2517; 23:S2Nl970HmwYOqwfYupIICIpRHxOJmMLvoO8Sxan2K?= =?us-ascii?Q?aUNgAl9WwfZBPOsCfAXQMh0/MJPnLHpUE9Twxa8+u2DfnqP957Hr5iU7vINz?= =?us-ascii?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1HUasbRsQSIUqEL0sfEzXAqJ4FTbMov8yDVhpXZGPijD/A5cTSqBVF5GCRghTv5DDKo30B0efEOFGmgYjfja7AWBfvbkx73UawPq0PBw5GK19WU4HDaE5BsFUrOq62JA/IBNwKJXGKULErlfM/frcznZqKmNGNj9cUr2/vpSwVvmEeHjP5mnhMOTqQw6l7VTJPh/TD+8z/kAJi5upjAicCVijVOcjgI+9AVOssL9kuowd/X8vWgFutsXSXr SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2018 14:10:36.1786 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a8883733-bdb9-4313-f830-08d556a198c6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2517 Subject: Re: [dpdk-dev] [PATCH v2 05/12] app/eventdev: add perf ethport setup and destroy X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2018 14:10:42 -0000 -----Original Message----- > Date: Tue, 19 Dec 2017 03:13:58 +0530 > From: Pavan Nikhilesh > To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, > bruce.richardson@intel.com, harry.van.haaren@intel.com, > gage.eads@intel.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, > liang.j.ma@intel.com > Cc: dev@dpdk.org, Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH v2 05/12] app/eventdev: add perf ethport setup > and destroy > X-Mailer: git-send-email 2.14.1 > > Add common ethdev port setup and destroy along with event dev destroy. > > Signed-off-by: Pavan Nikhilesh > --- > app/test-eventdev/test_pipeline_common.c | 98 ++++++++++++++++++++++++++++++++ > app/test-eventdev/test_pipeline_common.h | 3 + > 2 files changed, 101 insertions(+) > > diff --git a/app/test-eventdev/test_pipeline_common.c b/app/test-eventdev/test_pipeline_common.c > index d2ffcbe08..eb3ab6d44 100644 > --- a/app/test-eventdev/test_pipeline_common.c > +++ b/app/test-eventdev/test_pipeline_common.c > @@ -116,6 +116,104 @@ pipeline_opt_check(struct evt_options *opt, uint64_t nb_queues) > return 0; > } > > +#define NB_RX_DESC 128 > +#define NB_TX_DESC 512 > +int > +pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt) > +{ > + int i; > + uint8_t nb_queues = 1; > + uint8_t mt_state = 0; > + struct test_pipeline *t = evt_test_priv(test); > + struct rte_eth_conf port_conf = { > + .rxmode = { > + .mq_mode = ETH_MQ_RX_RSS, > + .max_rx_pkt_len = ETHER_MAX_LEN, > + .split_hdr_size = 0, > + .header_split = 0, > + .hw_ip_checksum = 0, > + .hw_vlan_filter = 0, > + .hw_vlan_strip = 0, > + .hw_vlan_extend = 0, > + .jumbo_frame = 0, > + .hw_strip_crc = 1, Use new Rx/TX offload scheme. > + }, > + .rx_adv_conf = { > + .rss_conf = { > + .rss_key = NULL, > + .rss_hf = ETH_RSS_IP, > + }, > + }, > + }; > + > + RTE_SET_USED(opt); > + if (!rte_eth_dev_count()) { > + evt_err("No ethernet ports found.\n"); > + return -ENODEV; > + } > +