Arnaldo Carvalho de Melo
c66b721a50
[DECNET]: Use kmemdup
...
Code diff stats:
[acme@newtoy net-2.6.20]$ codiff /tmp/decnet.ko.before /tmp/decnet.ko.after
/pub/scm/linux/kernel/git/acme/net-2.6.20/net/decnet/dn_dev.c:
dn_dev_sysctl_register | -51
1 function changed, 51 bytes removed
[acme@newtoy net-2.6.20]$
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com >
2006-12-02 21:24:00 -08:00
Arnaldo Carvalho de Melo
eed73417d5
[DCCP]: Use kmemdup
...
Code diff stats:
[acme@newtoy net-2.6.20]$ codiff /tmp/dccp.ko.before /tmp/dccp.ko.after
/pub/scm/linux/kernel/git/acme/net-2.6.20/net/dccp/feat.c:
__dccp_feat_init | -16
dccp_feat_change_recv | -55
dccp_feat_clone | -56
3 functions changed, 127 bytes removed
[acme@newtoy net-2.6.20]$
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com >
2006-12-02 21:23:59 -08:00
Arnaldo Carvalho de Melo
af879cc704
[IPV6]: Use kmemdup
...
Code diff stats:
[acme@newtoy net-2.6.20]$ codiff /tmp/ipv6.ko.before /tmp/ipv6.ko.after
/pub/scm/linux/kernel/git/acme/net-2.6.20/net/ipv6/ip6_output.c:
ip6_output | -52
ip6_append_data | +2
2 functions changed, 2 bytes added, 52 bytes removed
/pub/scm/linux/kernel/git/acme/net-2.6.20/net/ipv6/addrconf.c:
addrconf_sysctl_register | -27
1 function changed, 27 bytes removed
/pub/scm/linux/kernel/git/acme/net-2.6.20/net/ipv6/tcp_ipv6.c:
tcp_v6_syn_recv_sock | -32
tcp_v6_parse_md5_keys | -24
2 functions changed, 56 bytes removed
/tmp/ipv6.ko.after:
5 functions changed, 2 bytes added, 135 bytes removed
[acme@newtoy net-2.6.20]$
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com >
2006-12-02 21:23:58 -08:00
Arnaldo Carvalho de Melo
c67862403e
[TCP] minisocks: Use kmemdup and LIMIT_NETDEBUG
...
Code diff stats:
[acme@newtoy net-2.6.20]$ codiff /tmp/tcp_minisocks.o.before /tmp/tcp_minisocks.o.after
/pub/scm/linux/kernel/git/acme/net-2.6.20/net/ipv4/tcp_minisocks.c:
tcp_check_req | -44
1 function changed, 44 bytes removed
[acme@newtoy net-2.6.20]$
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com >
2006-12-02 21:23:57 -08:00
Arnaldo Carvalho de Melo
42e5ea466c
[IPV4]: Use kmemdup in net/ipv4/devinet.c
...
Code diff stats:
[acme@newtoy net-2.6.20]$ codiff /tmp/devinet.o.before /tmp/devinet.o.after
/pub/scm/linux/kernel/git/acme/net-2.6.20/net/ipv4/devinet.c:
devinet_sysctl_register | -38
1 function changed, 38 bytes removed
[acme@newtoy net-2.6.20]$
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com >
2006-12-02 21:23:56 -08:00
Arnaldo Carvalho de Melo
fac5d73151
[NETLABEL]: Use kmemdup in cipso_ipv4.c
...
Code diff stats:
[acme@newtoy net-2.6.20]$ codiff /tmp/cipso_ipv4.o.before /tmp/cipso_ipv4.o.after
/pub/scm/linux/kernel/git/acme/net-2.6.20/net/ipv4/cipso_ipv4.c:
cipso_v4_cache_add | -46
1 function changed, 46 bytes removed
[acme@newtoy net-2.6.20]$
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com >
2006-12-02 21:23:55 -08:00
Arnaldo Carvalho de Melo
f6685938f9
[TCP_IPV4]: Use kmemdup where appropriate
...
Also use a variable to avoid the longish tp->md5sig_info-> use
in tcp_v4_md5_do_add.
Code diff stats:
[acme@newtoy net-2.6.20]$ codiff /tmp/tcp_ipv4.o.before /tmp/tcp_ipv4.o.after
/pub/scm/linux/kernel/git/acme/net-2.6.20/net/ipv4/tcp_ipv4.c:
tcp_v4_md5_do_add | -62
tcp_v4_syn_recv_sock | -32
tcp_v4_parse_md5_keys | -86
3 functions changed, 180 bytes removed
[acme@newtoy net-2.6.20]$
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com >
2006-12-02 21:23:54 -08:00
Arnaldo Carvalho de Melo
7174259e6c
[TCP_IPV4]: CodingStyle cleanups, no code change
...
Mostly related to CONFIG_TCP_MD5SIG recent merge.
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com >
2006-12-02 21:23:53 -08:00
Andrea Bittau
32aac18dfa
[DCCP] CCID2: Code optimizations
...
These are code optimizations which are relevant when dealing with large
windows. They are not coded the way I would like to, but they do the job for
the short-term. This patch should be more neat.
Commiter note: Changed the seqno comparisions to use {after,before}48 to handle
wrapping.
Signed-off-by: Andrea Bittau <a.bittau@cs.ucl.ac.uk >
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com >
2006-12-02 21:23:52 -08:00
Arnaldo Carvalho de Melo
58a5a7b955
[NET]: Conditionally use bh_lock_sock_nested in sk_receive_skb
...
Spotted by Ian McDonald, tentatively fixed by Gerrit Renker:
http://www.mail-archive.com/dccp%40vger.kernel.org/msg00599.html
Rewritten not to unroll sk_receive_skb, in the common case, i.e. no lock
debugging, its optimized away.
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com >
2006-12-02 21:23:51 -08:00
Arnaldo Carvalho de Melo
e523a1550e
[DCCP]: One NET_INC_STATS() could be NET_INC_STATS_BH in dccp_v4_err()
...
Spotted by Eric Dumazet in tcp_v4_rcv().
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com >
2006-12-02 21:23:50 -08:00
Gerrit Renker
3c6952624a
[DCCP]: Introduce DCCP_{BUG{_ON},CRIT} macros, use enum:8 for the ccid3 states
...
This patch tackles the following problem:
* the ccid3_hc_{t,r}x_sock define ccid3hc{t,r}x_state as `u8', but
in reality there can only be a few, pre-defined enum names
* this necessitates addiditional checking for unexpected values
which would otherwise be caught by the compiler
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk >
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com >
2006-12-02 21:23:49 -08:00
David S. Miller
6bb100b9fc
[UDPLite]: udplite.h needs ip6_checksum.h
...
Signed-off-by: David S. Miller <davem@davemloft.net >
2006-12-02 21:23:48 -08:00
Gerrit Renker
078250d68d
[NET/IPv4]: Make udp_push_pending_frames static
...
udp_push_pending_frames is only referenced within
net/ipv4/udp.c and hence can remain static.
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk >
Signed-off-by: David S. Miller <davem@davemloft.net >
2006-12-02 21:23:47 -08:00
David S. Miller
7d9e9b3df4
[IPV6]: udp.c build fix
...
Signed-off-by: David S. Miller <davem@davemloft.net >
2006-12-02 21:23:46 -08:00
Al Viro
7d533f9418
[NET]: More dccp endianness annotations.
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
Signed-off-by: David S. Miller <davem@davemloft.net >
2006-12-02 21:23:45 -08:00
Al Viro
1f61ab5ca5
[NET]: Preliminaty annotation of skb->csum.
...
It's still not completely right; we need to split it into anon unions
of __wsum and unsigned - for cases when we use it for partial checksum
and for offset of checksum in skb
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
Signed-off-by: David S. Miller <davem@davemloft.net >
2006-12-02 21:23:44 -08:00
Al Viro
5a5a852e45
[NET] driver/s390/net: Checksum annotations.
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
Signed-off-by: David S. Miller <davem@davemloft.net >
2006-12-02 21:23:43 -08:00
Al Viro
43bc0ca7ea
[NET]: netfilter checksum annotations
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
Signed-off-by: David S. Miller <davem@davemloft.net >
2006-12-02 21:23:42 -08:00
Al Viro
f9214b2627
[NET]: ipvs checksum annotations.
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
Signed-off-by: David S. Miller <davem@davemloft.net >
2006-12-02 21:23:41 -08:00
Al Viro
5c78f275e6
[NET]: IP header modifier helpers annotations.
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
Signed-off-by: David S. Miller <davem@davemloft.net >
2006-12-02 21:23:40 -08:00
Al Viro
f6ab028804
[NET]: Make mangling a checksum (0 -> 0xffff on the wire) explicit.
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
Signed-off-by: David S. Miller <davem@davemloft.net >
2006-12-02 21:23:39 -08:00
Al Viro
b51655b958
[NET]: Annotate __skb_checksum_complete() and friends.
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
Signed-off-by: David S. Miller <davem@davemloft.net >
2006-12-02 21:23:38 -08:00
Al Viro
b1550f2212
[NET]: Annotate ip_vs_checksum_complete() and callers.
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
Signed-off-by: David S. Miller <davem@davemloft.net >
2006-12-02 21:23:37 -08:00
Al Viro
81d7766276
[NET]: Annotate skb_copy_and_csum_bits() and callers.
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
Signed-off-by: David S. Miller <davem@davemloft.net >
2006-12-02 21:23:36 -08:00