Add basic IPv4 and Ipv6 test cases for TTL update in HW
based on filtering and routing rules. Also, consists of
several minor fixes during bring up.
Change-Id: Ib363434b20ad2fc8cf29c78bb5db667959f2dbfd
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
Add IOCTL support to configure route table index in case of
NAT suppression and Conntrack suppression being enabled.
Change-Id: Id2ba72c71e8c541ea54488078f30a9103c0d3eba
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
* Early stage target does not support every std library operations
* changed vector insert before begin to push_back to eliminate illegal
memory access
* Added virtual destructor PacketModifier
Change-Id: I34041e8b81547d474c050425beac8ae8a78a4799
Signed-off-by: Eliad Ben Yishay <quic_ebenyish@quicinc.com>
Make changes to use __GFP_RETRY_MAYFAIL to avoid triggering
OOM Killer when allocating pages for temp allocations.
Change-Id: I2f5843c9a1c0a9f41e215c8241713f4670e4b35c
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
Correcting the sequence to dynamically change the HOLB timer.
Change-Id: Iefcac36b93f3aee037628e3b0ec81aa5f5636caa
Acked-by: Suhas mallesh <smallesh@codeaurora.org>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Make changes to configure COAL_MASTER_CFG. Enable IPv4 ID
ignore bit by default. Give provision to configure via DT.
Change-Id: I17d4b368458417f4379d82bbfce754672b5f27aa
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
Adding changes to enhance find free pages from list,
1. When free page not available instead of keep trying
using temporary pages.
2. In tasklet search for free pages adding to head.
Change-Id: I991336167519322081faf8f82feec4e3f0d7b161
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
Test pipe configuration correctness for IPA_5_5
Change-Id: I6f6b05cb45a830e35eb97138bbe0046884ac5367
Signed-off-by: Michael Adisumarta <quic_madisuma@codeaurora.org>
There are new IPA 5.5 hardware coalescing enhancements that relate to
WAN Coalescing. They are attended to herein.
Change-Id: I54f2655458d90d3b6111a970329b6b56016776f4
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
Change the offsets for the collection of the packets
context so when crash occur the dump will have the proper
information in the packet context structures.
Signed-off-by: Dor Deri <quic_dderi@quicinc.com>
Add offset for flavor 9 ipahal register object as per HPG.
Change-Id: I37b92e5d4a573b3875ad00bcf02dd389e3a320e8
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
Add support for IPA_5.5 in kernel tests.
Change-Id: I448936055c84d6e38f886becfba372627fb37147
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
During NAT table Initialization parameter pass from HLOS, if max/zero
table entries passed it was leading to out of bound read. Adding checks
to validate the table entries before passing to NAT table parameter.
Signed-off-by: Himansu Nayak <quic_himansu@quicinc.com>
Updated change to perform ipa pre initialization even before
attempting to load the ipa firmware along with pdev node
initialization for non smmu target.
Change-Id: I04421c1f11f0c7b4d7a0f30135741946b157aa2c
Signed-off-by: Raghavendar rao l <quic_rlomte@quicinc.com>
Add new enums for invalid pipe exception pkt and HDRI
exception. Handle the case where these exceptions
are received.
Change-Id: I920e4f1c121850c535c471f647fd5842ec25ba6e
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
Print a failure if IPA tries to add a header with the same name
as a header that is already present in the header list and
return that original header.
Change-Id: I3e3b91da216b9a0c383c8653ea5cd2587804329f
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
Fix pm_handle_suspend not being called for pipes 32-36.
Associate IPA_CLIENT_MHI_LOW_LAT_CONS with MHI pm client
so it will call the mhi_wakeup_cb for pm_handle_suspend.
Change-Id: I49413099c1cb4a1eb2992f1c50fde6b2afcbff2a
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
Define variable at the start of the function to follow
ISO C90 standards.
Change-Id: Ic8a0d46f0aaee122f7fdf70a5c248464a731adff
Signed-off-by: Michael Adisumarta <quic_madisuma@quicin.com>
When SSR in progress not allowing to setup ODL pipe.
Change-Id: Ied44a7bafdf90cff2f3b7619da88fe3c31d18956
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
If of_icc_get returns with error code, then invoking
icc_put in fail_bus_reg segment, warn_on() logs will be
printed, break from the loop to avoid invoking icc_put.
Signed-off-by: Cheng Zeng <quic_chenzeng@quicinc.com>
Set the ipa3_ctx->logbuf to NULL after freeing it,
IPA logging API will use the ipa3_ctx->logbuf after
freeing it, that can make crash.
Signed-off-by: Cheng Zeng <quic_chenzeng@quicinc.com>