net: core: let skb_partial_csum_set() set transport header
authorJason Wang <jasowang@redhat.com>
Tue, 26 Mar 2013 23:11:20 +0000 (23:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Mar 2013 16:48:31 +0000 (12:48 -0400)
commite5d5decaedf41f5b03e6819789cc3ba8744d9f54
tree741999a3d63a2d816a844d21cbe976231875d67c
parent7d3ac5c7799152b817176849e4e95559a1ddf03f
net: core: let skb_partial_csum_set() set transport header

For untrusted packets with partial checksum, we need to set the transport header
for precise packet length estimation. We can just let skb_pratial_csum_set() to
do this to avoid extra call to skb_flow_dissect() and simplify the caller.

Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c