From: Vipul Pandya Date: Wed, 16 Jan 2013 23:29:59 +0000 (+0000) Subject: cxgb3: Fix Tx csum stats X-Git-Tag: v3.9-rc1~139^2~347 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc6c47b50c67db420d1fe969351b5d196c0c43c4;p=platform%2Fupstream%2Fkernel-adaptation-pc.git cxgb3: Fix Tx csum stats Signed-off-by: Jay Hernandez Signed-off-by: Vipul Pandya Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/chelsio/cxgb3/sge.c b/drivers/net/ethernet/chelsio/cxgb3/sge.c index dd901c5..9096dc0 100644 --- a/drivers/net/ethernet/chelsio/cxgb3/sge.c +++ b/drivers/net/ethernet/chelsio/cxgb3/sge.c @@ -1278,7 +1278,7 @@ netdev_tx_t t3_eth_xmit(struct sk_buff *skb, struct net_device *dev) } /* update port statistics */ - if (skb->ip_summed == CHECKSUM_COMPLETE) + if (skb->ip_summed == CHECKSUM_PARTIAL) qs->port_stats[SGE_PSTAT_TX_CSUM]++; if (skb_shinfo(skb)->gso_size) qs->port_stats[SGE_PSTAT_TSO]++;