]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc09defafcd5734d1890e2a15f9310a896848142d
tree9a412c4d1bbf5865189ee1eba9e926ea3749561e
parentd70797a17d72734c4940250e55b6acf5b272aa20
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