Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Feb 2014 01:05:59 -0800
From:      hiren panchasara <hiren.panchasara@gmail.com>
To:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: Errors using span interface on if_bridge(4)
Message-ID:  <CALCpEUE3PQp%2Bqer%2Bag7Gi2z-0mMumtq-DJBF3SbLqD62UxmKFg@mail.gmail.com>
In-Reply-To: <CALCpEUEDCPWog3sQzhTgL2NFyF1OB7YECxPvEr%2BLxNvhOOhQtA@mail.gmail.com>
References:  <CALCpEUH7YHhG3gw0wrObsJux=PWmJu2K6_tzCbCfXQ21ENYHdw@mail.gmail.com> <CALCpEUEuXR7_Q8_zt2TjnsOqt_rYMH5do=UEjssqkj684Xdimg@mail.gmail.com> <CALCpEUFLwZ6vismFKgyo1Q_P4iwzxS%2BjBozTV%2BO1kvap6U8brQ@mail.gmail.com> <CALCpEUEDCPWog3sQzhTgL2NFyF1OB7YECxPvEr%2BLxNvhOOhQtA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 1, 2014 at 6:29 PM, hiren panchasara
<hiren.panchasara@gmail.com> wrote:
> On Sat, Feb 1, 2014 at 5:16 PM, hiren panchasara
> <hiren.panchasara@gmail.com> wrote:
<skip>

> Trying to find how to narrow down what is causing this checksum errors.

>From ixgbe.c: ixgbe_rx_checksum()

4643         if (status & IXGBE_RXD_STAT_IPCS) {
4644                 if (!(errors & IXGBE_RXD_ERR_IPE)) {
                                 xxx
4645                         /* IP Checksum Good */
4646                         mp->m_pkthdr.csum_flags = CSUM_IP_CHECKED;
4647                         mp->m_pkthdr.csum_flags |= CSUM_IP_VALID;
4648
4649                 } else {
                                 yyy
4650                         mp->m_pkthdr.csum_flags = 0;
4651                 }
4652
4653         }


If I put a device_printf() at xxx, everything slows down and I see
very less packets making through with near-zero checksum errors.
A device_printf() at yyy (and nothing at xxx) never gets called. I was
expecting it to be called as I thought checksum errors would cause
that code-path to be traversed.

cheers,
Hiren



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALCpEUE3PQp%2Bqer%2Bag7Gi2z-0mMumtq-DJBF3SbLqD62UxmKFg>