mailing.openbsd.tech
  Home FAQ Contact Sign in
mailing.openbsd.tech only
 
Advanced search
February 2008
motuwethfrsasuw
    123 5
45678910 6
11121314151617 7
18192021222324 8
2526272829   9
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
mailing.openbsd.tech Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  You've received A Hallmark E-Card!         


Author: hallmark.com
Date: Mar 2, 2008 23:33

Show full article (1.87Kb)
no comments
  Re: WOL for if_vr? (was: Re: freebsd driving porting questions)         


Author: Stefan Sperling
Date: Mar 2, 2008 06:25

On Sun, Mar 02, 2008 at 12:23:57AM +0000, Stuart Henderson wrote:
> On 2008/03/01 14:36, Stefan Sperling wrote:
>> Would you be interested in trying to port the wake on lan support
>> over as well, instead of removing it from the driver?
>
> Personally, I'm mostly trying to fix what's quite a nasty problem with
> the existing driver, i.e. a nic where tx stops working after certain
> media conditions.
>
> Maybe it's just me (particularly now faced with a 3k+ line diff with a
> bunch of changes in that are unrelated to the problems that it's been
> reported to fix),

Yeah, wading through diffs that large can be a real pain :(

By the way, I would also suggest basing your work on the OpenBSD driver,
not the other way round, if this is feasible. Doing so should certainly
narrow down the diff you are creating for the OpenBSD driver.
> but I think it's quite important to do things step by
> step, the diffs to implement different things should be separated as
> much as possible so it's easier to follow what changes have been made.
Show full article (9.72Kb)
no comments
  Re: typo in usr/sbin/env.c         


Author: Tobias Ulmer
Date: Mar 2, 2008 02:51

On Sat, Mar 01, 2008 at 03:44:28PM -0700, Philip Guenther wrote:
>> [...]
>
> FTR, C90 didn't permit a trailing comma, while C99 does. Many
> compilers accepted the extra comma as an extension before C99 came
> out. (The last compiler I had to use that didn't support it was the
> AIX 4.x compiler. Blech!)

Exactly.
I'm playing with TenDRA and compiling the OpenBSD userland makes a good
testcase.
>
> Philip Guenther
no comments
  Re: WOL for if_vr? (was: Re: freebsd driving porting questions)         


Author: Stuart Henderson
Date: Mar 1, 2008 16:29

On 2008/03/01 14:36, Stefan Sperling wrote:
> Would you be interested in trying to port the wake on lan support
> over as well, instead of removing it from the driver?

Personally, I'm mostly trying to fix what's quite a nasty problem with
the existing driver, i.e. a nic where tx stops working after certain
media conditions.

Maybe it's just me (particularly now faced with a 3k+ line diff with a
bunch of changes in that are unrelated to the problems that it's been
reported to fix), but I think it's quite important to do things step by
step, the diffs to implement different things should be separated as
much as possible so it's easier to follow what changes have been made.
> It would be great to see a small but serious step towards WOL support
> in OpenBSD. I would also like to help with coding and testing, time
> permitting.

Surely the infrastructure would need to come first otherwise we'd
just be adding code to drivers that can't be tested?
no comments
  Re: typo in usr/sbin/env.c         


Author: Philip Guenther
Date: Mar 1, 2008 14:50

On Sat, Mar 1, 2008 at 3:25 PM, Dasn lavabit.com> wrote:
> On 01/03/08 00:01 +0100, Tobias Ulmer wrote:
>> FINI, /* All done, skipping trailing whitespace */
>>- ERROR, /* Error */
>>+ ERROR /* Error */
>> };
>
> Does it matter? I think the comma here is convenient for extending the
> enum in future.

FTR, C90 didn't permit a trailing comma, while C99 does. Many
compilers accepted the extra comma as an extension before C99 came
out. (The last compiler I had to use that didn't support it was the
AIX 4.x compiler. Blech!)

