From: Ajit Khaparde Subject: [PATCH] net/bnxt: donot set hash type unnecessarily Date: Thu, 26 Oct 2017 21:30:24 -0500 Message-ID: <20171027023024.42707-1-ajit.khaparde@broadcom.com> Cc: ferruh.yigit@intel.com To: dev@dpdk.org Return-path: Received: from rnd-relay.smtp.broadcom.com (rnd-relay.smtp.broadcom.com [192.19.229.170]) by dpdk.org (Postfix) with ESMTP id DDDC71B789 for ; Fri, 27 Oct 2017 04:30:31 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" We are wrongly "OR-ing" the vnic->hash_type instead of assigning the new hash type thereby wrongly configuring hash settings. Fixing it. Fixes: fcc0aa1edc10 ("net/bnxt: add RSS hash configuration") Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_rxq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_rxq.c b/drivers/net/bnxt/bnxt_rxq.c index 67d9bfe9d..c4da474e9 100644 --- a/drivers/net/bnxt/bnxt_rxq.c +++ b/drivers/net/bnxt/bnxt_rxq.c @@ -206,7 +206,7 @@ int bnxt_mq_rx_configure(struct bnxt *bp) for (i = 0; i < bp->nr_vnics; i++) { STAILQ_FOREACH(vnic, &bp->ff_pool[i], next) { - vnic->hash_type |= hash_type; + vnic->hash_type = hash_type; /* * Use the supplied key if the key length is -- 2.13.5 (Apple Git-94)