* [PATCH net-next] ionic: fix up debugfs after queue swap
@ 2020-09-13 19:16 Shannon Nelson
2020-09-14 23:56 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Shannon Nelson @ 2020-09-13 19:16 UTC (permalink / raw)
To: netdev, davem; +Cc: Shannon Nelson
Clean and rebuild the debugfs info for the queues being swapped.
Fixes: a34e25ab977c ("ionic: change the descriptor ring length without full reset")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
---
drivers/net/ethernet/pensando/ionic/ionic_lif.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_lif.c b/drivers/net/ethernet/pensando/ionic/ionic_lif.c
index eeaa73650986..895e2113bd6b 100644
--- a/drivers/net/ethernet/pensando/ionic/ionic_lif.c
+++ b/drivers/net/ethernet/pensando/ionic/ionic_lif.c
@@ -2235,6 +2235,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:
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] ionic: fix up debugfs after queue swap
2020-09-13 19:16 [PATCH net-next] ionic: fix up debugfs after queue swap Shannon Nelson
@ 2020-09-14 23:56 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-09-14 23:56 UTC (permalink / raw)
To: snelson; +Cc: netdev
From: Shannon Nelson <snelson@pensando.io>
Date: Sun, 13 Sep 2020 12:16:54 -0700
> Clean and rebuild the debugfs info for the queues being swapped.
>
> Fixes: a34e25ab977c ("ionic: change the descriptor ring length without full reset")
> Signed-off-by: Shannon Nelson <snelson@pensando.io>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-14 23:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-13 19:16 [PATCH net-next] ionic: fix up debugfs after queue swap Shannon Nelson
2020-09-14 23:56 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.