Philip Guenther
no comments
  Re: typo in usr/sbin/env.c         


Author: Dasn
Date: Mar 1, 2008 14:34

On 01/03/08 00:01 +0100, Tobias Ulmer wrote:
> FINI, /* All done, skipping trailing whitespace */
>- ERROR, /* Error */
>+ ERROR /* Error */
> };
>

Does it matter? I think the comma here is convenient for extending the
enum in future.

--
Dasn
no comments
  my sister having sex with her boy friend         


Author: yenc
Date: Mar 1, 2008 11:18

PORNOLATION RELEASE
no comments
  WOL for if_vr? (was: Re: freebsd driving porting questions)         


Author: Stefan Sperling
Date: Mar 1, 2008 05:41

Hey Stuart,

On Sat, Mar 01, 2008 at 12:06:00PM +0000, Stuart Henderson wrote:
> I'm attempting to port yongari's newer vr(4) driver from FreeBSD.

Yongari's version of that driver also has wake on lan support.
> So far I have mostly just reverted the style changes and re-ordered
> things so the diff has a better signal:noise ratio and just starting
> to change things to try and get it to build

Would you be interested in trying to port the wake on lan support
over as well, instead of removing it from the driver?

I have an old diff that adds the necessary ioctls and teaches
ifconfig about them:
http://www.stsp.name/openbsd/OpenBSD-current-wol-2007-10-14.diff

The diff also has some driver changes (if_xl, if_vr, if_sis).

It's based on diffs I made for FreeBSD.

The diff is untested, but did compile back in October last year when
I wrote this on a train (literally). I never got around to see whether
it actually works.

The ifconfig changes should be straightforward.
Show full article (2.17Kb)
no comments
  Re: freebsd driving porting questions         


Author: Mark Kettenis
Date: Mar 1, 2008 05:07

> Date: Sat, 1 Mar 2008 12:06:00 +0000
> From: Stuart Henderson spacehopper.org>
>
> I'm attempting to port yongari's newer vr(4) driver from FreeBSD.
> So far I have mostly just reverted the style changes and re-ordered
> things so the diff has a better signal:noise ratio and just starting
> to change things to try and get it to build, I came across a few
> things so far which I wondered about:
>
> - what should I do with LOCK macros, just remove them?

If the section they appear in is protected by splnet(), probably yes.

Otherwise, you probably need to sprinkle in some splnet()/splx() pairs
yourself.
> - there's one use of taskqueue which we don't have, do we have
> anything similar, any suggestions how to handle this?

We have workq, but it's probably better to avoid this if you can?
What are the taskqueue's used for?
> the code is here, http://spacehopper.org/vr/, it's not going to
> build anywhere just yet, and you can laugh at me if you like (-:
Show full article (1.19Kb)
no comments
  Re: freebsd driving porting questions         


Author: Claudio Jeker
Date: Mar 1, 2008 04:56

On Sat, Mar 01, 2008 at 12:06:00PM +0000, Stuart Henderson wrote:
> I'm attempting to port yongari's newer vr(4) driver from FreeBSD.
> So far I have mostly just reverted the style changes and re-ordered
> things so the diff has a better signal:noise ratio and just starting
> to change things to try and get it to build, I came across a few
> things so far which I wondered about:
>
> - what should I do with LOCK macros, just remove them?
>

Most probably you need splnet()/splx() calls as replacement (or probably a
splassert() to ensure correct spl levels). If you feel adventuresomely you
could use rwlocks and make dlg@ happy :)
> - there's one use of taskqueue which we don't have, do we have
> anything similar, any suggestions how to handle this?
>

Sounds like something similar to workq but not sure if I'm right.
Our workq may have different scheduling properties.
After glancing at the code -- the taskqueue is only used for mii link
checking -- I guess you can use a simple timeout callback for that.
Show full article (1.18Kb)
no comments
1 2 3 4 5 6 7 8