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

Commit d8ae7acb authored by Michael Adisumarta's avatar Michael Adisumarta
Browse files

msm: ipa3: add qmi support for cleaning MHIP rules and frags



Add QMI IDL changes for supporting cleaning DL MHIP filtering
rules and also adds an option to use legacy path instead
of MHIP path for DL frag packets which are not supported.

Change-Id: Ic5641012f1d8a8365f51eef27426ad4d008d9892
Signed-off-by: default avatarMichael Adisumarta <madisuma@codeaurora.org>
parent db92782e
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
@@ -4950,6 +4950,26 @@ struct qmi_elem_info ipa_add_offload_connection_req_msg_v01_ei[] = {
			struct ipa_add_offload_connection_req_msg_v01,
			embedded_call_mux_id),
	},
	{
		.data_type      = QMI_OPT_FLAG,
		.elem_len       = 1,
		.elem_size      = sizeof(u8),
		.array_type       = NO_ARRAY,
		.tlv_type       = 0x15,
		.offset         = offsetof(
			struct ipa_add_offload_connection_req_msg_v01,
			default_mhi_path_valid),
	},
	{
		.data_type      = QMI_UNSIGNED_1_BYTE,
		.elem_len       = 1,
		.elem_size      = sizeof(u8),
		.array_type       = NO_ARRAY,
		.tlv_type       = 0x15,
		.offset         = offsetof(
			struct ipa_add_offload_connection_req_msg_v01,
			default_mhi_path),
	},
	{
		.data_type      = QMI_EOTI,
		.array_type       = NO_ARRAY,
@@ -5043,6 +5063,26 @@ struct qmi_elem_info ipa_remove_offload_connection_req_msg_v01_ei[] = {
		.ei_array      =
			ipa3_filter_rule_identifier_to_handle_map_data_v01_ei,
	},
	{
		.data_type      = QMI_OPT_FLAG,
		.elem_len       = 1,
		.elem_size      = sizeof(u8),
		.array_type       = NO_ARRAY,
		.tlv_type       = 0x11,
		.offset         = offsetof(
			struct ipa_remove_offload_connection_req_msg_v01,
			clean_all_rules_valid),
	},
	{
		.data_type      = QMI_UNSIGNED_1_BYTE,
		.elem_len       = 1,
		.elem_size      = sizeof(u8),
		.array_type       = NO_ARRAY,
		.tlv_type       = 0x11,
		.offset         = offsetof(
			struct ipa_remove_offload_connection_req_msg_v01,
			clean_all_rules),
	},
	{
		.data_type      = QMI_EOTI,
		.array_type       = NO_ARRAY,
+15 −2
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@
 * Indicates presence of newly added member to support HW stats.
 */
#define IPA_QMI_SUPPORTS_STATS
#define IPA_QMI_SUPPORT_MHI_DEFAULT

#define IPA_INT_MAX	((int)(~0U>>1))
#define IPA_INT_MIN	(-IPA_INT_MAX - 1)
@@ -2598,8 +2599,14 @@ struct ipa_add_offload_connection_req_msg_v01 {
	/* Must be set to true if embedded_call_mux_id is being passed */
	uint32_t embedded_call_mux_id;
	/* Mux ID for the new embedded call */
	/* Optional */
	/*  Default MHI path */
	uint8_t default_mhi_path_valid;
	/* Must be set to true if default_mhi_path is being passed */
	uint8_t default_mhi_path;
	/* Default MHI path */
}; /* Message */
#define IPA_ADD_OFFLOAD_CONNECTION_REQ_MSG_V01_MAX_MSG_LEN 11357
#define IPA_ADD_OFFLOAD_CONNECTION_REQ_MSG_V01_MAX_MSG_LEN 11361

struct ipa_add_offload_connection_resp_msg_v01 {
	/*  Result Code */
@@ -2622,8 +2629,14 @@ struct ipa_remove_offload_connection_req_msg_v01 {
	uint32_t filter_handle_list_len;
	struct ipa_filter_rule_identifier_to_handle_map_v01
		filter_handle_list[QMI_IPA_MAX_FILTERS_V01];
	/* Optional */
	/*  Clean All rules */
	uint8_t clean_all_rules_valid;
	/* Must be set to true if clean_all_rules is being passed */
	uint8_t clean_all_rules;
	/* Clean All rules */
}; /* Message */
#define IPA_REMOVE_OFFLOAD_CONNECTION_REQ_MSG_V01_MAX_MSG_LEN 516
#define IPA_REMOVE_OFFLOAD_CONNECTION_REQ_MSG_V01_MAX_MSG_LEN 520

struct ipa_remove_offload_connection_resp_msg_v01 {
	/* optional */