From: Tim Bird <tim.bird@am.sony.com>
To: Paul Mundt <lethal@linux-sh.org>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,
Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>,
linux-embedded@vger.kernel.org,
David Woodhouse <dwmw2@infradead.org>
Subject: Re: [RFC] Remove more code when IP_MULTICAST=n
Date: Tue, 26 Aug 2008 09:44:31 -0700 [thread overview]
Message-ID: <48B432EF.1010403@am.sony.com> (raw)
In-Reply-To: <20080826033345.GA30587@linux-sh.org>
Paul Mundt wrote:
> On Mon, Aug 25, 2008 at 08:48:25AM +0200, Thomas Petazzoni wrote:
>> Le Tue, 19 Aug 2008 16:18:38 +0200 (CEST),
>> Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> a ??crit :
>>
>>> On Tue, 19 Aug 2008, Thomas Petazzoni wrote:
>>>> [RFC] Remove more code when IP_MULTICAST=n
>>> Probably you wanted to cc netdev@vger.kernel.org?
>> Not necessarly at the beginning: I first wanted to get the feedback of
>> embedded-concerned developers, who might have a better understanding
>> than me of the networking stack. Last time I submitted a size-reduction
>> patch to Dave Miller concerning IGMP, the answer was:
>>
>> ??
>> I'm not applying this.
>>
>> This removes core parts of the BSD socket API from applications.
>> Like TCP and UDP, multicast capabilities are something applications
>> can always depend upon being available.
>>
>> If you want a broken networking implementation, you have the source
>> code, so you can do it in your own tree.
>> ??
>>
>> So, I'd prefer to send a good patch from the beginning.
>>
> Out of that bit of criticism, it's the validity of the approach in
> particular that's being called in to question, rather than the patch
> itself. How to clean up the patch itself is irrelevant if the idea itself
> is being shot down by the folks that will merge it. This is something
> that needs to be resolved first, and lists outside of the scope of netdev
> are really the wrong place to do this.
>
> This is generally the way a lot of the size reduction work seems to be
> going these days. Now that most of the low-hanging fruit is out of the
> way, it's mostly down to micro-optimizations aimed at things perceived to
> be core functionality by others. Expect to continue running in to these
> sorts of problems if you choose to continue down this path.
This is a good observation.
I agree that we will continue to face opposition like this. However,
IIRC, near the end of this thread David Miller did say that if the
patch got cleaned up he would take another look.
With regard to things perceived to be core functionality by others, this
is exactly correct. In this case, David Miller asserts that without IGMP
functionality, the network stack is incorrect (and that "people" expect
and depend on a fully functional stack.) He doesn't acknowledge (and
some other kernel developer don't either) that there might be developers
willing to forego stack features in the interest of other aims. This
is something that will require ongoing education with kernel developers
about.
There are two sides to this battle: 1) convincing people that size matters
(AND that small increments can have a cumulative impact that matters), and
2) that the kernel can function "correctly" with the affected feature removed.
It is quite common for kernel developers to raise use cases unrelated
to embedded, which is frustrating. But the burden of proof is on us to
show that the slicing and dicing we're requesting doesn't fundamentally
break the remaining functionality in ways that will negatively impact the
maintainers of those function areas.
In this particular case, I think we need to show that
there are valid cases were an embedded product can use networking just
fine, without IGMP support but with support for multicast. (I believe
that's the slice that this particular patch makes). IMHO, what's
needed is a test to show that this works. This can then be presented
to the netdev guys, who are, after all much more experienced with the
networking stuff. If they can show that multicast does indeed *need* IGMP
to work correctly, then we need to back off. The last thing I want is
to find out in the field that some streaming feature I've built into a
Sony camera that relies on multicast won't work in lots of network
configurations. If that's true, then David is doing me a favor by
saying No. (Note that I might still make the decision to forego
a feature for size reasons if the number of instances of non-workingness
was small.)
IMHO, we need to acknowledge that the network guys can help us avoid
problems like the above. Avoiding confrontation is good, but we should
still be ready to assert the value of our patches, when needed.
-- Tim
P.S. We should also be careful about taking claims of incorrectness
at face value. In this particular thread, David asserted that NTP breaks
with this patch applied, but that turned out not to be the case.
=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Corporation of America
=============================
next prev parent reply other threads:[~2008-08-26 16:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-19 13:00 [RFC] Remove more code when IP_MULTICAST=n Thomas Petazzoni
2008-08-19 14:18 ` Geert Uytterhoeven
2008-08-25 6:48 ` Thomas Petazzoni
2008-08-26 3:33 ` Paul Mundt
2008-08-26 16:44 ` Tim Bird [this message]
2008-08-28 20:25 ` Alexander Clouter
2008-09-24 15:33 ` Thomas Petazzoni
2008-09-24 17:08 ` Tim Bird
2008-08-25 22:31 ` Mike Frysinger
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=48B432EF.1010403@am.sony.com \
--to=tim.bird@am.sony.com \
--cc=Geert.Uytterhoeven@sonycom.com \
--cc=dwmw2@infradead.org \
--cc=lethal@linux-sh.org \
--cc=linux-embedded@vger.kernel.org \
--cc=thomas.petazzoni@free-electrons.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).