aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2007-12-25 04:57:56 +0000
committerDavid S. Miller <[email protected]>2008-01-28 23:00:05 +0000
commit21371f768bf7127ee45bfaadd17899df6a439e8f (patch)
tree91b5debf1d861a40c942a33f1286b70031a94305 /net/ipv4/tcp_output.c
parent[XFRM]: Fix outbound statistics. (diff)
downloadkernel-21371f768bf7127ee45bfaadd17899df6a439e8f.tar.gz
kernel-21371f768bf7127ee45bfaadd17899df6a439e8f.zip
[SOCK] Avoid divides in sk_stream_pages() and __sk_stream_mem_reclaim()
sk_forward_alloc being signed, we should take care of divides by SK_STREAM_MEM_QUANTUM we do in sk_stream_pages() and __sk_stream_mem_reclaim() This patchs introduces SK_STREAM_MEM_QUANTUM_SHIFT, defined as ilog2(SK_STREAM_MEM_QUANTUM), to be able to use right shifts instead of plain divides. This should help compiler to choose right shifts instead of expensive divides (as seen with CONFIG_CC_OPTIMIZE_FOR_SIZE=y on x86) Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions