Skip to contentSkip to conversation

net/bnxt: donot set hash type unnecessarily

PATCH Applied Ajit Khaparde 2 participants 2 messages Oct 27, 2017 – Oct 31, 2017 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/bnxt: donot set hash type unnecessarily

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")
---
 drivers/net/bnxt/bnxt_rxq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/bnxt/bnxt_rxq.c +1 -1
index 67d9bfe9d..c4da474e9 100644
@@ -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
Signature · 1 line
2.13.5 (Apple Git-94)
Applied
#1 lore raw
Quoted 7 lines · Ajit Khaparde

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")

Applied to dpdk-next-net/master, thanks.