diff options
author | Frank Blaschka <frank.blaschka@de.ibm.com> | 2009-03-24 16:57:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-25 03:06:19 -0400 |
commit | f61a0d0538ca62547a127fd270d9f3c6e713027f (patch) | |
tree | 7432b86645c7a53071bf023670bc8f99f3ce2b64 /drivers/s390/net/qeth_l3_main.c | |
parent | 7f6d95e7bd82b38e669a43a2d2d410d0b5318684 (diff) |
qeth: add statistics for tx csum
Add statistics counter for software tx checksumming.
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_l3_main.c')
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index 0dcc036d34aa..fea50bdc8f41 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c | |||
@@ -2711,8 +2711,11 @@ static int qeth_l3_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
2711 | } | 2711 | } |
2712 | 2712 | ||
2713 | if ((large_send == QETH_LARGE_SEND_NO) && | 2713 | if ((large_send == QETH_LARGE_SEND_NO) && |
2714 | (new_skb->ip_summed == CHECKSUM_PARTIAL)) | 2714 | (new_skb->ip_summed == CHECKSUM_PARTIAL)) { |
2715 | qeth_tx_csum(new_skb); | 2715 | qeth_tx_csum(new_skb); |
2716 | if (card->options.performance_stats) | ||
2717 | card->perf_stats.tx_csum++; | ||
2718 | } | ||
2716 | 2719 | ||
2717 | if (card->info.type != QETH_CARD_TYPE_IQD) | 2720 | if (card->info.type != QETH_CARD_TYPE_IQD) |
2718 | rc = qeth_do_send_packet(card, queue, new_skb, hdr, | 2721 | rc = qeth_do_send_packet(card, queue, new_skb, hdr, |