]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitc3b18e0d925439043b5887c9a6129ff2ffaf58b0
tree7274009f84f9e35e2272c955e7045b4523dd65ec
parent1a186c14cedbf3364634f2dfa9302ed31b8fab19
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