bge & vlan stranges
John Polstra
jdp at polstra.com
Fri Aug 1 11:25:19 PDT 2003
In article <20030801175724.F1C6D43F75 at mx1.FreeBSD.org>,
Peter Edwards <pmedwards at eircom.net> wrote:
> John Polstra <jdp at polstra.com> wrote:
>
> [snip]
> >> I assume you mean, that after setting if_hdrlen,
> [snip]
> > I think you also have to set if_data.ifi_hdrlen as I said
> [snip]
>
> My fault: I jumped from one term for the same thing to the other
> without explanation. if_hdrlen is a macro for if_data.ifi_hdrlen.
Understood. I was just trying to make the point that you have to
set that in addition to setting the MTU register in the hardware.
> I'm not a big fan of hiding those kind of details with macros, but I
> assume they're defined by smarter people than me in order that
> they be used :-)
I don't know why the fxp driver doesn't use the macro. Maybe the
macro didn't exist yet when that code was added.
John
--
John Polstra
John D. Polstra & Co., Inc. Seattle, Washington USA
"Two buttocks cannot avoid friction." -- Malawi saying
More information about the freebsd-current
mailing list