All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] ibmvnic: Report errors when failing to release sub-crqs
@ 2017-04-14 16:45 Nathan Fontenot
  2017-04-17 17:49 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Nathan Fontenot @ 2017-04-14 16:45 UTC (permalink / raw)
  To: netdev, tlfalcon, jallen

From: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>

Add reporting of errors when releasing sub-crqs fails.

Signed-off-by: Thomas Falcon <tlfalcon@us.ibm.com>
Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
---
 drivers/net/ethernet/ibm/ibmvnic.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c
index 7ba43cf..7bf3507 100644
--- a/drivers/net/ethernet/ibm/ibmvnic.c
+++ b/drivers/net/ethernet/ibm/ibmvnic.c
@@ -1309,6 +1309,12 @@ static void release_sub_crq_queue(struct ibmvnic_adapter *adapter,
 					scrq->crq_num);
 	} while (rc == H_BUSY || H_IS_LONG_BUSY(rc));
 
+	if (rc) {
+		netdev_err(adapter->netdev,
+			   "Failed to release sub-CRQ %16lx, rc = %ld\n",
+			   scrq->crq_num, rc);
+	}
+
 	dma_unmap_single(dev, scrq->msg_token, 4 * PAGE_SIZE,
 			 DMA_BIDIRECTIONAL);
 	free_pages((unsigned long)scrq->msgs, 2);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] ibmvnic: Report errors when failing to release sub-crqs
  2017-04-14 16:45 [PATCH net-next] ibmvnic: Report errors when failing to release sub-crqs Nathan Fontenot
@ 2017-04-17 17:49 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-04-17 17:49 UTC (permalink / raw)
  To: nfont; +Cc: netdev, tlfalcon, jallen


Please do not submit a set of changes to the same driver like this.

Instead, submit a proper patch series which is numbered (so that the
dependencies betweeen changes, if any, are explciit) and also with
a proper "[PATCH 0/N] ..." header posting which describes what the
patch series is doing, how it is doing it, and why it is doing it
that way.

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-17 17:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-14 16:45 [PATCH net-next] ibmvnic: Report errors when failing to release sub-crqs Nathan Fontenot
2017-04-17 17:49 ` 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.