From: "Zhang, Roy Fan" <roy.fan.zhang@intel.com>
To: "Dumitrescu, Cristian" <cristian.dumitrescu@intel.com>,
"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] examples/ip_pipeline: fix RSS
Date: Tue, 31 Jul 2018 14:53:17 +0000 [thread overview]
Message-ID: <9F7182E3F746AB4EA17801C148F3C60433441CF2@IRSMSX101.ger.corp.intel.com> (raw)
In-Reply-To: <1533048565-216267-1-git-send-email-cristian.dumitrescu@intel.com>
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Cristian Dumitrescu
> Sent: Tuesday, July 31, 2018 3:49 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] examples/ip_pipeline: fix RSS
>
> Fix for RSS issue triggered by latest changes in ethdev layer.
>
> Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
> ---
> examples/ip_pipeline/link.c | 9 +++------
> 1 file changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/examples/ip_pipeline/link.c b/examples/ip_pipeline/link.c index
> 2ccfea4..392a890 100644
> --- a/examples/ip_pipeline/link.c
> +++ b/examples/ip_pipeline/link.c
> @@ -158,12 +158,9 @@ link_create(const char *name, struct link_params
> *params)
> memcpy(&port_conf, &port_conf_default, sizeof(port_conf));
> if (rss) {
> port_conf.rxmode.mq_mode = ETH_MQ_RX_RSS;
> - if (port_info.flow_type_rss_offloads & ETH_RSS_IPV4)
> - port_conf.rx_adv_conf.rss_conf.rss_hf |=
> - ETH_RSS_IPV4;
> - if (port_info.flow_type_rss_offloads & ETH_RSS_IPV6)
> - port_conf.rx_adv_conf.rss_conf.rss_hf |=
> - ETH_RSS_IPV6;
> + port_conf.rx_adv_conf.rss_conf.rss_hf =
> + (ETH_RSS_IP | ETH_RSS_TCP | ETH_RSS_UDP) &
> + port_info.flow_type_rss_offloads;
> }
>
> cpu_id = (uint32_t) rte_eth_dev_socket_id(port_id);
> --
> 2.7.4
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
next prev parent reply other threads:[~2018-07-31 14:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-31 14:49 Cristian Dumitrescu
2018-07-31 14:53 ` Zhang, Roy Fan [this message]
2018-07-31 14:53 ` Ananyev, Konstantin
2018-08-02 7:03 ` Peng, Yuan
2018-08-05 20:08 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9F7182E3F746AB4EA17801C148F3C60433441CF2@IRSMSX101.ger.corp.intel.com \
--to=roy.fan.zhang@intel.com \
--cc=cristian.dumitrescu@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).