aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic_main.c
diff options
context:
space:
mode:
authorAmit Kumar Salecha <amit.salecha@qlogic.com>2010-04-21 22:51:35 -0400
committerDavid S. Miller <davem@davemloft.net>2010-04-22 18:28:26 -0400
commit8ae6df978b986a5ce099e7e7118f127563d2cbbe (patch)
tree3caffdbc168440397c2d20a0627c0254188b6bbf /drivers/net/qlcnic/qlcnic_main.c
parente802af9cabb011f09b9c19a82faef3dd315f27eb (diff)
qlcnic: additional driver statistics
Added additional driver statistics to track errors in rcv/tx path. Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_main.c')
-rw-r--r--drivers/net/qlcnic/qlcnic_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/qlcnic/qlcnic_main.c b/drivers/net/qlcnic/qlcnic_main.c
index e4fd5dcdfb4c..5845dc0616b1 100644
--- a/drivers/net/qlcnic/qlcnic_main.c
+++ b/drivers/net/qlcnic/qlcnic_main.c
@@ -1589,8 +1589,10 @@ qlcnic_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
1589 1589
1590 pdev = adapter->pdev; 1590 pdev = adapter->pdev;
1591 1591
1592 if (qlcnic_map_tx_skb(pdev, skb, pbuf)) 1592 if (qlcnic_map_tx_skb(pdev, skb, pbuf)) {
1593 adapter->stats.tx_dma_map_error++;
1593 goto drop_packet; 1594 goto drop_packet;
1595 }
1594 1596
1595 pbuf->skb = skb; 1597 pbuf->skb = skb;
1596 pbuf->frag_count = frag_count; 1598 pbuf->frag_count = frag_count;