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

Commit 71966e05 authored by Ghanim Fodi's avatar Ghanim Fodi
Browse files

msm: ipa3: Disable checksum offload on LAN PROD pipe



There is no valid use case for IP packet checksum
offload on IPA LAN Producer (Client Consumer) pipe.
This change disables this unused capability.

CRs-Fixed: 2298057
Change-Id: I789c1ba6255651ad0fdce974c8b819e09aee2da4
Signed-off-by: default avatarGhanim Fodi <gfodi@codeaurora.org>
parent 90d7baa9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3240,7 +3240,7 @@ static int ipa3_setup_apps_pipes(void)
	sys_in.ipa_ep_cfg.hdr_ext.hdr_payload_len_inc_padding = false;
	sys_in.ipa_ep_cfg.hdr_ext.hdr_total_len_or_pad_offset = 0;
	sys_in.ipa_ep_cfg.hdr_ext.hdr_pad_to_alignment = 2;
	sys_in.ipa_ep_cfg.cfg.cs_offload_en = IPA_ENABLE_CS_OFFLOAD_DL;
	sys_in.ipa_ep_cfg.cfg.cs_offload_en = IPA_DISABLE_CS_OFFLOAD;

	/**
	 * ipa_lan_rx_cb() intended to notify the source EP about packet
+2 −5
Original line number Diff line number Diff line
@@ -60,7 +60,6 @@

#define IPA_ODU_RX_BUFF_SZ 2048
#define IPA_ODU_RX_POOL_SZ 64
#define IPA_SIZE_DL_CSUM_META_TRAILER 8

#define IPA_GSI_MAX_CH_LOW_WEIGHT 15
#define IPA_GSI_EVT_RING_INT_MODT (16) /* 0.5ms under 32KHz clock */
@@ -2278,8 +2277,7 @@ static int ipa3_lan_rx_pyld_hdlr(struct sk_buff *skb,
					return rc;
				}
				memcpy(&comp, skb->data, sizeof(comp));
				skb_pull(skb, sizeof(comp) +
						IPA_SIZE_DL_CSUM_META_TRAILER);
				skb_pull(skb, sizeof(comp));
				complete(&comp->comp);
				if (atomic_dec_return(&comp->cnt) == 0)
					kfree(comp);
@@ -2325,8 +2323,7 @@ static int ipa3_lan_rx_pyld_hdlr(struct sk_buff *skb,
			pad_len_byte = ((status.pkt_len + 3) & ~3) -
					status.pkt_len;

			len = status.pkt_len + pad_len_byte +
				IPA_SIZE_DL_CSUM_META_TRAILER;
			len = status.pkt_len + pad_len_byte;
			IPADBG_LOW("pad %d pkt_len %d len %d\n", pad_len_byte,
					status.pkt_len, len);