net/bnxt: do not 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: fcc0aa1edc ("net/bnxt: add RSS hash configuration")
Cc: stable@dpdk.org

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
This commit is contained in:
Ajit Khaparde 2017-10-26 21:30:24 -05:00 committed by Ferruh Yigit
parent 5b3c4b054c
commit 6523803821

View File

@ -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