netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Roberto Nibali <ratz@tac.ch>
To: "LinuxVirtualServer.org users mailing list."
	<lvs-users@LinuxVirtualServer.org>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH][RFC] Shrink ip_vs_*.c includes
Date: Mon, 06 Feb 2006 11:33:09 +0100	[thread overview]
Message-ID: <43E725E5.7080400@tac.ch> (raw)
In-Reply-To: <ds7787$lnr$1@sea.gmane.org>

>>> CONFIG_IP_VS=m
>>> # CONFIG_IP_VS_DEBUG is not set
>>> CONFIG_IP_VS_TAB_BITS=12
>>> CONFIG_IP_VS_PROTO_TCP=y
>>> CONFIG_IP_VS_PROTO_UDP=y
>>> CONFIG_IP_VS_PROTO_ESP=y
>>> CONFIG_IP_VS_PROTO_AH=y

These 'y' caused me to think that it wasn't modular.

>>> CONFIG_IP_VS_RR=m
>>> CONFIG_IP_VS_WRR=m
>>> CONFIG_IP_VS_LC=m
>>> CONFIG_IP_VS_WLC=m
>>> CONFIG_IP_VS_LBLC=m
>>> CONFIG_IP_VS_LBLCR=m
>>> CONFIG_IP_VS_DH=m
>>> CONFIG_IP_VS_SH=m
>>> CONFIG_IP_VS_SED=m
>>> CONFIG_IP_VS_NQ=m
>>> CONFIG_IP_VS_FTP=m
>> Ok, this is m/y mixed. Haven't tried it yet.
> 
> Actually, I think that its completely modular.

So why the heck didn't it trigger on my system? Is it because the
include/net/* headers are not always included on ia64? Well, tant pis!

>> I'll reproduce it with your config. I didn't think of trying it with
>> mixed y/m settings. Following include is missing then:
>>
>> #include <linux/seq_file.h>
> 
> Thanks, I found that linux/module.h was also needed.

Ok. I thought this would get included by any of the other headers. Well,
so long as it also compiles fine on your system, I'm good.

> After putting those two back into ip_vs_conn.c the build went 
> find. I also tried a few other combinations, all on ia64, without issue.
> My diff is below. Could you recheck it?

Seems fine to me, thanks for testing this. I would have felt really bad
if I broke IPVS in mainline because of such changes.

>> Or do you think we could put all the needed includes into ip_vs.h and
>> simply be done with it?
> 
> I spoke breifly with Dave about this, and he isn't very keen on it.

Fair enough.

> The problem with that approach, is that while its less work to
> maintain the headers by hand, it will likely result in uneeded
> includes in some cases.

How so? All includes nota bene have the prevailing:

#ifndef _FOOBAR_H
#define _FOOBAR_H
[...]
#endif  /* _FOOBAR_H */

framework. So would this speak slightely against that? Also, from the
includes we take today, I reckon that in the end we half of the
include/{net,linux}/*.h is in our objects :). But you guys decide. I
could maybe run a call-graph.

> So all of LVS will get built when
> a given header is touched, where perhaps only half of it needed
> to be built.

Well, it does not happen so ofter that a core network related header is
touched to my avail.

> So with that in mind, could you continue in the vein of
> your original patch?

Sure thing. Your attached patch is fine; if you feel confident with our
changes, submit it.

Best regards,
Roberto Nibali, ratz
-- 
-------------------------------------------------------------
addr://Kasinostrasse 30, CH-5001 Aarau tel://++41 62 823 9355
http://www.terreactive.com             fax://++41 62 823 9356
-------------------------------------------------------------
10 Jahre Kompetenz in IT-Sicherheit.              1996 - 2006
Wir sichern Ihren Erfolg.                      terreActive AG
-------------------------------------------------------------

  reply	other threads:[~2006-02-06 10:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-06  0:48 [PATCH][RFC] Shrink ip_vs_*.c includes Roberto Nibali
2006-02-06  9:13 ` Horms
2006-02-06  9:26   ` Roberto Nibali
2006-02-06 10:09     ` Horms
2006-02-06 10:33       ` Roberto Nibali [this message]
2006-02-07  4:00         ` Horms

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=43E725E5.7080400@tac.ch \
    --to=ratz@tac.ch \
    --cc=lvs-users@LinuxVirtualServer.org \
    --cc=netdev@vger.kernel.org \
    /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).