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

Skip to content
Commit 8ef929c9 authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan
Browse files

drivers: rmnet_shs: Flow limit, WQ prio/bps tweak



Previously a flow node would be allocated per new flow seen by
driver. This leaves the possibility that if many ports are
probed in a short window that would cause memory to be allocated
for each packet. This could be exploited to cause low memory
errors until the flows are cleaned up.

We can mitigate this by setting a limit to the number of active flows
that we actively manage before we start ignoring new flows.

During Instant rate switching a whole core as loaded and moves
any flow that lands on that core to gold. This marking duration
is being reduced from 10 wq ticks to 3.

Driver was incorrectly doubling bps causing sysfs and logs to be
inaccurate. This fixes that so bps is counted correctly.

CRs-Fixed: 2406711
Change-Id: I4a653e07e823884e957cb383430cf94c07c3d3f4
Acked-by: default avatarRaul Martinez <mraul@qti.qualcomm.com>
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
parent f5c70f1c
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