Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jan 2014 17:23:58 -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:  <CALCpEUEuXR7_Q8_zt2TjnsOqt_rYMH5do=UEjssqkj684Xdimg@mail.gmail.com>
In-Reply-To: <CALCpEUH7YHhG3gw0wrObsJux=PWmJu2K6_tzCbCfXQ21ENYHdw@mail.gmail.com>
References:  <CALCpEUH7YHhG3gw0wrObsJux=PWmJu2K6_tzCbCfXQ21ENYHdw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 31, 2014 at 3:45 PM, hiren panchasara
<hiren.panchasara@gmail.com> wrote:
<skip>
> Looking at the code: if_bridge.c has bridge_span() which does
> m_copypacket() to span interface.
>
> 2549                 mc = m_copypacket(m, M_NOWAIT);
> 2550                 if (mc == NULL) {
> 2551                         sc->sc_ifp->if_oerrors++;
> 2552                         continue;
> 2553                 }
> 2554
> 2555                 bridge_enqueue(sc, dst_if, mc);
>
> Now, I am not sure if its failing at m_copypacket() or after that in
> bridge_enqueue(). Not sure how do I look at if_oerrors count.

-bash-4.2$ netstat -I ix3
Name    Mtu Network       Address              Ipkts Ierrs Idrop
Opkts Oerrs  Coll
ix3    1500 <Link#8>      90:e2:ba:30:73:41 9869468123     0 439521
28167217     0     0
ix3       - fe80::92e2:ba fe80::92e2:baff:f        0     -     -
 2     -     -
ix3       - 192.168.0.0   192.168.0.3              0     -     -
 0     -     -

(sorry if this doesn't format/line-wrap correctly).

Basically Oerrs is 0 here. So I _think_ its failing in/after bridge_enqueue()??

cheers,
Hiren



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALCpEUEuXR7_Q8_zt2TjnsOqt_rYMH5do=UEjssqkj684Xdimg>