> -----Original Message-----
> From: dev <[email protected]> On Behalf Of
> [email protected]
> Sent: Wednesday, December 4, 2019 8:14 PM
> To: [email protected]; Marko Kovacevic <[email protected]>; Ori
> Kam <[email protected]>; Bruce Richardson
> <[email protected]>; Radu Nicolau <[email protected]>;
> Akhil Goyal <[email protected]>; Tomasz Kantecki
> <[email protected]>; Sunil Kumar Kori <[email protected]>;
> Pavan Nikhilesh <[email protected]>
> Cc: [email protected]
> Subject: [dpdk-dev] [PATCH v2 04/11] examples/l3fwd: add ethdev setup
> based on eventdev
>
> From: Sunil Kumar Kori <[email protected]>
>
> Add ethernet port Rx/Tx queue setup for event device which are later
> used for setting up event eth Rx/Tx adapters.
>
> Signed-off-by: Sunil Kumar Kori <[email protected]>
> ---
> examples/l3fwd/l3fwd.h | 10 +++
> examples/l3fwd/l3fwd_event.c | 129
> ++++++++++++++++++++++++++++++++++-
> examples/l3fwd/l3fwd_event.h | 2 +-
> examples/l3fwd/main.c | 15 ++--
> 4 files changed, 144 insertions(+), 12 deletions(-)
>
<snip>
> +
> + local_port_conf.rx_adv_conf.rss_conf.rss_hf &=
> +
> dev_info.flow_type_rss_offloads;
> + if (local_port_conf.rx_adv_conf.rss_conf.rss_hf !=
> + port_conf->rx_adv_conf.rss_conf.rss_hf) {
> + printf("Port %u modified RSS hash function "
> + "based on hardware support,"
> + "requested:%#"PRIx64"
> configured:%#"PRIx64"\n",
> + port_id,
> + port_conf->rx_adv_conf.rss_conf.rss_hf,
> + local_port_conf.rx_adv_conf.rss_conf.rss_hf);
> + }
We are using 1 queue, but using RSS hash function?
> +
> + ret = rte_eth_dev_configure(port_id, 1, 1, &local_port_conf);
> + if (ret < 0)
> + rte_exit(EXIT_FAILURE,
> + "Cannot configure device: err=%d,
> port=%d\n",
> + ret, port_id);
> +
We should be using number of RX queues as per the config option provided in the
arguments.
L3fwd is supposed to support multiple queue. Right?
Regards,
Nipun