kernel_optimize_test/net
Allan Stephens 2689690469 tipc: Avoid recomputation of outgoing message length
Rework TIPC's message sending routines to take advantage of the total
amount of data value passed to it by the kernel socket infrastructure.
This change eliminates the need for TIPC to compute the size of outgoing
messages itself, as well as the check for an oversize message in
tipc_msg_build().  In addition, this change warrants an explanation:

   -     res = send_packet(NULL, sock, &my_msg, 0);
   +     res = send_packet(NULL, sock, &my_msg, bytes_to_send);

Previously, the final argument to send_packet() was ignored (since the
amount of data being sent was recalculated by a lower-level routine)
and we could just pass in a dummy value (0). Now that the
recalculation is being eliminated, the argument value being passed to
send_packet() is significant and we have to supply the actual amount
of data we want to send.

Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
2011-05-10 16:03:57 -04:00
..
9p
802
8021q
appletalk
atm
ax25
batman-adv Merge branch 'batman-adv/next' of git://git.open-mesh.org/ecsv/linux-merge 2011-05-08 15:39:11 -07:00
bluetooth Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-05-05 13:32:35 -04:00
bridge net: dont hold rtnl mutex during netlink dump callbacks 2011-05-02 15:26:28 -07:00
caif
can can: rename can_try_module_get to can_get_proto 2011-05-04 14:08:37 -07:00
ceph
core net: Allow ethtool to set interface in loopback mode. 2011-05-08 15:59:12 -07:00
dcb
dccp inet: Pass flowi to ->queue_xmit(). 2011-05-08 15:28:28 -07:00
decnet net: dont hold rtnl mutex during netlink dump callbacks 2011-05-02 15:26:28 -07:00
dns_resolver
dsa Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2011-05-05 14:59:02 -07:00
econet
ethernet
ieee802154
ipv4 ipv4: Pass flow key down into ip_append_*(). 2011-05-08 21:24:07 -07:00
ipv6 inet: Pass flowi to ->queue_xmit(). 2011-05-08 15:28:28 -07:00
ipx
irda
iucv
key
l2tp inet: Pass flowi to ->queue_xmit(). 2011-05-08 15:28:28 -07:00
lapb
llc
mac80211 Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 2011-05-05 14:09:28 -07:00
netfilter
netlabel
netlink
netrom
packet net: filter: Just In Time compiler for x86-64 2011-04-27 23:05:08 -07:00
phonet net: dont hold rtnl mutex during netlink dump callbacks 2011-05-02 15:26:28 -07:00
rds
rfkill
rose
rxrpc ipv4: Make caller provide on-stack flow key to ip_route_output_ports(). 2011-05-03 20:25:42 -07:00
sched
sctp sctp: Fix debug message args. 2011-05-08 21:24:07 -07:00
sunrpc
tipc tipc: Avoid recomputation of outgoing message length 2011-05-10 16:03:57 -04:00
unix af_unix: Only allow recv on connected seqpacket sockets. 2011-05-01 23:16:28 -07:00
wanrouter
wimax
wireless Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-05-05 13:32:35 -04:00
x25
xfrm Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2011-05-05 14:59:02 -07:00
compat.c net: Add sendmmsg socket system call 2011-05-05 11:10:14 -07:00
Kconfig bpf: depends on MODULES 2011-04-29 10:20:53 -07:00
Makefile
nonet.c
socket.c net: Add sendmmsg socket system call 2011-05-05 11:10:14 -07:00
sysctl_net.c
TUNABLE