Skip to content

Commit

Permalink
ionic: fix up debugfs after queue swap
Browse files Browse the repository at this point in the history
Clean and rebuild the debugfs info for the queues being swapped.

Fixes: a34e25a ("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>
  • Loading branch information
Shannon Nelson authored and David S. Miller committed Sep 14, 2020
1 parent b14a9fc commit ed6d9b0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions drivers/net/ethernet/pensando/ionic/ionic_lif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ed6d9b0

Please sign in to comment.