[PATCH net-next] net: rename skb_unshare() to skb_unclone_full()

Ioana Ciornei ioana.ciornei at nxp.com
Thu Oct 15 02:10:47 PDT 2026


On Thu, Oct 15, 2026 at 10:16:38AM +0200, Nicolai Buchwitz wrote:
> skb_unshare() only copies cloned skbs. A shared skb that is not a clone
> comes back unchanged, which the name doesn't suggest. The loopback
> selftest hooks got caught by this and hit BUG_ON(skb_shared()).
> 
> Rename it to skb_unclone_full(). Like skb_unclone() it only acts on
> clones, but it copies the whole skb, not just the head.
> 
> Suggested-by: Jakub Kicinski <kuba at kernel.org>
> Signed-off-by: Nicolai Buchwitz <nb at tipi-net.de>

Reviewed-by: Ioana Ciornei <ioana.ciornei at nxp.com> # dpaa2




More information about the linux-arm-kernel mailing list