>>>>> "Wang" == Wang Chen <[EMAIL PROTECTED]> writes:
Hi, Wang> + len = skb->len; Wang> netif_rx(skb); dev-> stats.rx_packets++; Wang> - dev->stats.rx_bytes += skb->len; Wang> + dev->stats.rx_bytes += len; Why not simply update the stats before calling netif_rx as the return value isn't checked anyway? -- Bye, Peter Korsgaard -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html