فهرست منبع

core: Reduce the number of rmnet pages

Since most usecases now exercise transmit offloads, reduce the amount
of pages needed for the transmit path.

CRs-Fixed: 3335137
Change-Id: I9e63fa2c062a17bb284ef9874178d10ed0382ffe
Signed-off-by: Subash Abhinov Kasiviswanathan <[email protected]>
Subash Abhinov Kasiviswanathan 2 سال پیش
والد
کامیت
0a61e684f1
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      core/rmnet_map_data.c

+ 3 - 2
core/rmnet_map_data.c

@@ -1,5 +1,5 @@
 /* Copyright (c) 2013-2021, The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 and
@@ -27,6 +27,7 @@
 #define RMNET_MAP_PKT_COPY_THRESHOLD 64
 #define RMNET_MAP_DEAGGR_SPACING  64
 #define RMNET_MAP_DEAGGR_HEADROOM (RMNET_MAP_DEAGGR_SPACING / 2)
+#define RMNET_PAGE_COUNT 384
 
 struct rmnet_map_coal_metadata {
 	void *ip_header;
@@ -1402,7 +1403,7 @@ static void rmnet_alloc_agg_pages(struct rmnet_aggregation_state *state)
 	struct rmnet_agg_page *agg_page = NULL;
 	int i = 0;
 
-	for (i = 0; i < 512; i++) {
+	for (i = 0; i < RMNET_PAGE_COUNT; i++) {
 		agg_page = __rmnet_alloc_agg_pages(state);
 
 		if (agg_page)