Hugh Brown
|
Re: devnp-e1000 does not support altq
|
Hugh Brown
03/24/2016 10:46 AM
post116021
|
Re: devnp-e1000 does not support altq
You must be receiving VLAN messages, as in all the testing we have done
here without VLAN, we don¹t see these messages.
On 2016-03-24, 10:13 AM, "Serg Krivolapov" <community-noreply@qnx.com>
wrote:
>During testing the driver devnp-e1000 while copying large files a message
>appears in slog:
>wm0: discarding oversize frame (len=1518)
>
>By viewing the source code of function ether_input(struct ifnet *ifp,
>struct mbuf *m) (file sys/net/if_ethersubr.c) and found the following
>line:
>if(m->m_pkthdr.len > ETHER_MAX_FRAME(ifp, etype, m->m_flags & M_HASFCS))
>{
> printf("%s: discarding oversize frame (len=%d)\n", ifp->if_xname,
>m->m_pkthdr.len);
> m_freem(m);
> return;
>}
>
>Probably not seting M_HASFCS.
>
>In the driver source code function i82544_receive(...) (file
>e1000/event.c) I have not found setting the bit.
>
>I think that in the function (and i82544_adv_receive(...)) should be the
>next line:
>m->m_flags |= M_HASFCS; /* hardware appends FCS */
>at some point before the call (*ifp->if_input)(ifp, rm)
>
>This line I have seen in other drivers.
>In this case, everything should work fine even with the default MTU=1500.
>
>Thanks.
>
>
>
>
>_______________________________________________
>
>Networking Drivers
>http://community.qnx.com/sf/go/post116020
>To cancel your subscription to this discussion, please e-mail
>drivers-networking-unsubscribe@community.qnx.com
|
|
|