Skip to contentSkip to conversation

ionic: code maintenance

PATCH Superseded Shannon Nelson 3 participants 16 messages Feb 2, 2023

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#1 lore raw

PATCH 1/6 ionic: remove unnecessary indirection

In reply to Shannon Nelson

We have the pointer already, don't need to go through the lif struct for it.

---
 drivers/net/ethernet/pensando/ionic/ionic_lif.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/pensando/ionic/ionic_lif.c +2 -2
index 4dd16c487f2b..8499165b1563 100644
@@ -148,7 +148,7 @@ static void ionic_link_status_check(struct ionic_lif *lif)
 			mutex_lock(&lif->queue_lock);
 			err = ionic_start_queues(lif);
 			if (err && err != -EBUSY) {
-				netdev_err(lif->netdev,
+				netdev_err(netdev,
 					   "Failed to start queues: %d\n", err);
 				set_bit(IONIC_LIF_F_BROKEN, lif->state);
 				netif_carrier_off(lif->netdev);
@@ -2463,7 +2463,7 @@ static int ionic_set_vf_rate(struct net_device *netdev, int vf,
 
 		ret = ionic_set_vf_config(ionic, vf, &vfc);
 		if (!ret)
-			lif->ionic->vfs[vf].maxrate = cpu_to_le32(tx_max);
+			ionic->vfs[vf].maxrate = cpu_to_le32(tx_max);
 	}
 
 	up_write(&ionic->vf_op_lock);
Signature · 1 line
2.17.1
#0 lore raw

cover ionic: code maintenance

These are a few fixes for a hardware bug, a couple of sw bugs, and a little code cleanup.

Allen Hubbe (1):
ionic: missed doorbell workaround

Neel Patel (1):
ionic: clean interrupt before enabling queue to avoid credit race

Shannon Nelson (4):
ionic: remove unnecessary indirection
ionic: remove unnecessary void casts
ionic: add check for NULL t/rxqcqs in reconfig
ionic: clear up notifyq alloc commentary

 .../ethernet/pensando/ionic/ionic_bus_pci.c   |  4 +-
 .../net/ethernet/pensando/ionic/ionic_dev.c   |  9 +-
 .../net/ethernet/pensando/ionic/ionic_dev.h   | 12 +++
 .../net/ethernet/pensando/ionic/ionic_lif.c   | 99 ++++++++++++++++---
 .../net/ethernet/pensando/ionic/ionic_lif.h   |  2 +
 .../net/ethernet/pensando/ionic/ionic_main.c  | 33 ++++++-
 .../net/ethernet/pensando/ionic/ionic_phc.c   |  2 +-
 .../ethernet/pensando/ionic/ionic_rx_filter.c |  4 +-
 .../net/ethernet/pensando/ionic/ionic_txrx.c  | 87 +++++++++++++++-
 9 files changed, 228 insertions(+), 24 deletions(-)
Signature · 1 line
2.17.1
#3 lore raw

PATCH 2/6 ionic: remove unnecessary void casts

Minor Code cleanup details.

---
 drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c   | 4 ++--
 drivers/net/ethernet/pensando/ionic/ionic_main.c      | 4 ++--
 drivers/net/ethernet/pensando/ionic/ionic_phc.c       | 2 +-
 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)
drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c +2 -2
index ce436e97324a..0eff78fa0565 100644
@@ -121,7 +121,7 @@ static void ionic_vf_dealloc_locked(struct ionic *ionic)
 
 		if (v->stats_pa) {
 			vfc.stats_pa = 0;
-			(void)ionic_set_vf_config(ionic, i, &vfc);
+			ionic_set_vf_config(ionic, i, &vfc);
 			dma_unmap_single(ionic->dev, v->stats_pa,
 					 sizeof(v->stats), DMA_FROM_DEVICE);
 			v->stats_pa = 0;
@@ -169,7 +169,7 @@ static int ionic_vf_alloc(struct ionic *ionic, int num_vfs)
 
 		/* ignore failures from older FW, we just won't get stats */
 		vfc.stats_pa = cpu_to_le64(v->stats_pa);
-		(void)ionic_set_vf_config(ionic, i, &vfc);
+		ionic_set_vf_config(ionic, i, &vfc);
 	}
 
 out:
drivers/net/ethernet/pensando/ionic/ionic_main.c +2 -2
index a13530ec4dd8..79d4dfa9e07e 100644
@@ -359,7 +359,7 @@ int ionic_adminq_wait(struct ionic_lif *lif, struct ionic_admin_ctx *ctx,
 			break;
 
 		/* force a check of FW status and break out if FW reset */
-		(void)ionic_heartbeat_check(lif->ionic);
+		ionic_heartbeat_check(lif->ionic);
 		if ((test_bit(IONIC_LIF_F_FW_RESET, lif->state) &&
 		     !lif->ionic->idev.fw_status_ready) ||
 		    test_bit(IONIC_LIF_F_FW_STOPPING, lif->state)) {
@@ -647,7 +647,7 @@ int ionic_port_init(struct ionic *ionic)
 	err = ionic_dev_cmd_wait(ionic, DEVCMD_TIMEOUT);
 
 	ionic_dev_cmd_port_state(&ionic->idev, IONIC_PORT_ADMIN_STATE_UP);
-	(void)ionic_dev_cmd_wait(ionic, DEVCMD_TIMEOUT);
+	ionic_dev_cmd_wait(ionic, DEVCMD_TIMEOUT);
 
 	mutex_unlock(&ionic->dev_cmd_lock);
 	if (err) {
drivers/net/ethernet/pensando/ionic/ionic_phc.c +1 -1
index 887046838b3b..eac2f0e3576e 100644
@@ -268,7 +268,7 @@ static u64 ionic_hwstamp_read(struct ionic *ionic,
 	u32 tick_high_before, tick_high, tick_low;
 
 	/* read and discard low part to defeat hw staging of high part */
-	(void)ioread32(&ionic->idev.hwstamp_regs->tick_low);
+	ioread32(&ionic->idev.hwstamp_regs->tick_low);
 
 	tick_high_before = ioread32(&ionic->idev.hwstamp_regs->tick_high);
 
drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c +2 -2
index b7363376dfc8..1ee2f285cb42 100644
@@ -604,14 +604,14 @@ void ionic_rx_filter_sync(struct ionic_lif *lif)
 	 * they can clear room for some new filters
 	 */
 	list_for_each_entry_safe(sync_item, spos, &sync_del_list, list) {
-		(void)ionic_lif_filter_del(lif, &sync_item->f.cmd);
+		ionic_lif_filter_del(lif, &sync_item->f.cmd);
 
 		list_del(&sync_item->list);
 		devm_kfree(dev, sync_item);
 	}
 
 	list_for_each_entry_safe(sync_item, spos, &sync_add_list, list) {
-		(void)ionic_lif_filter_add(lif, &sync_item->f.cmd);
+		ionic_lif_filter_add(lif, &sync_item->f.cmd);
 
 		list_del(&sync_item->list);
 		devm_kfree(dev, sync_item);
Signature · 1 line
2.17.1
#5 lore raw

PATCH 3/6 ionic: add check for NULL t/rxqcqs in reconfig

In reply to Shannon Nelson

Make sure there are qcqs to clean before trying to swap resources or clean their interrupt assignments.

Fixes 101b40a0171f ("ionic: change queue count with no reset")
---
 .../net/ethernet/pensando/ionic/ionic_lif.c   | 27 ++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)
drivers/net/ethernet/pensando/ionic/ionic_lif.c +24 -3
index 8499165b1563..c08d0762212c 100644
@@ -2741,6 +2741,14 @@ int ionic_reconfigure_queues(struct ionic_lif *lif,
 			sg_desc_sz = sizeof(struct ionic_txq_sg_desc);
 
 		for (i = 0; i < qparam->nxqs; i++) {
+			/* If missing, short placeholder qcq needed for swap */
+			if (!lif->txqcqs[i]) {
+				flags = IONIC_QCQ_F_TX_STATS | IONIC_QCQ_F_SG;
+				err = ionic_qcq_alloc(lif, IONIC_QTYPE_TXQ, i, "tx", flags,
+						      4, desc_sz, comp_sz, sg_desc_sz,
+						      lif->kern_pid, &lif->txqcqs[i]);
+			}
+
 			flags = lif->txqcqs[i]->flags & ~IONIC_QCQ_F_INTR;
 			err = ionic_qcq_alloc(lif, IONIC_QTYPE_TXQ, i, "tx", flags,
 					      num_desc, desc_sz, comp_sz, sg_desc_sz,
@@ -2760,6 +2768,14 @@ int ionic_reconfigure_queues(struct ionic_lif *lif,
 			comp_sz *= 2;
 
 		for (i = 0; i < qparam->nxqs; i++) {
+			/* If missing, short placeholder qcq needed for swap */
+			if (!lif->rxqcqs[i]) {
+				flags = IONIC_QCQ_F_RX_STATS | IONIC_QCQ_F_SG;
+				err = ionic_qcq_alloc(lif, IONIC_QTYPE_RXQ, i, "rx", flags,
+						      4, desc_sz, comp_sz, sg_desc_sz,
+						      lif->kern_pid, &lif->rxqcqs[i]);
+			}
+
 			flags = lif->rxqcqs[i]->flags & ~IONIC_QCQ_F_INTR;
 			err = ionic_qcq_alloc(lif, IONIC_QTYPE_RXQ, i, "rx", flags,
 					      num_desc, desc_sz, comp_sz, sg_desc_sz,
@@ -2809,10 +2825,15 @@ int ionic_reconfigure_queues(struct ionic_lif *lif,
 			lif->tx_coalesce_hw = lif->rx_coalesce_hw;
 		}
 
-		/* clear existing interrupt assignments */
+		/* Clear existing interrupt assignments.  We check for NULL here
+		 * because we're checking the whole array for potential qcqs, not
+		 * just those qcqs that have just been set up.
+		 */
 		for (i = 0; i < lif->ionic->ntxqs_per_lif; i++) {
-			ionic_qcq_intr_free(lif, lif->txqcqs[i]);
-			ionic_qcq_intr_free(lif, lif->rxqcqs[i]);
+			if (lif->txqcqs[i])
+				ionic_qcq_intr_free(lif, lif->txqcqs[i]);
+			if (lif->rxqcqs[i])
+				ionic_qcq_intr_free(lif, lif->rxqcqs[i]);
 		}
 
 		/* re-assign the interrupts */
Signature · 1 line
2.17.1
#11 lore raw

PATCH 4/6 ionic: clean interrupt before enabling queue to avoid credit race

In reply to Shannon Nelson

From: Neel Patel <[email protected]>

Clear the interrupt credits before enabling the queue rather than after to be sure that the enabled queue starts at 0 and that we don't wipe away possible credits after enabling the queue.

Fixes 0f3154e6bcb3 ("ionic: Add Tx and Rx handling")
---
 drivers/net/ethernet/pensando/ionic/ionic_lif.c | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
drivers/net/ethernet/pensando/ionic/ionic_lif.c +12 -3
index c08d0762212c..90a3ad4a6ea0 100644
@@ -269,6 +269,7 @@ static int ionic_qcq_enable(struct ionic_qcq *qcq)
 			.oper = IONIC_Q_ENABLE,
 		},
 	};
+	int ret;
 
 	idev = &lif->ionic->idev;
 	dev = lif->ionic->dev;
@@ -276,16 +277,24 @@ static int ionic_qcq_enable(struct ionic_qcq *qcq)
 	dev_dbg(dev, "q_enable.index %d q_enable.qtype %d\n",
 		ctx.cmd.q_control.index, ctx.cmd.q_control.type);
 
+	if (qcq->flags & IONIC_QCQ_F_INTR)
+		ionic_intr_clean(idev->intr_ctrl, qcq->intr.index);
+
+	ret = ionic_adminq_post_wait(lif, &ctx);
+	if (ret)
+		return ret;
+
+	if (qcq->napi.poll)
+		napi_enable(&qcq->napi);
+
 	if (qcq->flags & IONIC_QCQ_F_INTR) {
 		irq_set_affinity_hint(qcq->intr.vector,
 				      &qcq->intr.affinity_mask);
-		napi_enable(&qcq->napi);
-		ionic_intr_clean(idev->intr_ctrl, qcq->intr.index);
 		ionic_intr_mask(idev->intr_ctrl, qcq->intr.index,
 				IONIC_INTR_MASK_CLEAR);
 	}
 
-	return ionic_adminq_post_wait(lif, &ctx);
+	return 0;
 }
 
 static int ionic_qcq_disable(struct ionic_lif *lif, struct ionic_qcq *qcq, int fw_err)
Signature · 1 line
2.17.1
#13 lore raw

PATCH 5/6 ionic: clear up notifyq alloc commentary

In reply to Shannon Nelson

Make sure the q+cq alloc for NotifyQ is clearly documented and don't bother with unnecessary local variables.

---
 drivers/net/ethernet/pensando/ionic/ionic_lif.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
drivers/net/ethernet/pensando/ionic/ionic_lif.c +7 -5
index 90a3ad4a6ea0..486fc0bcc0ad 100644
@@ -573,13 +573,15 @@ static int ionic_qcq_alloc(struct ionic_lif *lif, unsigned int type,
 	}
 
 	if (flags & IONIC_QCQ_F_NOTIFYQ) {
-		int q_size, cq_size;
+		int q_size;
 
-		/* q & cq need to be contiguous in case of notifyq */
+		/* q & cq need to be contiguous in NotifyQ, so alloc it all in q
+		 * and don't alloc qc.  We leave new->qc_size and new->qc_base
+		 * as 0 to be sure we don't try to free it later.
+		 */
 		q_size = ALIGN(num_descs * desc_size, PAGE_SIZE);
-		cq_size = ALIGN(num_descs * cq_desc_size, PAGE_SIZE);
-
-		new->q_size = PAGE_SIZE + q_size + cq_size;
+		new->q_size = PAGE_SIZE + q_size +
+			      ALIGN(num_descs * cq_desc_size, PAGE_SIZE);
 		new->q_base = dma_alloc_coherent(dev, new->q_size,
 						 &new->q_base_pa, GFP_KERNEL);
 		if (!new->q_base) {
Signature · 1 line
2.17.1
#15 lore raw

PATCH 6/6 ionic: missed doorbell workaround

In reply to Shannon Nelson

From: Allen Hubbe <[email protected]>

In one version of the HW there is a remote possibility that it will miss the doorbell ring. This adds a bit of protection to be sure we don't stall a queue from a missed doorbell.

Fixes 0f3154e6bcb3 ("ionic: Add Tx and Rx handling")
---
 .../net/ethernet/pensando/ionic/ionic_dev.c   |  9 +-
 .../net/ethernet/pensando/ionic/ionic_dev.h   | 12 +++
 .../net/ethernet/pensando/ionic/ionic_lif.c   | 41 ++++++++-
 .../net/ethernet/pensando/ionic/ionic_lif.h   |  2 +
 .../net/ethernet/pensando/ionic/ionic_main.c  | 29 +++++++
 .../net/ethernet/pensando/ionic/ionic_txrx.c  | 87 ++++++++++++++++++-
 6 files changed, 176 insertions(+), 4 deletions(-)
drivers/net/ethernet/pensando/ionic/ionic_dev.c +8 -1
index 626b9113e7c4..d911f4fd9af6 100644
@@ -708,9 +708,16 @@ void ionic_q_post(struct ionic_queue *q, bool ring_doorbell, ionic_desc_cb cb,
 		q->lif->index, q->name, q->hw_type, q->hw_index,
 		q->head_idx, ring_doorbell);
 
-	if (ring_doorbell)
+	if (ring_doorbell) {
 		ionic_dbell_ring(lif->kern_dbpage, q->hw_type,
 				 q->dbval | q->head_idx);
+
+		q->dbell_jiffies = jiffies;
+
+		if (q_to_qcq(q)->napi_qcq)
+			mod_timer(&q_to_qcq(q)->napi_qcq->napi_deadline,
+				  jiffies + IONIC_NAPI_DEADLINE);
+	}
 }
 
 static bool ionic_q_is_posted(struct ionic_queue *q, unsigned int pos)
drivers/net/ethernet/pensando/ionic/ionic_dev.h +12 -0
index 2a1d7b9c07e7..bce3ca38669b 100644
@@ -25,6 +25,12 @@
 #define IONIC_DEV_INFO_REG_COUNT	32
 #define IONIC_DEV_CMD_REG_COUNT		32
 
+#define IONIC_NAPI_DEADLINE		(HZ / 200)	/* 5ms */
+#define IONIC_ADMIN_DOORBELL_DEADLINE	(HZ / 2)	/* 500ms */
+#define IONIC_TX_DOORBELL_DEADLINE	(HZ / 100)	/* 10ms */
+#define IONIC_RX_MIN_DOORBELL_DEADLINE	(HZ / 100)	/* 10ms */
+#define IONIC_RX_MAX_DOORBELL_DEADLINE	(HZ * 5)	/* 5s */
+
 struct ionic_dev_bar {
 	void __iomem *vaddr;
 	phys_addr_t bus_addr;
@@ -216,6 +222,8 @@ struct ionic_queue {
 	struct ionic_lif *lif;
 	struct ionic_desc_info *info;
 	u64 dbval;
+	unsigned long dbell_deadline;
+	unsigned long dbell_jiffies;
 	u16 head_idx;
 	u16 tail_idx;
 	unsigned int index;
@@ -361,4 +369,8 @@ void ionic_q_service(struct ionic_queue *q, struct ionic_cq_info *cq_info,
 int ionic_heartbeat_check(struct ionic *ionic);
 bool ionic_is_fw_running(struct ionic_dev *idev);
 
+bool ionic_adminq_poke_doorbell(struct ionic_queue *q);
+bool ionic_txq_poke_doorbell(struct ionic_queue *q);
+bool ionic_rxq_poke_doorbell(struct ionic_queue *q);
+
 #endif /* _IONIC_DEV_H_ */
drivers/net/ethernet/pensando/ionic/ionic_lif.c +40 -1

103 lines not on this page · raw message

drivers/net/ethernet/pensando/ionic/ionic_lif.h +2 -0
index a53984bf3544..734519895614 100644
@@ -74,8 +74,10 @@ struct ionic_qcq {
 	struct ionic_queue q;
 	struct ionic_cq cq;
 	struct ionic_intr_info intr;
+	struct timer_list napi_deadline;
 	struct napi_struct napi;
 	unsigned int flags;
+	struct ionic_qcq *napi_qcq;
 	struct dentry *dentry;
 };
 
drivers/net/ethernet/pensando/ionic/ionic_main.c +29 -0
index 79d4dfa9e07e..1dc79cecc5cc 100644
@@ -289,6 +289,35 @@ static void ionic_adminq_cb(struct ionic_queue *q,
 	complete_all(&ctx->work);
 }
 
+bool ionic_adminq_poke_doorbell(struct ionic_queue *q)
+{
+	struct ionic_lif *lif = q->lif;
+	unsigned long now, then, dif;
+	unsigned long irqflags;
+
+	spin_lock_irqsave(&lif->adminq_lock, irqflags);
+
+	if (q->tail_idx == q->head_idx) {
+		spin_unlock_irqrestore(&lif->adminq_lock, irqflags);
+		return false;
+	}
+
+	now = READ_ONCE(jiffies);
+	then = q->dbell_jiffies;
+	dif = now - then;
+
+	if (dif > q->dbell_deadline) {
+		ionic_dbell_ring(q->lif->kern_dbpage, q->hw_type,
+				 q->dbval | q->head_idx);
+
+		q->dbell_jiffies = now;
+	}
+
+	spin_unlock_irqrestore(&lif->adminq_lock, irqflags);
+
+	return true;
+}
+
 int ionic_adminq_post(struct ionic_lif *lif, struct ionic_admin_ctx *ctx)
 {
 	struct ionic_desc_info *desc_info;
drivers/net/ethernet/pensando/ionic/ionic_txrx.c +85 -2

139 lines not on this page · raw message

Signature · 1 line
2.17.1
Reviewed-by on v1 1/6
#2 lore raw

Re: [PATCH net 1/6] ionic: remove unnecessary indirection

In reply to Shannon Nelson
Quoted 8 lines · Shannon Nelson

We have the pointer already, don't need to go through the lif struct for it.

---
 drivers/net/ethernet/pensando/ionic/ionic_lif.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

It is not net material.

Thanks,

Reviewed-by on v1 2/6
#4 lore raw

Re: [PATCH net 2/6] ionic: remove unnecessary void casts

In reply to Shannon Nelson
Quoted 10 lines · Shannon Nelson

Minor Code cleanup details.

---
 drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c   | 4 ++--
 drivers/net/ethernet/pensando/ionic/ionic_main.c      | 4 ++--
 drivers/net/ethernet/pensando/ionic/ionic_phc.c       | 2 +-
 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)

It is not net material.

Thanks,

#6 lore raw

Re: [PATCH net 3/6] ionic: add check for NULL t/rxqcqs in reconfig

In reply to Shannon Nelson
Quoted 14 lines · Shannon Nelson

Make sure there are qcqs to clean before trying to swap resources or clean their interrupt assignments.

Fixes 101b40a0171f ("ionic: change queue count with no reset")
---
 .../net/ethernet/pensando/ionic/ionic_lif.c   | 27 ++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)
drivers/net/ethernet/pensando/ionic/ionic_lif.c +0 -0
index 8499165b1563..c08d0762212c 100644

drivers/net/ethernet/pensando/ionic/ionic_lif.c int ionic_reconfigure_queues(struct ionic_lif *lif, · line 2749

Quoted 9 lines
drivers/net/ethernet/pensando/ionic/ionic_lif.c +6 -0
@@ -2741,6 +2741,14 @@ int ionic_reconfigure_queues(struct ionic_lif *lif,
 			sg_desc_sz = sizeof(struct ionic_txq_sg_desc);
 
 		for (i = 0; i < qparam->nxqs; i++) {
+			/* If missing, short placeholder qcq needed for swap */
+			if (!lif->txqcqs[i]) {
+				flags = IONIC_QCQ_F_TX_STATS | IONIC_QCQ_F_SG;
+				err = ionic_qcq_alloc(lif, IONIC_QTYPE_TXQ, i, "tx", flags,
+						      4, desc_sz, comp_sz, sg_desc_sz,
+						      lif->kern_pid, &lif->txqcqs[i]);

You are not checking return value, so you don't really need to store returned value in err variable.

Thanks

Reviewed-by on v1 4/6
#12 lore raw

Re: [PATCH net 4/6] ionic: clean interrupt before enabling queue to avoid credit race

In reply to Shannon Nelson
Quoted 7 lines · Shannon Nelson

From: Neel Patel <[email protected]>

Clear the interrupt credits before enabling the queue rather than after to be sure that the enabled queue starts at 0 and that we don't wipe away possible credits after enabling the queue.

Quoted 7 lines
Fixes 0f3154e6bcb3 ("ionic: Add Tx and Rx handling")
---
 drivers/net/ethernet/pensando/ionic/ionic_lif.c | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

Thanks,

Reviewed-by on v1 5/6
#14 lore raw

Re: [PATCH net 5/6] ionic: clear up notifyq alloc commentary

In reply to Shannon Nelson
Quoted 8 lines · Shannon Nelson

Make sure the q+cq alloc for NotifyQ is clearly documented and don't bother with unnecessary local variables.

---
 drivers/net/ethernet/pensando/ionic/ionic_lif.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

Thanks,

maintainer
#7 lore raw

Re: [PATCH net 3/6] ionic: add check for NULL t/rxqcqs in reconfig

In reply to Shannon Nelson
Quoted 2 lines · On Wed, 1 Feb 2023 17:29:59 -0800 Shannon Nelson wrote:

Make sure there are qcqs to clean before trying to swap resources or clean their interrupt assignments.

... Otherwise $what-may-happen

Bug fixes should come with an explanation of what the user-visible misbehavior is

#8 lore raw

Re: [PATCH net 3/6] ionic: add check for NULL t/rxqcqs in reconfig

Quoted 8 lines · Jakub Kicinski
Quoted 2 lines · On Wed, 1 Feb 2023 17:29:59 -0800 Shannon Nelson wrote:

Make sure there are qcqs to clean before trying to swap resources or clean their interrupt assignments.

... Otherwise $what-may-happen

Bug fixes should come with an explanation of what the user-visible misbehavior is

I can add some text here and post a v2.

Would you prefer I repost some of these as net-next rather than net as Leon was suggesting, or keep this patchset together for v2? I have a couple other larger net-next patches getting ready as well...

sln

maintainer
#9 lore raw

Re: [PATCH net 3/6] ionic: add check for NULL t/rxqcqs in reconfig

Quoted 7 lines · On Thu, 2 Feb 2023 12:06:52 -0800 Shannon Nelson wrote:
Quoted 6 lines · Jakub Kicinski
Quoted 2 lines · On Wed, 1 Feb 2023 17:29:59 -0800 Shannon Nelson wrote:

Make sure there are qcqs to clean before trying to swap resources or clean their interrupt assignments.

... Otherwise $what-may-happen

Quoted 8 lines
Quoted 2 lines

Bug fixes should come with an explanation of what the user-visible misbehavior is

I can add some text here and post a v2.

Would you prefer I repost some of these as net-next rather than net as Leon was suggesting, or keep this patchset together for v2? I have a couple other larger net-next patches getting ready as well...

I'm not sure what the user impact of the fixes is, but at a glance splitting this into separate series makes most sense. We merge net into net-next every Thu, so if there is a dependency the wait should not be too long.

#10 lore raw

Re: [PATCH net 3/6] ionic: add check for NULL t/rxqcqs in reconfig

Quoted 13 lines · Jakub Kicinski
Quoted 12 lines · On Thu, 2 Feb 2023 12:06:52 -0800 Shannon Nelson wrote:
Quoted 8 lines · Jakub Kicinski
Quoted 2 lines · On Wed, 1 Feb 2023 17:29:59 -0800 Shannon Nelson wrote:

Make sure there are qcqs to clean before trying to swap resources or clean their interrupt assignments.

... Otherwise $what-may-happen

Bug fixes should come with an explanation of what the user-visible misbehavior is

I can add some text here and post a v2.

Quoted 8 lines
Quoted 3 lines

Would you prefer I repost some of these as net-next rather than net as Leon was suggesting, or keep this patchset together for v2? I have a couple other larger net-next patches getting ready as well...

I'm not sure what the user impact of the fixes is, but at a glance splitting this into separate series makes most sense. We merge net into net-next every Thu, so if there is a dependency the wait should not be too long.

Thanks. I'll resubmit 3 of these for net shortly, and pull the others into the net-next list and send after I rebase tonight or tomorrow.

sln