linux/net/core
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
..
datagram.c [PATCH] DocBook: fix some descriptions 2005-05-01 08:59:26 -07:00
dev.c [NETPOLL]: fix initialization/NAPI race 2005-08-11 19:27:43 -07:00
dev_mcast.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dst.c [NET] Fix too aggressive backoff in dst garbage collection 2005-07-30 17:47:25 -07:00
dv.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ethtool.c [ETHTOOL]: Check correct pointer in ethtool_set_coalesce(). 2005-06-06 15:07:19 -07:00
filter.c [NET]: net/core/filter.c: make len cover the entire packet 2005-07-05 14:10:40 -07:00
flow.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gen_estimator.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gen_stats.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iovec.c [PATCH] misc verify_area cleanups 2005-05-01 08:59:08 -07:00
link_watch.c [NET]: Disable queueing when carrier is lost. 2005-05-03 16:18:52 -07:00
Makefile [NET]: Only build flow.o if CONFIG_XFRM=y 2005-07-19 13:58:40 -07:00
neighbour.c [NETLINK]: Missing initializations in dumped data 2005-06-28 12:55:30 -07:00
net-sysfs.c [NET]: Allow controlling NAPI device weight with sysfs 2005-06-08 14:55:42 -07:00
netfilter.c [NETFILTER]: Kill nf_debug 2005-06-21 14:01:57 -07:00
netpoll.c [NETPOLL]: remove unused variable 2005-08-11 19:28:05 -07:00
pktgen.c [PATCH] clean up inline static vs static inline 2005-07-27 16:26:20 -07:00
request_sock.c [NET]: Move sysctl_max_syn_backlog into request_sock.c 2005-06-18 22:49:40 -07:00
rtnetlink.c [NETLINK]: Missing initializations in dumped data 2005-06-28 12:55:30 -07:00
scm.c [PATCH] kill gratitious includes of major.h under net/* 2005-04-25 18:32:13 -07:00
skbuff.c [NETFILTER]: reduce netfilter sk_buff enlargement 2005-08-29 15:31:04 -07:00
sock.c [NET]: Fix setsockopt locking bug 2005-07-27 14:22:30 -07:00
stream.c [PATCH] DocBook: changes and extensions to the kernel documentation 2005-05-01 08:59:25 -07:00
sysctl_net_core.c [NET]: Separate two usages of netdev_max_backlog. 2005-06-23 20:14:40 -07:00
utils.c [NET]: Move in_aton from net/ipv4/utils.c to net/core/utils.c 2005-07-27 15:24:42 -07:00
wireless.c [NETLINK]: Missing initializations in dumped data 2005-06-28 12:55:30 -07:00