ibmvnic: Report errors when failing to release sub-crqs
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Wed, 19 Apr 2017 17:44:29 +0000 (13:44 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Apr 2017 17:33:52 +0000 (13:33 -0400)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c

index 7ba43cfadf3a86e4694f78632d72c40df3b466f6..7bf35071a9a39a5410cc2b3aa728761c0649d7c2 100644 (file)
@@ -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);