OSDN Git Service

ibmvnic: Report rx buffer return codes as netdev_dbg
authorJohn Allen <jallen@linux.vnet.ibm.com>
Mon, 7 Aug 2017 20:42:30 +0000 (15:42 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 21:00:44 +0000 (14:00 -0700)
Reporting any return code for a receive buffer as an "rx error" only
produces alarming noise and the only values that have been observed to be
used in this field are not error conditions. Change this to a netdev_dbg
with a more descriptive message.

Signed-off-by: John Allen <jallen@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c

index 5932160..99576ba 100644 (file)
@@ -1579,7 +1579,8 @@ restart_poll:
                                                          rx_comp.correlator);
                /* do error checking */
                if (next->rx_comp.rc) {
-                       netdev_err(netdev, "rx error %x\n", next->rx_comp.rc);
+                       netdev_dbg(netdev, "rx buffer returned with rc %x\n",
+                                  be16_to_cpu(next->rx_comp.rc));
                        /* free the entry */
                        next->rx_comp.first = 0;
                        remove_buff_from_pool(adapter, rx_buff);