提交 ed6d9b02 编写于 作者: S Shannon Nelson 提交者: David S. Miller

ionic: fix up debugfs after queue swap

Clean and rebuild the debugfs info for the queues being swapped.

Fixes: a34e25ab ("ionic: change the descriptor ring length without full reset")
Signed-off-by: NShannon Nelson <snelson@pensando.io>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b14a9fc4
......@@ -2241,6 +2241,21 @@ int ionic_reconfigure_queues(struct ionic_lif *lif,
}
}
/* now we can rework the debugfs mappings */
if (tx_qcqs) {
for (i = 0; i < qparam->nxqs; i++) {
ionic_debugfs_del_qcq(lif->txqcqs[i]);
ionic_debugfs_add_qcq(lif, lif->txqcqs[i]);
}
}
if (rx_qcqs) {
for (i = 0; i < qparam->nxqs; i++) {
ionic_debugfs_del_qcq(lif->rxqcqs[i]);
ionic_debugfs_add_qcq(lif, lif->rxqcqs[i]);
}
}
swap(lif->nxqs, qparam->nxqs);
err_out_reinit_unlock:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册