cxgb3: Fix Tx csum stats
authorVipul Pandya <vipul@chelsio.com>
Wed, 16 Jan 2013 23:29:59 +0000 (23:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jan 2013 19:55:22 +0000 (14:55 -0500)
Signed-off-by: Jay Hernandez <jay@chelsio.com>
Signed-off-by: Vipul Pandya <vipul@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb3/sge.c

index dd901c5061b910a607f54105d99eef7ea1690f49..9096dc09c72f1c1ad16cdfa27a3d283f6c33fea6 100644 (file)
@@ -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]++;