diff options
author | Willem de Bruijn <willemb@google.com> | 2017-09-22 19:42:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-22 20:31:29 -0700 |
commit | 581fe0ea61584d88072527ae9fb9dcb9d1f2783e (patch) | |
tree | 3e4d6f6ea3397283ab12445eb369ebb5ee4c006b /net/ipv4/inet_connection_sock.c | |
parent | b9b95da92de9d498ece7e6a82e2d6dcfc76fd9d8 (diff) | |
download | linux-581fe0ea61584d88072527ae9fb9dcb9d1f2783e.tar.gz linux-581fe0ea61584d88072527ae9fb9dcb9d1f2783e.tar.bz2 linux-581fe0ea61584d88072527ae9fb9dcb9d1f2783e.zip |
net: orphan frags on stand-alone ptype in dev_queue_xmit_nit
Zerocopy skbs frags are copied when the skb is looped to a local sock.
Commit 1080e512d44d ("net: orphan frags on receive") introduced calls
to skb_orphan_frags to deliver_skb and __netif_receive_skb for this.
With msg_zerocopy, these skbs can also exist in the tx path and thus
loop from dev_queue_xmit_nit. This already calls deliver_skb in its
loop. But it does not orphan before a separate pt_prev->func().
Add the missing skb_orphan_frags_rx.
Changes
v1->v2: handle skb_orphan_frags_rx failure
Fixes: 1f8b977ab32d ("sock: enable MSG_ZEROCOPY")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/inet_connection_sock.c')
0 files changed, 0 insertions, 0 deletions