]> git.baikalelectronics.ru Git - kernel.git/commit
net: xfrm: use skb_list_walk_safe helper for gso segments
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 13 Jan 2020 23:42:28 +0000 (18:42 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Jan 2020 19:48:41 +0000 (11:48 -0800)
commit4599c05b0546d5c335d6236e2f99937b844c4424
tree7274009f84f9e35e2272c955e7045b4523dd65ec
parent8309b6a9e2481039c9eb42d23dad028968f6a03a
net: xfrm: use skb_list_walk_safe helper for gso segments

This is converts xfrm segment iteration to use the new function, keeping
the flow of the existing code as intact as possible. One case is very
straight-forward, whereas the other case has some more subtle code that
likes to peak at ->next and relink skbs. By keeping the variables the
same as before, we can upgrade this code with minimal surgery required.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_device.c
net/xfrm/xfrm_output.c