Skip to content

Commit

Permalink
crypto: caam/qi2 - Increase napi budget to process more caam responses
Browse files Browse the repository at this point in the history
While running ipsec processing for traffic through multiple network
interfaces, it is observed that caam driver gets less time to poll
responses from caam block compared to ethernet driver. This is because
ethernet driver has as many napi instances per cpu as the number of
ethernet interfaces in system. Therefore, caam driver's napi executes
lesser than the ethernet driver's napi instances. This results in
situation that we end up submitting more requests to caam (which it is
able to finish off quite fast), but don't dequeue the responses at same
rate. This makes caam response FQs bloat with large number of frames. In
some situations, it makes kernel crash due to out-of-memory. To prevent
it We increase the napi budget of dpseci driver to a big value so that
caam driver is able to drain its response queues at enough rate.

Signed-off-by: Vakul Garg <[email protected]>
Reviewed-by: Horia Geantă <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
nxa22042 authored and herbertx committed Jul 27, 2019
1 parent f2f1d75 commit 6ed0109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/caam/caamalg_qi2.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#define DPAA2_CAAM_STORE_SIZE 16
/* NAPI weight *must* be a multiple of the store size. */
#define DPAA2_CAAM_NAPI_WEIGHT 64
#define DPAA2_CAAM_NAPI_WEIGHT 512

/* The congestion entrance threshold was chosen so that on LS2088
* we support the maximum throughput for the available memory
Expand Down

0 comments on commit 6ed0109

Please sign in to comment.