msm: ipa: support configuring UL checksum offload

Adding support for configuring UL checksum offload on the
AP->IPA pipe for embedded data path.
This is needed in order for the IPA HW to compute TCP/UDP
checksum on packets in the embedded UL data path.

CRs-fixed: 731693
Change-Id: Iade7e06a613d993f0b4e652d794a9e0727032c30
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
This commit is contained in:
Sivan Reinstein 2014-09-03 15:06:50 +03:00 committed by Gerrit - the friendly Code Review server
parent a9ada1a5a1
commit 64ba607520
1 changed files with 7 additions and 2 deletions

View File

@ -1270,10 +1270,15 @@ static int ipa_wwan_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
case RMNET_IOCTL_SET_EGRESS_DATA_FORMAT:
IPAWANDBG("get RMNET_IOCTL_SET_EGRESS_DATA_FORMAT\n");
if ((extend_ioctl_data.u.data) &
RMNET_IOCTL_EGRESS_FORMAT_CHECKSUM)
RMNET_IOCTL_EGRESS_FORMAT_CHECKSUM) {
apps_to_ipa_ep_cfg.ipa_ep_cfg.hdr.hdr_len = 8;
else
apps_to_ipa_ep_cfg.ipa_ep_cfg.cfg.
cs_offload_en = 1;
apps_to_ipa_ep_cfg.ipa_ep_cfg.cfg.
cs_metadata_hdr_offset = 1;
} else {
apps_to_ipa_ep_cfg.ipa_ep_cfg.hdr.hdr_len = 4;
}
if ((extend_ioctl_data.u.data) &
RMNET_IOCTL_EGRESS_FORMAT_AGGREGATION)
apps_to_ipa_ep_cfg.ipa_ep_cfg.aggr.aggr_en =