diff options
| author | Tyler Wear <twear@codeaurora.org> | 2018-07-30 15:48:57 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-07-31 10:43:16 -0700 |
| commit | f8697f068acbf4110da2e0846ecb8012eb6fc860 (patch) | |
| tree | 11721c29cb072586d7174936520722b1a13f3175 | |
| parent | 7e4430b0fe9ea06397629f2e8b8ecd10e77c0556 (diff) | |
ipacm: Set buffer size
Allocate 2 pages for tetherOffload in ipacm.
Change-Id: I95121a90e5974829c84aaa4ccaebc698062879e0
| -rw-r--r-- | hal/inc/HAL.h | 3 | ||||
| -rw-r--r-- | hal/src/HAL.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
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::IOffloadControl; 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 @@ using ::std::vector; /* ------------------------------ 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"); |
