net: qualcomm: rmnet: Do not clone UDP and command packets
UDP packets cloned from aggregated packets may cause drops due to
overestimated buffer sizes (skb truesize). Since clone doesn’t
involve a memcpy, there is some benefit for using it for UDP.
When datapath switched to cloning for UDP, the skb truesize was
forced to match size of UDP packet + metadata in rmnet driver (2150)
rather than the actual size of QMAP aggregated packet (16640).
While this works most of the time, upstream changes checks for memory
more accurately during memory pressure situations.
This means is that when socket buffer reaches half of allocated
receive buffer size, kernel starts to recompute the actual memory
used per packet to avoid OOM situations.
CRs-Fixed: 2335054
Change-Id: Id5cdc383fea1e7759e7419c40639045b6711e15d
Signed-off-by:
Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Loading
Please register or sign in to comment