public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 800+ byte inlines in include/net/pkt_act.h
@ 2006-08-20 17:33 Denis Vlasenko
  2006-08-21 12:26 ` jamal
  0 siblings, 1 reply; 4+ messages in thread
From: Denis Vlasenko @ 2006-08-20 17:33 UTC (permalink / raw)
  To: linux-kernel, netdev

Hi,

include/net/pkt_act.h plays a game of inlines
which are kind of "templatized", like this:

act_ipt.c:

/* ovewrride the defaults */
#define tcf_st          tcf_ipt
#define tcf_t_lock      ipt_lock
#define tcf_ht          tcf_ipt_ht
#define CONFIG_NET_ACT_INIT
#include <net/pkt_act.h>

This results in code duplication. For example,
tcf_generic_walker() is duplicated four times.
On i386 it is about 4*800 bytes in text section.
Other inlines are a bit smaller but still are substantial.
--
vda

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-22 13:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-20 17:33 800+ byte inlines in include/net/pkt_act.h Denis Vlasenko
2006-08-21 12:26 ` jamal
2006-08-21 23:38   ` David Miller
2006-08-22 13:45     ` jamal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox