net: qrtr: Attempt to linearize skb for forwarding
The current QRTR transport feature set does not support fragmented skbs
which is a problem for packets that are forwarded from the rx path.
In order to linearize the skb, skb_put_padto() and skb_linearize() try
to allocate enough memory with GFP_ATOMIC but are prone to failure.
Pre-allocate enough headeroom with GFP_KERNEL on forwarded packets. If
there are still problems with allocation, then continue and drop the
packet in qrtr_node_enqueue().
Change-Id: I7de6620bba26746698237d913ce064ea5725f921
Signed-off-by:
Chris Lew <clew@codeaurora.org>
Loading
Please register or sign in to comment