consolidate duplicate code is skb_checksum_setup() helpers
authorJan Beulich <JBeulich@suse.com>
Tue, 11 Mar 2014 13:56:05 +0000 (13:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Mar 2014 19:16:29 +0000 (15:16 -0400)
consolidate duplicate code is skb_checksum_setup() helpers

Realizing that the skb_maybe_pull_tail() calls in the IP-protocol
specific portions of both helpers are terminal ones (i.e. no further
pulls are expected), their maximum size to be pulled can be made match
their minimal size needed, thus making the code identical and hence
possible to be moved into another helper.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: Paul Durrant <paul.durrant@citrix.com>
Cc: David Miller <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c

Simple merge