ipa-kernel-tests: ULSO tests, HPC based header insertion tests

Unit tests for the IPv5 ULSO feature and for HPC based
header insertion feature.

Change-Id: I312b135f33486c1171a355a69e6631764d021947
Acked-by: Eliad Ben Yishay <ebenyish@qti.qualcomm.com>
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
This commit is contained in:
Ilia Lin
2021-08-11 14:51:51 +03:00
父節點 bedfbae7e6
當前提交 15ae40cd76
共有 13 個文件被更改,包括 920 次插入60 次删除

查看文件

@@ -31,7 +31,15 @@
#define HEADER_INSERTION_H_
#include <stdint.h>
#include <string>
#include <iostream>
#include "linux/msm_ipa.h"
#include "ipa_test_module.h"
#include "Constants.h"
using std::string;
using std::cout;
using std::endl;
class HeaderInsertion
{
@@ -40,8 +48,11 @@ private:
public:
bool AddHeader(struct ipa_ioc_add_hdr *pHeaderTable);
bool addHeaderHpc(const string& name, uint8_t* header, const size_t headerLen, bool isPartial, enum ipa_client_type ipaClient);
bool DeleteHeader(struct ipa_ioc_del_hdr *pHeaderTable);
bool DeleteHeader(const string& name);
bool GetHeaderHandle(struct ipa_ioc_get_hdr *pHeaderStruct);
int GetHeaderHandle(const string& name);
bool CopyHeader(struct ipa_ioc_copy_hdr *pCopyHeaderStruct);
// Processing context