Errors using span interface on if_bridge(4)
hiren panchasara
hiren.panchasara at gmail.com
Sun Feb 2 09:06:02 UTC 2014
On Sat, Feb 1, 2014 at 6:29 PM, hiren panchasara
<hiren.panchasara at gmail.com> wrote:
> On Sat, Feb 1, 2014 at 5:16 PM, hiren panchasara
> <hiren.panchasara at 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
More information about the freebsd-net
mailing list