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)
commitf9708b4302733ca023722fddcf9f501a3cb8c98b
treeb87492efee7b5c7046c29a1422c3159b843ba0c1
parent50240dc37e5363cc8e8de34d931392263e38ca7d
consolidate duplicate code is skb_checksum_setup() helpers

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