]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: early_demux fixes
authorEric Dumazet <edumazet@google.com>
Tue, 24 Jul 2012 01:19:31 +0000 (01:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jul 2012 20:54:15 +0000 (13:54 -0700)
commit314b8a4f3f458e8cb52d6ef0e30a59792f8e983d
tree39450b1d5650322fc6cffca581f34edbc06233ee
parentb34f3fd8419dca3847e5f7493bb82298be102253
tcp: early_demux fixes

1) Remove a non needed pskb_may_pull() in tcp_v4_early_demux()
   and fix a potential bug if skb->head was reallocated
   (iph & th pointers were not reloaded)

TCP stack will pull/check headers anyway.

2) must reload iph in ip_rcv_finish() after early_demux()
 call since skb->head might have changed.

3) skb->dev->ifindex can be now replaced by skb->skb_iif

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_input.c
net/ipv4/tcp_ipv4.c