wil6210: Debug print GRO Rx result
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Mon, 16 Jun 2014 16:37:14 +0000 (19:37 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 19 Jun 2014 19:49:25 +0000 (15:49 -0400)
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/wil6210/txrx.c

index 0318cd2650ce53eb49c6bf09588b3e8f7e374c92..a89a5c68e00654e8da4eb6b4139ff91b8ded26cc 100644 (file)
@@ -525,6 +525,17 @@ void wil_netif_rx_any(struct sk_buff *skb, struct net_device *ndev)
                ndev->stats.rx_bytes += len;
                stats->rx_bytes += len;
        }
+       {
+               static const char * const gro_res_str[] = {
+                       [GRO_MERGED]            = "GRO_MERGED",
+                       [GRO_MERGED_FREE]       = "GRO_MERGED_FREE",
+                       [GRO_HELD]              = "GRO_HELD",
+                       [GRO_NORMAL]            = "GRO_NORMAL",
+                       [GRO_DROP]              = "GRO_DROP",
+               };
+               wil_dbg_txrx(wil, "Rx complete %d bytes => %s,\n",
+                            len, gro_res_str[rc]);
+       }
 }
 
 /**