mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-30 13:35:41 -04:00
ionic: fix up debugfs after queue swap
Clean and rebuild the debugfs info for the queues being swapped.
Fixes: a34e25ab97 ("ionic: change the descriptor ring length without full reset")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
b14a9fc452
commit
ed6d9b0228
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user