net: use skb_orphan_frags() in dev_queue_xmit_nit()
For packet capture, cloning the packet should be safe already, thus use
skb_orphan_frags() instead of skb_orphan_frags_rx().
skb_orphan_frags_rx() forces an orphan operation which will try to
skb_copy_ubufs() and potentially fail for devmem skbs.
Suggested-by: Eric Dumazet <edumazet@google.com>
Change-Id: I6d48ed6f9317885a450397940e8c02161f0d830b
Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/57808
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Brian Vazquez <brianvv@google.com>
Tested-by: Mina Almasry <almasrymina@google.com>
(cherry picked from commit 293a3439381200904557bf1fbdcb6d7b5dbce287)
1 file changed