diff options
author | Frank Blaschka <frank.blaschka@de.ibm.com> | 2009-03-24 20:57:15 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-25 00:06:19 -0700 |
commit | f61a0d0538ca62547a127fd270d9f3c6e713027f (patch) | |
tree | 7432b86645c7a53071bf023670bc8f99f3ce2b64 /drivers/s390/net/qeth_l2_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_l2_main.c')
-rw-r--r-- | drivers/s390/net/qeth_l2_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c index 07ab8a5c1c4..7632d120884 100644 --- a/drivers/s390/net/qeth_l2_main.c +++ b/drivers/s390/net/qeth_l2_main.c @@ -707,8 +707,11 @@ static int qeth_l2_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) } if ((large_send == QETH_LARGE_SEND_NO) && - (skb->ip_summed == CHECKSUM_PARTIAL)) + (skb->ip_summed == CHECKSUM_PARTIAL)) { qeth_tx_csum(new_skb); + if (card->options.performance_stats) + card->perf_stats.tx_csum++; + } if (card->info.type != QETH_CARD_TYPE_IQD) rc = qeth_do_send_packet(card, queue, new_skb, hdr, |