net/bnx2x: fix maximum PF queues
Fix the max number of PF rx/tx queues. Set the value based on BNX2X_MAX_RSS_COUNT() rather than hard coding it to 128. Fixes: 540a211084a7 ("bnx2x: driver core") Signed-off-by: Rasesh Mody <rasesh.mody@qlogic.com> Acked-by: Chas Williams <3chas3@gmail.com>
This commit is contained in:
parent
dfbd6a9cb5
commit
6b90d52a25
@ -9556,8 +9556,8 @@ static void bnx2x_init_rte(struct bnx2x_softc *sc)
|
||||
sc->max_rx_queues = min(BNX2X_VF_MAX_QUEUES_PER_VF,
|
||||
sc->igu_sb_cnt);
|
||||
} else {
|
||||
sc->max_tx_queues = 128;
|
||||
sc->max_rx_queues = 128;
|
||||
sc->max_rx_queues = BNX2X_MAX_RSS_COUNT(sc);
|
||||
sc->max_tx_queues = sc->max_rx_queues;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user