ipacm: Set buffer size

Allocate 2 pages for tetherOffload in ipacm.

Change-Id: I95121a90e5974829c84aaa4ccaebc698062879e0
diff --git a/hal/inc/HAL.h b/hal/inc/HAL.h
index 622a67e..894438f 100644
--- a/hal/inc/HAL.h
+++ b/hal/inc/HAL.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are
@@ -64,6 +64,7 @@
 
 using ::android::hardware::tetheroffload::control::V1_0::ITetheringOffloadCallback;
 
+#define KERNEL_PAGE 4096
 
 class HAL : public IOffloadControl, IOffloadConfig {
 public:
diff --git a/hal/src/HAL.cpp b/hal/src/HAL.cpp
index d72d274..3f1a41f 100644
--- a/hal/src/HAL.cpp
+++ b/hal/src/HAL.cpp
@@ -63,6 +63,8 @@
 
 /* ------------------------------ PUBLIC ------------------------------------ */
 HAL* HAL::makeIPAHAL(int version, IOffloadManager* mgr) {
+    android::hardware::ProcessState::initWithMmapSize((size_t)(2 * KERNEL_PAGE));
+
     if (DBG)
         ALOGI("makeIPAHAL(%d, %s)", version,
                 (mgr != nullptr) ? "provided" : "null");