]> git.baikalelectronics.ru Git - kernel.git/commit
tcp_cubic: fix comparison of jiffies
authorstephen hemminger <shemminger@vyatta.com>
Mon, 14 Mar 2011 07:52:13 +0000 (07:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2011 22:54:38 +0000 (15:54 -0700)
commit6bf709300a665915174526a9afa5e9c9bdb99b2d
tree42178e794fafe36de1a00607b28363e1fe8da3f2
parent5dc8c8b1a5437e6a55386e9e0a2674131af539de
tcp_cubic: fix comparison of jiffies

Jiffies wraps around therefore the correct way to compare is
to use cast to signed value.

Note: cubic is not using full jiffies value on 64 bit arch
because using full unsigned long makes struct bictcp grow too
large for the available ca_priv area.

Includes correction from Sangtae Ha to improve ack train detection.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_cubic.c