On Thu, Mar 10, 2016 at 3:12 AM, Matias Elo <matias....@nokia.com> wrote:
> Always set at least the default input hash functions to > enable DPDK RSS hash calculation. > > Signed-off-by: Matias Elo <matias....@nokia.com> > Reviewed-by: Bill Fischofer <bill.fischo...@linaro.org> > --- > 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