Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bedbaac1 authored by Michael Adisumarta's avatar Michael Adisumarta Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: Add aggr and hdr_ext info to DL MHIP teth pipe config



Add aggr and hdr_ext to our static pipe configuration struct
to be configured for the DL MHIP teth pipes. Update Ul pipe
config with metadata offset values. DL deaggregation is set as
bypass for now.

Change-Id: I00fd8e3e8dac4b154b5ea42c75a60eda11056c10
Signed-off-by: default avatarMichael Adisumarta <madisuma@codeaurora.org>
parent f21c36df
Loading
Loading
Loading
Loading
+21 −2
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@
#define DEFAULT_AGGR_PKT_LIMIT 0
#define TETH_AGGR_TIME_LIMIT 10000
#define TETH_AGGR_BYTE_LIMIT 24
#define TETH_AGGR_DL_BYTE_LIMIT 16
#define TRE_BUFF_SIZE 32768
#define IPA_HOLB_TMR_EN 0x1
#define IPA_HOLB_TMR_DIS 0x0
@@ -207,7 +208,21 @@ static struct ipa_ep_cfg mhip_dl_teth_ep_cfg = {
	},
	.hdr = {
		.hdr_len = 4,
	}
		.hdr_ofst_metadata_valid = 1,
		.hdr_ofst_metadata = 1,
		.hdr_ofst_pkt_size_valid = 1,
		.hdr_ofst_pkt_size = 2,
	},
	.hdr_ext = {
		.hdr_total_len_or_pad_valid = true,
		.hdr_payload_len_inc_padding = true,
	},
	.aggr = {
		.aggr_en = IPA_BYPASS_AGGR, /* temporarily disabled */
		.aggr = IPA_QCMAP,
		.aggr_byte_limit = TETH_AGGR_DL_BYTE_LIMIT,
		.aggr_time_limit = TETH_AGGR_TIME_LIMIT,
	},
};

static struct ipa_ep_cfg mhip_ul_teth_ep_cfg = {
@@ -217,6 +232,10 @@ static struct ipa_ep_cfg mhip_ul_teth_ep_cfg = {
	},
	.hdr = {
		.hdr_len = 4,
		.hdr_ofst_metadata_valid = 1,
		.hdr_ofst_metadata = 0,
		.hdr_ofst_pkt_size_valid = 1,
		.hdr_ofst_pkt_size = 2,
	},
	.hdr_ext = {
		.hdr_total_len_or_pad_valid = true,