OSDN Git Service

ionic: rebuild debugfs on qcq swap
authorShannon Nelson <snelson@pensando.io>
Wed, 10 Mar 2021 19:26:30 +0000 (11:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Mar 2021 23:34:28 +0000 (15:34 -0800)
With a reconfigure of each queue is needed a rebuild of
the matching debugfs information.

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.c

index 6f8a5da..48d3c76 100644 (file)
@@ -2204,6 +2204,9 @@ static void ionic_swap_queues(struct ionic_qcq *a, struct ionic_qcq *b)
        swap(a->cq_base,      b->cq_base);
        swap(a->cq_base_pa,   b->cq_base_pa);
        swap(a->cq_size,      b->cq_size);
+
+       ionic_debugfs_del_qcq(a);
+       ionic_debugfs_add_qcq(a->q.lif, a);
 }
 
 int ionic_reconfigure_queues(struct ionic_lif *lif,