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

Commit 3c607a12 authored by Amir Levy's avatar Amir Levy Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa3: remove routing/filtering support



Disable routing\filtering in order to add ipa_v3 support later.
Current implementation is not compatible yet with ipa_v3,
therefore the functionality is disabled.

Change-Id: If1ca1a1e4748a331f6d193728dbe3581e454f775
Signed-off-by: default avatarAmir Levy <alevy@codeaurora.org>
parent f056a82a
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -1071,6 +1071,8 @@ int ipa3_add_flt_rule(struct ipa_ioc_add_flt_rule *rules)
	int i;
	int result;

	return 0;

	if (rules == NULL || rules->num_rules == 0 ||
			rules->ip >= IPA_IP_MAX) {
		IPAERR("bad parm\n");
@@ -1124,6 +1126,8 @@ int ipa3_del_flt_rule(struct ipa_ioc_del_flt_rule *hdls)
	int i;
	int result;

	return 0;

	if (hdls == NULL || hdls->num_hdls == 0 || hdls->ip >= IPA_IP_MAX) {
		IPAERR("bad parm\n");
		return -EINVAL;
@@ -1165,6 +1169,8 @@ int ipa3_mdfy_flt_rule(struct ipa_ioc_mdfy_flt_rule *hdls)
	int i;
	int result;

	return 0;

	if (hdls == NULL || hdls->num_rules == 0 || hdls->ip >= IPA_IP_MAX) {
		IPAERR("bad parm\n");
		return -EINVAL;
@@ -1207,6 +1213,8 @@ int ipa3_commit_flt(enum ipa_ip_type ip)
{
	int result;

	return 0;

	if (ip >= IPA_IP_MAX) {
		IPAERR("bad parm\n");
		return -EINVAL;
@@ -1244,6 +1252,8 @@ int ipa3_reset_flt(enum ipa_ip_type ip)
	int i;
	int id;

	return 0;

	if (ip >= IPA_IP_MAX) {
		IPAERR("bad parm\n");
		return -EINVAL;
@@ -1314,6 +1324,8 @@ void ipa3_install_dflt_flt_rules(u32 ipa_ep_idx)
	struct ipa3_ep_context *ep = &ipa3_ctx->ep[ipa_ep_idx];
	struct ipa_flt_rule rule;

	return;

	memset(&rule, 0, sizeof(rule));

	mutex_lock(&ipa3_ctx->lock);
@@ -1337,6 +1349,8 @@ void ipa3_delete_dflt_flt_rules(u32 ipa_ep_idx)
{
	struct ipa3_ep_context *ep = &ipa3_ctx->ep[ipa_ep_idx];

	return;

	mutex_lock(&ipa3_ctx->lock);
	if (ep->dflt_flt4_rule_hdl) {
		__ipa_del_flt_rule(ep->dflt_flt4_rule_hdl);
+14 −0
Original line number Diff line number Diff line
@@ -877,6 +877,8 @@ int ipa3_add_rt_rule(struct ipa_ioc_add_rt_rule *rules)
	int i;
	int ret;

	return 0;

	if (rules == NULL || rules->num_rules == 0 || rules->ip >= IPA_IP_MAX) {
		IPAERR("bad parm\n");
		return -EINVAL;
@@ -961,6 +963,8 @@ int ipa3_del_rt_rule(struct ipa_ioc_del_rt_rule *hdls)
	int i;
	int ret;

	return 0;

	if (hdls == NULL || hdls->num_hdls == 0 || hdls->ip >= IPA_IP_MAX) {
		IPAERR("bad parm\n");
		return -EINVAL;
@@ -1002,6 +1006,8 @@ int ipa3_commit_rt(enum ipa_ip_type ip)
{
	int ret;

	return 0;

	if (ip >= IPA_IP_MAX) {
		IPAERR("bad parm\n");
		return -EINVAL;
@@ -1047,6 +1053,8 @@ int ipa3_reset_rt(enum ipa_ip_type ip)
	u32 apps_start_idx;
	int id;

	return 0;

	if (ip >= IPA_IP_MAX) {
		IPAERR("bad parm\n");
		return -EINVAL;
@@ -1148,6 +1156,8 @@ int ipa3_get_rt_tbl(struct ipa_ioc_get_rt_tbl *lookup)
	struct ipa3_rt_tbl *entry;
	int result = -EFAULT;

	return 0;

	if (lookup == NULL || lookup->ip >= IPA_IP_MAX) {
		IPAERR("bad parm\n");
		return -EINVAL;
@@ -1184,6 +1194,8 @@ int ipa3_put_rt_tbl(u32 rt_tbl_hdl)
	enum ipa_ip_type ip = IPA_IP_MAX;
	int result;

	return 0;

	mutex_lock(&ipa3_ctx->lock);
	entry = ipa3_id_find(rt_tbl_hdl);
	if (entry == NULL) {
@@ -1276,6 +1288,8 @@ int ipa3_mdfy_rt_rule(struct ipa_ioc_mdfy_rt_rule *hdls)
	int i;
	int result;

	return 0;

	if (hdls == NULL || hdls->num_rules == 0 || hdls->ip >= IPA_IP_MAX) {
		IPAERR("bad parm\n");
		return -EINVAL;