From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by ozlabs.org (Postfix) with ESMTP id C2E20DDE19 for ; Mon, 17 Sep 2007 05:05:54 +1000 (EST) Received: by wa-out-1112.google.com with SMTP id m28so1833685wag for ; Sun, 16 Sep 2007 12:05:53 -0700 (PDT) Message-ID: <9e4733910709161205k15106ba1sd2f0597f2601f222@mail.gmail.com> Date: Sun, 16 Sep 2007 15:05:53 -0400 From: "Jon Smirl" To: "Domen Puncer" Subject: Re: Domen's MPC5200 FEC cleanup patch. In-Reply-To: <9e4733910709150855k6ba6dc8fye9762817566208b4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <9e4733910709142038y1bd88cd5s7c9bb21a668db9f6@mail.gmail.com> <9e4733910709142128l7a264a05ve68f59aee92b40e3@mail.gmail.com> <20070915122218.GB19857@nd47.coderock.org> <9e4733910709150855k6ba6dc8fye9762817566208b4@mail.gmail.com> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This adjustment to the error counting is in the Efika patches and not in yours, should it be in yours too? --- a/drivers/net/fec_mpc52xx/fec.c 2007-05-30 16:04:50.000000000 +0200 +++ b/drivers/net/fec_mpc52xx/fec.c 2007-05-30 16:09:02.000000000 +0200 @@ -411,7 +411,9 @@ stats->rx_bytes = in_be32(&fec->rmon_r_octets); stats->rx_packets = in_be32(&fec->rmon_r_packets); - stats->rx_errors = stats->rx_packets - in_be32(&fec->ieee_r_frame_ok); + stats->rx_errors = stats->rx_packets - ( + in_be32(&fec->ieee_r_frame_ok) + + in_be32(&fec->rmon_r_mc_pkt)); stats->tx_bytes = in_be32(&fec->rmon_t_octets); stats->tx_packets = in_be32(&fec->rmon_t_packets); stats->tx_errors = stats->tx_packets - ( -- Jon Smirl jonsmirl@gmail.com