Shortcut-fe : Removing headroom expansion for end-end WLAN use case
Removed skb headroom expansion for WLAN which helps in
saving MIPS and improves WLAN tput.
Change-Id: I8d531ef5cf654615b707174337cf1be07828a0d8
diff --git a/shortcut-fe/sfe_ipv4.c b/shortcut-fe/sfe_ipv4.c
old mode 100755
new mode 100644
index 55a6cda..d83360a
--- a/shortcut-fe/sfe_ipv4.c
+++ b/shortcut-fe/sfe_ipv4.c
@@ -26,7 +26,7 @@
#include "sfe.h"
#include "sfe_cm.h"
#define PKT_THRESHOLD 10
-#define TIMEOUT 10
+#define TIMEOUT 100
struct sfe_wlan_aggr_params aggr_params[MAX_WLAN_INDEX];
@@ -2836,8 +2836,8 @@
reply_cm->do_aggr = false;
reply_cm->index = SFE_WLAN_LINK_INDEX_NONE;
/* For LAN-LAN communication make sure enough headroom is available. */
- original_cm->expand_head = true;
- reply_cm->expand_head = true;
+ original_cm->expand_head = false;
+ reply_cm->expand_head = false;
}
else if ((strncmp(dest_dev->name, WLAN_INTF2, WLAN_INTF_LEN) == 0 ))
{
@@ -2846,8 +2846,8 @@
reply_cm->do_aggr = false;
reply_cm->index = SFE_WLAN_LINK_INDEX_NONE;
/* For LAN-LAN communication make sure enough headroom is available. */
- original_cm->expand_head = true;
- reply_cm->expand_head = true;
+ original_cm->expand_head = false;
+ reply_cm->expand_head = false;
}
else if ((strncmp(dest_dev->name, ECM_INTF, ECM_INTF_LEN) == 0 ))
{
diff --git a/shortcut-fe/sfe_ipv6.c b/shortcut-fe/sfe_ipv6.c
old mode 100755
new mode 100644
index 4afda6b..670211e
--- a/shortcut-fe/sfe_ipv6.c
+++ b/shortcut-fe/sfe_ipv6.c
@@ -27,7 +27,7 @@
#include "sfe_cm.h"
#define PKT_THRESHOLD 10
-#define TIMEOUT 10
+#define TIMEOUT 100
struct sfe_wlan_aggr_params aggr_params[MAX_WLAN_INDEX];
@@ -2873,8 +2873,8 @@
reply_cm->do_aggr = false;
reply_cm->index = SFE_WLAN_LINK_INDEX_NONE;
/* For LAN-LAN communication make sure enough headroom is available. */
- original_cm->expand_head = true;
- reply_cm->expand_head = true;
+ original_cm->expand_head = false;
+ reply_cm->expand_head = false;
}
else if ((strncmp(dest_dev->name, WLAN_INTF2, WLAN_INTF_LEN) == 0 ))
{
@@ -2883,8 +2883,8 @@
reply_cm->do_aggr = false;
reply_cm->index = SFE_WLAN_LINK_INDEX_NONE;
/* For LAN-LAN communication make sure enough headroom is available. */
- original_cm->expand_head = true;
- reply_cm->expand_head = true;
+ original_cm->expand_head = false;
+ reply_cm->expand_head = false;
}
else if ((strncmp(dest_dev->name, ECM_INTF, ECM_INTF_LEN) == 0 ))
{