From: Heiner Kallweit <hkallwe...@gmail.com> Date: Wed, 24 Jul 2019 23:47:49 +0200
> Instead of open-coding making the checksum writable we can use an > appropriate helper. skb_ensure_writable is a candidate, however we > might also use skb_header_unclone. Hints welcome. > > Signed-off-by: Heiner Kallweit <hkallwe...@gmail.com> FWIW these conversions look accurate to me. The only real difference is the perhaps unnecessary pskb_may_pull() check.