linux-stable/net/ipv4/ipvs
Harald Welte 6869c4d8e0 [NETFILTER]: reduce netfilter sk_buff enlargement
As discussed at netconf'05, we're trying to save every bit in sk_buff.
The patch below makes sk_buff 8 bytes smaller.  I did some basic
testing on my notebook and it seems to work.

The only real in-tree user of nfcache was IPVS, who only needs a
single bit.  Unfortunately I couldn't find some other free bit in
sk_buff to stuff that bit into, so I introduced a separate field for
them.  Maybe the IPVS guys can resolve that to further save space.

Initially I wanted to shrink pkt_type to three bits (PACKET_HOST and
alike are only 6 values defined), but unfortunately the bluetooth code
overloads pkt_type :(

The conntrack-event-api (out-of-tree) uses nfcache, but Rusty just
came up with a way how to do it without any skb fields, so it's safe
to remove it.

- remove all never-implemented 'nfcache' code
- don't have ipvs code abuse 'nfcache' field. currently get's their own
  compile-conditional skb->ipvs_property field.  IPVS maintainers can
  decide to move this bit elswhere, but nfcache needs to die.
- remove skb->nfcache field to save 4 bytes
- move skb->nfctinfo into three unused bits to save further 4 bytes

Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2005-08-29 15:31:04 -07:00
..
Kconfig [NET]: move config options out to individual protocols 2005-07-11 21:13:56 -07:00
Makefile [IPVS]: remove net/ipv4/ipvs/ip_vs_proto_icmp.c 2005-06-02 13:02:25 -07:00
ip_vs_app.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_vs_conn.c [IPVS]: Add and reorder bh locks after moving to keventd. 2005-07-11 20:59:57 -07:00
ip_vs_core.c [NETFILTER]: reduce netfilter sk_buff enlargement 2005-08-29 15:31:04 -07:00
ip_vs_ctl.c [IPVS]: Add and reorder bh locks after moving to keventd. 2005-07-11 20:59:57 -07:00
ip_vs_dh.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_vs_est.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_vs_ftp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_vs_lblc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_vs_lblcr.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_vs_lc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_vs_nq.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_vs_proto.c [IPVS]: remove net/ipv4/ipvs/ip_vs_proto_icmp.c 2005-06-02 13:02:25 -07:00
ip_vs_proto_ah.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_vs_proto_esp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_vs_proto_tcp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_vs_proto_udp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_vs_rr.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_vs_sched.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_vs_sed.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_vs_sh.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_vs_sync.c [IPVS]: Fix for overflows 2005-06-26 16:00:19 -07:00
ip_vs_wlc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_vs_wrr.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_vs_xmit.c [NETFILTER]: reduce netfilter sk_buff enlargement 2005-08-29 15:31:04 -07:00