* [RFC] syncppp broken - how to fix?
@ 2004-03-03 19:19 Paul Fulghum
[not found] ` <1078341865.2118.22.camel@deimos.microgate.com>
0 siblings, 1 reply; 2+ messages in thread
From: Paul Fulghum @ 2004-03-03 19:19 UTC (permalink / raw)
To: linux-kernel; +Cc: shemninger
In 2.6.0-test8 a patch from shemninger@osdl.org was
applied to drivers/net/wan/syncppp.c which breaks
syncppp when used with some wan drivers:
drivers/net/wan/cosa.c
drivers/net/wan/hostess_sv11.c
drivers/net/wan/wanpipe_multppp.c
drivers/char/synclink.c
drivers/char/synclinkmp.c
drivers/char/pcmcia/synclink_cs.c
The problem is the addition of a BUG_ON()
line in sppp_attach() which imposes the new
requirement that the net device priv member
be initialized *before* calling sppp_attach().
The priv member is not actually used in
sppp_attach(). The BUG_ON line does a sanity
check which touches priv member, which is not
set prior to calling sppp_attach() by the drivers
listed above.
So should all of the WAN drivers be changed to
accomodate this new requirement (which does not
seem to serve a purpose) ?
Or should the BUG_ON line be removed from
syncppp.c to return it to the original convention?
It seems odd to add a sanity check for a member
that is not used and is not set. It also seems
counter productive to modify multiple drivers
to set this value to accomodate the new sanity check
since that value is still not used in sppp_attach.
--
Paul Fulghum
paulkf@microgate.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC] syncppp broken - how to fix?
[not found] ` <20040303114906.1a4027da@dell_ss3.pdx.osdl.net>
@ 2004-03-03 20:16 ` Paul Fulghum
0 siblings, 0 replies; 2+ messages in thread
From: Paul Fulghum @ 2004-03-03 20:16 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: linux-kernel
On Wed, 2004-03-03 at 13:49, Stephen Hemminger wrote:
> That assert can go, it is a left over from the conversion
> of the wan devices to use alloc_netdev.
OK
> The whole ppp structure layering
> is a mess; with a bad case of assumed encapsulation.
Agreed, it is *really* ugly.
I've decided to alter the synclink drivers to
work with and without the new assertion. That
way, our customers can download updated
drivers from our web site which will work
with any 2.6 kernel.
Removing the assertion fixes things for the
other drivers starting with kernel 2.6.5
--
Paul Fulghum
paulkf@microgate.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-03 20:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-03 19:19 [RFC] syncppp broken - how to fix? Paul Fulghum
[not found] ` <1078341865.2118.22.camel@deimos.microgate.com>
[not found] ` <20040303114906.1a4027da@dell_ss3.pdx.osdl.net>
2004-03-03 20:16 ` Paul Fulghum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox