net: helper function skb_len_add
authorRichard Gobert <richardbgobert@gmail.com>
Wed, 22 Jun 2022 16:09:03 +0000 (18:09 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 24 Jun 2022 23:24:38 +0000 (16:24 -0700)
commitede57d58e6f38d5bc66137368e4a1e68a157af6e
tree9a412c4d1bbf5865189ee1eba9e926ea3749561e
parent1da9e27415bfc54db25c8374331aaf5321185a1d
net: helper function skb_len_add

Move the len fields manipulation in the skbs to a helper function.
There is a comment specifically requesting this and there are several
other areas in the code displaying the same pattern which can be
refactored.
This improves code readability.

Signed-off-by: Richard Gobert <richardbgobert@gmail.com>
Link: https://lore.kernel.org/r/20220622160853.GA6478@debian
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/skbuff.h
include/net/sock.h
net/core/skbuff.c
net/ipv4/esp4.c
net/ipv4/ip_output.c