From: NĂ©lio Laranjeiro Date: Wed, 28 Dec 2016 09:58:31 +0000 (+0100) Subject: net/mlx5: fix RSS hash result for flows X-Git-Tag: spdx-start~4911 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=36ba0c0097c6aaf969fe520f91352e772a143904;p=dpdk.git net/mlx5: fix RSS hash result for flows Flows redirected to a specific queue do not have a valid RSS hash result and the related mbuf flag must not be set. Fixes: ecf60761fc2a ("net/mlx5: return RSS hash result in mbuf") Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 63146ac335..a0092b11e7 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -1338,7 +1338,7 @@ mlx5_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n) /* Update packet information. */ pkt->packet_type = 0; pkt->ol_flags = 0; - if (rxq->rss_hash) { + if (rss_hash_res && rxq->rss_hash) { pkt->hash.rss = rss_hash_res; pkt->ol_flags = PKT_RX_RSS_HASH; }