On Wed, 2017-02-01 at 15:38 -0800, Eric Dumazet wrote: > I am not sure this is a proper fix. > > Presumably if the socket was able to store packets in its write queue, > fact that it sends it to loopback or an Ethernet link should not matter. > > Only in RX path the pfmemalloc thing is really important. > > So I would rather not set skb->pfmemalloc for skbs allocated for the > write queue, and more exactly the fast clone.
Also note that any looped packet would have the problem : veth, macvlan, ipvlan, ...