nfp: fix Tx queue reset

When using start-stop functionality the per queue fields need to
be properly reset.

Fixes: b812daadad ("nfp: add Rx and Tx")

Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
This commit is contained in:
Alejandro Lucero 2016-03-14 10:39:04 +00:00 committed by Thomas Monjalon
parent 323fc9bace
commit 5cc9ad56c2

View File

@ -347,6 +347,7 @@ nfp_net_reset_tx_queue(struct nfp_net_txq *txq)
txq->wr_p = 0;
txq->rd_p = 0;
txq->tail = 0;
txq->qcp_rd_p = 0;
}
static int