[qca-nss-ecm] Add DSCP classifier
Remove existing DSCP mark code from front end files.
Add DSCP mark code as a classifier in its own right.
Change-Id: Ifc9375aa9025bebdc122c33ded8267d2e8b035b9
Signed-off-by: Gareth Williams <garethw@codeaurora.org>
diff --git a/ecm_tracker.c b/ecm_tracker.c
index 47cc1dc..02a415b 100644
--- a/ecm_tracker.c
+++ b/ecm_tracker.c
@@ -444,6 +444,11 @@
ip_hdr->fragmented = (ntohs(v4_hdr->frag_off) & 0x3fff)? true : false;
/*
+ * DS field
+ */
+ ip_hdr->ds = ipv4_get_dsfield(v4_hdr);
+
+ /*
* Get the protocol and where the header info will be stored
*/
protocol = v4_hdr->protocol;
@@ -501,6 +506,11 @@
}
/*
+ * DS field
+ */
+ ip_hdr->ds = ipv6_get_dsfield(v6_hdr);
+
+ /*
* Process headers until we run out of space, error, or we get the no next header marker for v6 (protocol 59).
*/
offset = 40;