From: Andi Kleen <ak@muc.de>
To: "Leonid Grossman" <leonid.grossman@neterion.com>
Cc: <netdev@oss.sgi.com>, <leonid@neterion.com>, <jgarzik@pobox.com>,
"'Andi Kleen'" <ak@muc.de>
Subject: Re: [ANNOUNCE] Experimental Driver for Neterion/S2io 10GbE Adapters
Date: Sat, 19 Mar 2005 21:15:02 +0100 [thread overview]
Message-ID: <m17jk35r5l.fsf@muc.de> (raw)
In-Reply-To: <200503151555.j2FFtqDD019050@guinness.s2io.com> (Leonid Grossman's message of "Tue, 15 Mar 2005 07:55:51 -0800")
"Leonid Grossman" <leonid.grossman@neterion.com> writes:
>>
>> > Leonid Grossman writes:
>> It's not the best maintenance option (both for us and arguably, even for a
>> non-primary-author kernel hackers) but it's workable.
>
> The statement about non-primary-author kernel hacker interests needs some
> clarification, before people started to throw things at me.
> This is the last argument before I shut up, I promise :-)
First you wont like it, but Linux kernel maintainers usually dont give
firm promises to merge anything. They just say "with that i wont merge it"
and even that is flexible sometimes. It is not like a company who
gives commitments or signs contracts, it is really the final patch that counts.
The best way to get code merged is to write it like the maintainers
wants it, but of course that does not happen always.
However when the code is clean and the biggest issues are fixed
and only some relatively small ones are left I think you have a good
chance to see your code merged.
>
> Arguably, a hacker will be much more interested in changing the non-HAL part
> of a driver. This part of the code has to look and feel the same as any
> other Linux net driver. If it doesn't, then we've done a poor job and need
> to go back.
There are currently some issues, mostly the "LAL" in it (Linux Adaption
Layer that wraps everything) and all the ugly function parameters (IN and
__STATIC_* and the wrapped list functions ). That is what just poked in my
eyes at the first look.
I personally dont care that much about the later stuff which
is more cosmetic, but a lot of other people strongly object to
code that does not look like other Linux code so I would recommend to
fix it.
What I also did not like was that you had high level logic in these
HAL parts - like handling packet queues etc. Normally IMHO high level
logic should be directly in the functions that are directly called
from the kernel. This way it is easy to follow the main logic
of the driver if someone is familiar with linux network drivers
in general
LALs are strongly frowned at upon and I personally also dont like them
at all. AFAIK there is one two drivers in the kernel tree that have
it and it is considered an historic accident by everybody I know ,=)
> In our experience, the vast majority of code fixes and new features in the
> HAL code comes from our team (hey, we planted all these bugs to begin with
> :-)), and to a much lesser extend from other OS developers, and only then
> from Linux community.
The problem is usually that when there is some bug in your driver
and someone not in your company wants to debug it because the bug
is causing them problems (that is one of the great advantages of free
software that they can do it themselves), then they want relatively
clean code. The same happens for the maintainer who is hunting some
issue and needs to change your driver slightly for some infrastructure
change.
So even though most changes come likely from you there is a need
for other people to understand and change your code.
-Andi
next prev parent reply other threads:[~2005-03-19 20:15 UTC|newest]
Thread overview: 77+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-19 3:44 Intel and TOE in the news Jeff Garzik
2005-02-19 4:10 ` Lennert Buytenhek
2005-02-19 19:46 ` David S. Miller
2005-02-19 20:27 ` Andi Kleen
2005-02-19 20:32 ` Lennert Buytenhek
2005-02-20 16:46 ` Eugene Surovegin
2005-02-21 14:01 ` jamal
2005-02-20 19:45 ` rick jones
2005-02-20 21:20 ` Michael Richardson
2005-02-20 21:29 ` Andi Kleen
2005-02-20 22:43 ` Leonid Grossman
2005-02-20 23:07 ` Andi Kleen
2005-02-21 1:57 ` Alex Aizman
2005-02-21 2:37 ` Jeff Garzik
2005-02-21 19:34 ` Alex Aizman
2005-02-21 20:34 ` Jeff Garzik
2005-02-22 0:50 ` Alex Aizman
2005-02-21 11:37 ` Andi Kleen
2005-02-21 3:31 ` Leonid Grossman
2005-02-21 11:50 ` Andi Kleen
2005-02-21 13:28 ` Thomas Graf
2005-02-21 14:03 ` jamal
2005-02-21 14:17 ` Thomas Graf
2005-02-21 14:31 ` jamal
2005-02-21 15:34 ` Thomas Graf
2005-02-21 15:48 ` jamal
2005-02-21 16:40 ` Thomas Graf
2005-02-21 17:03 ` jamal
2005-02-21 20:12 ` patrick mcmanus
2005-02-21 21:12 ` jamal
2005-03-06 11:21 ` Harald Welte
2005-02-21 21:41 ` Thomas Graf
2005-02-21 15:38 ` Robert Olsson
2005-02-21 15:50 ` jamal
2005-02-21 13:44 ` jamal
2005-02-21 16:52 ` Leonid Grossman
2005-02-21 17:11 ` jamal
2005-02-21 18:02 ` Leonid Grossman
2005-02-22 18:02 ` Stephen Hemminger
2005-02-22 18:07 ` Andi Kleen
2005-02-22 20:51 ` Leonid Grossman
2005-02-22 21:20 ` Rick Jones
2005-02-22 21:30 ` Leonid Grossman
2005-02-22 21:42 ` Rick Jones
2005-02-22 22:10 ` Leonid Grossman
2005-02-22 21:43 ` Andi Kleen
2005-02-22 22:17 ` Leonid Grossman
2005-02-22 22:42 ` Andi Kleen
2005-02-22 22:51 ` Leonid Grossman
2005-03-14 20:22 ` [ANNOUNCE] Experimental Driver for Neterion/S2io 10GbE Adapters Alex Aizman
2005-03-14 20:38 ` David S. Miller
2005-03-14 20:53 ` Leonid Grossman
2005-03-14 23:27 ` Andi Kleen
2005-03-14 23:45 ` Jeff Garzik
2005-03-15 0:32 ` Leonid Grossman
2005-03-15 1:07 ` Alex Aizman
2005-03-15 1:29 ` Rick Jones
2005-03-15 2:28 ` Leonid Grossman
2005-03-15 15:07 ` Leonid Grossman
2005-03-15 15:55 ` Leonid Grossman
2005-03-19 20:15 ` Andi Kleen [this message]
2005-03-19 22:19 ` Leonid Grossman
2005-03-20 13:40 ` jamal
2005-03-20 20:13 ` Leonid Grossman
2005-03-15 5:14 ` Scott Feldman
2005-03-15 5:59 ` Matt Mackall
2005-03-15 6:02 ` Leonid Grossman
2005-02-22 17:27 ` Intel and TOE in the news Andi Kleen
2005-02-19 20:29 ` Lennert Buytenhek
2005-03-02 13:48 ` Lennert Buytenhek
2005-03-02 17:34 ` Leonid Grossman
2005-02-21 13:59 ` P
2005-02-21 14:10 ` jamal
2005-02-21 22:44 ` Stephen Hemminger
-- strict thread matches above, loose matches on Subject: below --
2005-03-22 23:29 [ANNOUNCE] Experimental Driver for Neterion/S2io 10GbE Adapters Alex Aizman
2005-08-11 17:48 ` Jeff Garzik
2005-08-11 19:40 Leonid Grossman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m17jk35r5l.fsf@muc.de \
--to=ak@muc.de \
--cc=jgarzik@pobox.com \
--cc=leonid.grossman@neterion.com \
--cc=leonid@neterion.com \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).