[edma] Add support for checksum verification in edma

Change-Id: I66c92d5e40056ccfd156049375928e93a9ee5a2a
Signed-off-by: Rakesh Nair <ranair@codeaurora.org>
diff --git a/edma.c b/edma.c
index 0d93ac2..4e83c2e 100644
--- a/edma.c
+++ b/edma.c
@@ -378,7 +378,12 @@
 	if (rd->rrd6 & EDMA_RRD_CSUM_FAIL_MASK)
 		return;
 
-	skb->ip_summed = CHECKSUM_UNNECESSARY;
+	/*
+	 * We disable checksum verification only if
+	 * we have a TCP/UDP packet
+	 */
+	if (rd->rrd7 & (EDMA_RRD_L4OFFSET_MASK << EDMA_RRD_L4OFFSET_SHIFT))
+		skb->ip_summed = CHECKSUM_UNNECESSARY;
 }
 
 /* edma_clean_rfd()