[qca-nss-sfe] Refactoring SFE code
This refactoring contains the following areas.
1) delete fast-classifier and SFE CM.
2) combine all the files into one kernel module.
3) move the definitions in sfe_ipv4 and sfe_ipv6 to separate header files.
4) add debug header file.
5) Filename and namespace changes for sfe_drv.c and sfe_drv.h
Change-Id: I85386e03771eba489d6e319cd2bef4245b340f7f
Signed-off-by: Ratheesh Kannoth <quic_rkannoth@quicinc.com>
diff --git a/Makefile b/Makefile
index 753854a..ec00be0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,15 @@
-# Makefile for the sfe modules
+#
+# Makefile for Shortcut FE.
+#
-ccflags-y := -I$(obj) -I$(obj)/..
+obj-m += qca-nss-sfe.o
+qca-nss-sfe-objs := sfe_ipv4.o sfe.o sfe_init.o
-obj-$(simulated-driver)+= simulated-driver/
-obj-$(shortcut-fe)+=shortcut-fe/
+ifdef SFE_SUPPORT_IPV6
+qca-nss-sfe-objs += \
+ sfe_ipv6.o
+ccflags-y += -DSFE_SUPPORT_IPV6
+endif
-obj ?= .
+ccflags-y += -Werror -Wall