[dpdk-dev] [PATCH v2 05/12] app/eventdev: add perf ethport setup and destroy
Jerin Jacob
jerin.jacob at caviumnetworks.com
Mon Jan 8 15:10:14 CET 2018
-----Original Message-----
> Date: Tue, 19 Dec 2017 03:13:58 +0530
> From: Pavan Nikhilesh <pbhagavatula at caviumnetworks.com>
> To: jerin.jacob at caviumnetworks.com, santosh.shukla at caviumnetworks.com,
> bruce.richardson at intel.com, harry.van.haaren at intel.com,
> gage.eads at intel.com, hemant.agrawal at nxp.com, nipun.gupta at nxp.com,
> liang.j.ma at intel.com
> Cc: dev at dpdk.org, Pavan Nikhilesh <pbhagavatula at caviumnetworks.com>
> 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 <pbhagavatula at caviumnetworks.com>
> ---
> 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;
> + }
> +
More information about the dev
mailing list