summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-07ipacm: Start ipacm after post-fs-dataAshok Vuyyuru
We may run into issues if we start the ipacm in post-fs due data folder was not mounted. Adding changes to start ipacm in post-fs-data. Change-Id: I28e003a8630d56efb198dda0144434da3dcfba77
2021-07-02ipacm: Add checks to prevent installing duplicate MHI exception rulesMichael Adisumarta
Check the MHI exception rule handles before installing the rules. If they are nonzero, they they should be deleted first before installing again. Change-Id: I59ad4381ed3424677467efa094ecce61219d69e6
2021-06-29data-ipa-cfg-mgr: Disable ipacm for msmnile_auRaghavendar rao l
Disable ipacm for msmnile_au target. Change-Id: I55101d9812fdfe0c4ceba6ab39070e58e4eea29b Signed-off-by: Raghavendar rao l<rlomte@codeaurora.org>
2021-06-14ipacm: Enable ipacm for monaco LOW Level RAM targetPraveen Kurapati
Changes done to enable ipacm for monaco Low Level RAM target. Change-Id: Id62eea7bfa929c027ff5cf7afbe6d00fb54f5afd
2021-05-22ipacm: Adding changes to use right check while checking version supportAshok Vuyyuru
Using defined flag support removed in latest branch. So adding changes to use right check when using the version check. Change-Id: Ia832ce763156e07fc5475e4de4d11522b2fe732c
2021-04-26Merge "ipacm: Adding changes to disable Eth Bridging Support"qctecmdr
2021-04-16ipacm: Adding changes to disable Eth Bridging SupportAshok Vuyyuru
In Yupik target it won't support ETH Bridging commands So disabling this feature. Change-Id: I32fc56718b92927dc18eb2d35388a46a228507b0
2021-04-01Merge "hal: FR59823: Remove references to libhwbinder & libhidltransport"qctecmdr
2021-04-01Merge "data-ipa-cfg-mgr: ipacm: Avoid multiple updates to tether client count"qctecmdr
2021-04-01hal: FR59823: Remove references to libhwbinder & libhidltransportSauvik Saha
Remove libhwbinder & libhidltransport references Change-Id: Ife1f1d572f1386e63ca1b9559f218e2689017ca3
2021-03-25ipacm: Add correct ihl_offset eq bitmap on MTU rules HW < IPA3.0Michael Adisumarta
Change the MTU rule to use the correct equation bitmap to specify ihl_offset_range16 on IPA version older than 3.0 Change-Id: I615534cf76d673ef929ca415b2b905d5119100f8
2021-03-25data-ipa-cfg-mgr: ipacm: Avoid multiple updates to tether client countAkshay Pandit
Avoid incrementing number of tethered clients twice when xlat is enabled. For WLAN if wan is up prior to DOWNSTREAM_ADD, number of tethered clients is incremented twice. Due to current andorid limitation, andorid won't support 2nd tethered interface. Hence, handle_uplink_filter_rule is not processed due to incorrect counter. Change-Id: I5419434158248139cd936e3873506f7ae706f231
2021-01-21Merge "ipacm: Fix to add dummy NAT entries for tunneled connections"qctecmdr
2020-12-22ipacm: make changes to store offload stateChaitanya Pratapa
Make changes to store offload state in a file. Change-Id: I5cbeacd2849bcdac043941d9bd491eaa62364fbc
2020-12-10ipacm: add null pointer checks in LanToLan instanceChaitanya Pratapa
Make changes to add null pointer checks in LanToLan instance to avoid any potential ipacm issues. Change-Id: I7331bf3e9b2d777872b6dfc03fa811d2a2925d8d
2020-12-09Merge "IPACM: fix the MHI icmpv6 exception rule"qctecmdr
2020-12-08ipacm: add stringify for coalesce and mtu eventsMichael Adisumarta
Add stringify for these new events so CMD_queue will print the right events for ipacm logs. Change-Id: I5061b328bbf5f0af47b96450b501102f92701c46 Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-12-08IPACM: fix the MHI icmpv6 exception ruleMichael Adisumarta
Clean the icmp v6 rule when backhaul type is ipv6. Change-Id: I5b158f5cbfb6846fc21a9556462c23a0d0f7b2d2
2020-11-06Merge "ipacm: support the mac renew with same IPv4"qctecmdr
2020-11-04ipacm: support the mac renew with same IPv4Michael Adisumarta
Add the support on IPACM to clean up old header routing rules associated with old mac after new_neighbor comign from kernel and re-construct header/routing rules for WIFI STA scenario. Change-Id: I8fa08dedbeb3127d8974529ecb82dc7c0ea0d54a
2020-11-04ipacm: fix the rt rule blowup issueSkylar Chang
For backhaul keeping down and up, seeing v4/v6 routing rules are not cleam up and resulted in routing tbl blow-up in ipa-hw. Made the fix to clean up routing rules accordingly. Change-Id: Iadbb0841d7f1d0eb9944e029b79a04cb4503a496
2020-10-30ipacm: add dynamic support for IPA new MTU eventsMichael Adisumarta
Handle new MTU events to replace modem PDN MTU for WANv4/v6 and replace the MTU rules if they are already installed. Change-Id: I06c16db2300ccd572a99ab316d413fcbf9197986 Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-10-26ipacm: Fix to add dummy NAT entries for tunneled connectionsChaitanya Pratapa
When tunneling is enabled from the device, same NAT entry will be translate from Public to tunneled IP and then to Private IP. In case we try to add the entry to HW, HW ends up translating it to Private IP and connection fails. Make change to add dummy NAT entries for tunneled connections. Change-Id: I340189e2a0db71dd04316a704116e045d6622063
2020-10-12ipacm: disable IPACM on msm8937 targetPooja Kumari
Disable ipacm on msm8937 target as IPA hw is not present. Change-Id: I2477f9b976798a9c91e37e14e122f0e411546b8a
2020-10-08ipacm: increment num_tethered_client properly in case of XLATPooja Kumari
Currently in case of XLAT if ADD_DOWNSTREAM event comes before XLAT_CONNECT event then num_offload_v4_tethered_iface is not incremented and it will have incorrect value. Increment num_offload_v4_tethered_iface var if XLAT comes after downstream is up. Change-Id: I79814a526b1112d7004fa1959a519475c02fe834
2020-10-02ipacm: add mechanism to cache ct eventsChaitanya Pratapa
1) Current logic is to get the conntrack dump first time when tethering is enabled. 2) Once we have the conntrack handles, add mechanism to cache CT events when upstream is not set. 3) Also make changes to reset the socket receive timeout to 0 so that nfct_catch doesn't return EAGAIN. And add check to retry when we receive EILSEQ. Change-Id: I37877c19f11abd3fdb9f7f6c96933a592e6a1490
2020-09-18Merge "ipacm: Fix MTU rule modify and add"qctecmdr
2020-09-17ipacm: Print flt rules that fail mdfy_flt_ruleMichael Adisumarta
Move the individual flt rule status check outside the IOCTl fail check to seperate the rules that failed when IPACM sends more than one rule. Change-Id: I4a2c51374bbedced687e23041104a1bc33627c55 Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-09-17ipacm: Fix MTU rule modify and addMichael Adisumarta
Reset the rt table handle every time we modify a new rule. Add brackets to if else conditions that were always getting hit. Change-Id: Iebca2ee3cdf4713285e6bedc151e428fd99d2f5c Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-09-16Merge "ipacm: Fix reading the conntrack dump"qctecmdr
2020-09-10ipacm: Fix reading the conntrack dumpChaitanya Pratapa
Framework uses UDP fd to query for the conntrack dump. Make changes to use UDP fd to read the conntrack dump. Also read using the fd provided from framework and not using dup fd. Change-Id: Iaeecfc0c4763325314d8f763797bd1fc7124e4db
2020-09-10ipacm: Enable ipacm for bengal go LOW Level RAM targetArmaan Siddiqui
Changes done to enable ipacm for bengal go Low Level RAM target. Change-Id: I987b94791eeb1ff94d08221a0ceeec26c55e69e4
2020-08-26ipacm: delete WAN iface if rx tx property is NULLPooja Kumari
Delete Wan iface instance if rx tx property of the interface is NULL. Change-Id: Ib0ab2619fd5ae3596558007ab2d44a601fa73093
2020-08-25Merge "ipacm: using same-process HAL"qctecmdr
2020-08-24ipacm: using same-process HALPooja Kumari
Create same process HAL to avoid double registrations Change-Id: I47fb46b727d0c66006f65a06586c11e4c42c3ea9
2020-08-09ipacm: Fix to ignore ENOMSG error from nfct_catchChaitanya Pratapa
ENOMSG is returned when the conntrack message received has a non zero pid value. Idea is to handle only messages coming from Kernel which has 0 pid value. Change-Id: Ib1934c82595b980016e98646f34797f9001c51ab
2020-07-02ipacm: keep track of flt rule handles that are in useMichael Adisumarta
Initialize an array to keep track which filtering handles are in use to prevent a wraparound issue where we have 2 rules with the same ID leading to a problem with rule deletion. Change-Id: I940c043f486860a1a694ad3b3a183cae44d1057e Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-06-25Merge "ipacm: V6 filter count mismatch causing udp failures"qctecmdr
2020-06-23ipacm: V6 filter count mismatch causing udp failuresSivakanth Reddy Vaka
Invalid filter count being passed to modem to install DL filter rules which is creating dummy rules in filter table and udp packets are not matching to any filters Change-Id: I0f2a0dab4b1afea62eda63b4518e6592ff8be53b
2020-06-24ipacm: Remove IPV6 TCP SYN/FIN/RST rulesArmaan Siddiqui
Remove IPV6 TCP SYN/FIN/RST default filter rule to free the memory as we already add default rt-rule Change-Id: Ief0d0eedffce2b60162e6f2b63ba44c3c7e4817c
2020-06-18ipacm : Add change to avoid null ptr dereference issuesSivakanth vaka
Add null ptr check to avoid dereferencing issues. Change-Id: I0ead7ae6f3ecb684383f26580afc9e96f2b4b131
2020-06-09Merge "ipacm: provide mechanism to provide upstream interface name"qctecmdr
2020-06-02ipacm : Add change to update NAT entries for embedded/tethered connectionsArmaan Siddiqui
Add change to read and process conntrack entries only when WAN is up and add NAT entries accordingly when switch to tethered connections. Change-Id: Iaa31a44684082802c03402cdd1faa393a7bc85f8
2020-05-21ipacm: provide mechanism to provide upstream interface nameChaitanya Pratapa
Make changes to provide upstream interface name to netmgr whenever tethering is enabled. Change-Id: Id0cb3d0e34c1b324785da12f49c4f8502adabc6b
2020-05-10ipacm: Fix resetting NAT ifaces for WLAN interfaceChaitanya Pratapa
Starting from HST and HSP, WLAN doesn't restart when Q6 is restarting. So there is no need to resetting the NAT ifaces for Q6 SSR. Make a change to skip posting IPA_SSR_NOTICE to WLAN iface. Change-Id: I32fc1528d67912a7e90d716cc51378c64d50ba70
2020-05-01Merge "ipacm: add support for diag logging"qctecmdr
2020-04-29ipacm: add support for diag loggingChaitanya Pratapa
Add changes to enable DEBUG flag to enable ipacm-diag logging. Change-Id: I15e75c41a8a3096c41167c0194bbbb39e861056f
2020-04-06ipacm: Fix installing ipv6 coalescing rulesChaitanya Pratapa
Make changes to ensure index is not going out of bounds when installing ipv6 coalescing rules. Change-Id: Ib35964152e71dd129431e5eece9629b69defe86d
2020-03-02ipacm: convert Android.mk files to Android.bpChaitanya Pratapa
As part of soong modernisation, requirement is to use Android.bp framework instead of Android.mk. Make changes to convert Android.mk to Android.bp files. Change-Id: I8f2d40159360afd0631c0c50cb823455a45396ef
2020-02-13ipacm: Add MTU rule for every new private subnet or prefixMichael Adisumarta
Always add IPv6 frag rule on LAN pipes. Add an MTU rule based on new PDNs based on their mtu. If packets are bigger than the mtu of the new PDNS, then IPA will not offload the packets. Change-Id: I2751cc733a10a3fc79e20348644d42630fa6762c