Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3e4cd081 authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan Committed by Sean Tranchetti
Browse files

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: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
parent 09e63e25
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment