Ping

> -----Original Message-----
> From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of EXT 
> Matias
> Elo
> Sent: Thursday, March 10, 2016 11:13 AM
> To: lng-odp@lists.linaro.org
> Subject: [lng-odp] [PATCH] linux-generic: dpdk: always set input hash 
> functions
> 
> Always set at least the default input hash functions to
> enable DPDK RSS hash calculation.
> 
> Signed-off-by: Matias Elo <matias....@nokia.com>
> ---
>  platform/linux-generic/pktio/dpdk.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/platform/linux-generic/pktio/dpdk.c b/platform/linux-
> generic/pktio/dpdk.c
> index a39e7dc..10daa29 100644
> --- a/platform/linux-generic/pktio/dpdk.c
> +++ b/platform/linux-generic/pktio/dpdk.c
> @@ -185,7 +185,13 @@ static int dpdk_setup_port(pktio_entry_t *pktio_entry)
>       pkt_dpdk_t *pkt_dpdk = &pktio_entry->s.pkt_dpdk;
>       struct rte_eth_rss_conf rss_conf;
> 
> -     rss_conf_to_hash_proto(&rss_conf, &pkt_dpdk->hash);
> +     /* Always set some hash functions to enable DPDK RSS hash calculation
> */
> +     if (pkt_dpdk->hash.all_bits == 0) {
> +             memset(&rss_conf, 0, sizeof(struct rte_eth_rss_conf));
> +             rss_conf.rss_hf = ETH_RSS_IP | ETH_RSS_TCP | ETH_RSS_UDP;
> +     } else {
> +             rss_conf_to_hash_proto(&rss_conf, &pkt_dpdk->hash);
> +     }
> 
>       struct rte_eth_conf port_conf = {
>               .rxmode = {
> --
> 1.9.1
> 
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> https://lists.linaro.org/mailman/listinfo/lng-odp
_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to