Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 1 | ########################################################################## |
Murat Sezgin | 6d8361e | 2015-01-21 11:32:06 -0800 | [diff] [blame] | 2 | # Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 3 | # Permission to use, copy, modify, and/or distribute this software for |
| 4 | # any purpose with or without fee is hereby granted, provided that the |
| 5 | # above copyright notice and this permission notice appear in all copies. |
| 6 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 7 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 8 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 9 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 10 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 11 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT |
| 12 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 13 | ########################################################################## |
| 14 | |
| 15 | # ################################################### |
| 16 | # Makefile for the QCA NSS ECM |
| 17 | # ################################################### |
| 18 | |
Nicolas Costa | f46c33b | 2014-05-15 10:02:00 -0500 | [diff] [blame] | 19 | obj-m += ecm.o |
| 20 | |
Hai Shalom | 81f4e20 | 2014-06-04 09:30:27 -0700 | [diff] [blame] | 21 | ecm-y := \ |
Nicolas Costa | f46c33b | 2014-05-15 10:02:00 -0500 | [diff] [blame] | 22 | ecm_tracker_udp.o \ |
| 23 | ecm_tracker_tcp.o \ |
| 24 | ecm_tracker_datagram.o \ |
| 25 | ecm_tracker.o \ |
Murat Sezgin | 3ab259d | 2015-06-11 14:15:35 -0700 | [diff] [blame] | 26 | frontends/ecm_front_end_ipv4.o \ |
| 27 | frontends/ecm_front_end_ipv6.o \ |
Murat Sezgin | 5f13849 | 2015-06-11 15:18:27 -0700 | [diff] [blame] | 28 | frontends/ecm_front_end_common.o \ |
Nicolas Costa | f46c33b | 2014-05-15 10:02:00 -0500 | [diff] [blame] | 29 | ecm_db.o \ |
| 30 | ecm_classifier_default.o \ |
Nicolas Costa | f46c33b | 2014-05-15 10:02:00 -0500 | [diff] [blame] | 31 | ecm_interface.o \ |
Nicolas Costa | f46c33b | 2014-05-15 10:02:00 -0500 | [diff] [blame] | 32 | ecm_init.o |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 33 | |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 34 | # ############################################################################# |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 35 | # Define ECM_FRONT_END_NSS_ENABLE=y in order to select |
| 36 | # nss as ECM's front end. |
| 37 | # ############################################################################# |
| 38 | ifeq ($(ECM_FRONT_END_NSS_ENABLE),) |
| 39 | ECM_FRONT_END_NSS_ENABLE=y |
| 40 | endif |
| 41 | ecm-$(ECM_FRONT_END_NSS_ENABLE) += frontends/nss/ecm_nss_ipv4.o |
| 42 | ecm-$(ECM_FRONT_END_NSS_ENABLE) += frontends/nss/ecm_nss_ported_ipv4.o |
| 43 | ecm-$(ECM_FRONT_END_NSS_ENABLE) += frontends/nss/ecm_nss_conntrack_notifier.o |
| 44 | ccflags-$(ECM_FRONT_END_NSS_ENABLE) += -DECM_FRONT_END_NSS_ENABLE |
| 45 | |
| 46 | # ############################################################################# |
| 47 | # Define ECM_FRONT_END_SFE_ENABLE=y in order to select |
| 48 | # sfe as ECM's front end. |
| 49 | # ############################################################################# |
| 50 | ifeq ($(ECM_FRONT_END_SFE_ENABLE),) |
| 51 | ECM_FRONT_END_SFE_ENABLE=y |
| 52 | endif |
| 53 | ecm-$(ECM_FRONT_END_SFE_ENABLE) += frontends/sfe/ecm_sfe_ipv4.o |
| 54 | ecm-$(ECM_FRONT_END_SFE_ENABLE) += frontends/sfe/ecm_sfe_ported_ipv4.o |
| 55 | ecm-$(ECM_FRONT_END_SFE_ENABLE) += frontends/sfe/ecm_sfe_conntrack_notifier.o |
| 56 | ccflags-$(ECM_FRONT_END_SFE_ENABLE) += -DECM_FRONT_END_SFE_ENABLE |
| 57 | |
| 58 | # ############################################################################# |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 59 | # Define ECM_INTERFACE_BOND_ENABLE=y in order to enable |
| 60 | # Bonding / Link Aggregation support. |
| 61 | # ############################################################################# |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 62 | ifeq ($(ECM_FRONT_END_NSS_ENABLE), y) |
Murat Sezgin | 2a0b243 | 2014-11-26 14:53:57 -0800 | [diff] [blame] | 63 | ifneq ($(findstring 3.4, $(KERNELVERSION)),) |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 64 | ECM_INTERFACE_BOND_ENABLE=y |
| 65 | endif |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 66 | endif |
Murat Sezgin | 8e10a7c | 2015-06-11 15:49:24 -0700 | [diff] [blame] | 67 | ecm-$(ECM_INTERFACE_BOND_ENABLE) += frontends/nss/ecm_nss_bond_notifier.o |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 68 | ccflags-$(ECM_INTERFACE_BOND_ENABLE) += -DECM_INTERFACE_BOND_ENABLE |
Hai Shalom | 81f4e20 | 2014-06-04 09:30:27 -0700 | [diff] [blame] | 69 | |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 70 | # ############################################################################# |
ratheesh kannoth | a32fdd1 | 2015-09-09 08:02:58 +0530 | [diff] [blame] | 71 | # Define ECM_INTERFACE_PPPOE_ENABLE=y in order |
| 72 | # to enable support for PPPoE acceleration. |
| 73 | # ############################################################################# |
| 74 | ECM_INTERFACE_PPPOE_ENABLE=y |
| 75 | ccflags-$(ECM_INTERFACE_PPPOE_ENABLE) += -DECM_INTERFACE_PPPOE_ENABLE |
| 76 | |
| 77 | # ############################################################################# |
| 78 | # Define ECM_INTERFACE_L2TPV2_ENABLE=y in order |
| 79 | # to enable support for l2tpv2 acceleration. |
| 80 | # ############################################################################# |
ratheesh kannoth | a32fdd1 | 2015-09-09 08:02:58 +0530 | [diff] [blame] | 81 | ECM_INTERFACE_L2TPV2_ENABLE=y |
ratheesh kannoth | a32fdd1 | 2015-09-09 08:02:58 +0530 | [diff] [blame] | 82 | ccflags-$(ECM_INTERFACE_L2TPV2_ENABLE) += -DECM_INTERFACE_L2TPV2_ENABLE |
| 83 | |
| 84 | # ############################################################################# |
| 85 | # if pppoe, l2tpv2 acceleration is enabled, ppp should |
| 86 | # be enabled automatically |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 87 | # ############################################################################# |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 88 | ECM_INTERFACE_PPP_ENABLE=y |
ratheesh kannoth | a32fdd1 | 2015-09-09 08:02:58 +0530 | [diff] [blame] | 89 | ifeq "$(ECM_INTERFACE_PPPOE_ENABLE)" "n" |
| 90 | ifeq "$(ECM_INTERFACE_L2TPV2_ENABLE)" "n" |
| 91 | ECM_INTERFACE_PPP_ENABLE=n |
| 92 | endif |
| 93 | endif |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 94 | ccflags-$(ECM_INTERFACE_PPP_ENABLE) += -DECM_INTERFACE_PPP_ENABLE |
| 95 | |
| 96 | # ############################################################################# |
Murat Sezgin | b3731e8 | 2014-11-26 12:20:59 -0800 | [diff] [blame] | 97 | # Define ECM_INTERFACE_SIT_ENABLE=y in order |
| 98 | # to enable support for SIT interface. |
| 99 | # ############################################################################# |
Murat Sezgin | b3731e8 | 2014-11-26 12:20:59 -0800 | [diff] [blame] | 100 | ECM_INTERFACE_SIT_ENABLE=y |
Murat Sezgin | b3731e8 | 2014-11-26 12:20:59 -0800 | [diff] [blame] | 101 | ccflags-$(ECM_INTERFACE_SIT_ENABLE) += -DECM_INTERFACE_SIT_ENABLE |
| 102 | |
| 103 | # ############################################################################# |
Murat Sezgin | c140256 | 2015-03-12 12:32:20 -0700 | [diff] [blame] | 104 | # Define ECM_INTERFACE_TUNIPIP6_ENABLE=y in order |
| 105 | # to enable support for TUNIPIP6 interface. |
| 106 | # ############################################################################# |
Murat Sezgin | c140256 | 2015-03-12 12:32:20 -0700 | [diff] [blame] | 107 | ECM_INTERFACE_TUNIPIP6_ENABLE=y |
Murat Sezgin | c140256 | 2015-03-12 12:32:20 -0700 | [diff] [blame] | 108 | ccflags-$(ECM_INTERFACE_TUNIPIP6_ENABLE) += -DECM_INTERFACE_TUNIPIP6_ENABLE |
| 109 | |
| 110 | # ############################################################################# |
Shyam Sunder | 1f03726 | 2015-05-18 20:04:13 +0530 | [diff] [blame] | 111 | # Define ECM_MULTICAST_ENABLE=y in order to enable support for ECM Multicast |
| 112 | # ############################################################################# |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 113 | ifeq ($(ECM_FRONT_END_NSS_ENABLE), y) |
Shyam Sunder | 1f03726 | 2015-05-18 20:04:13 +0530 | [diff] [blame] | 114 | ifneq ($(findstring 3.4, $(KERNELVERSION)),) |
Kiran Kumar C.S.K | 9e209e0 | 2015-06-25 12:01:27 +0530 | [diff] [blame] | 115 | ECM_MULTICAST_ENABLE=y |
Shyam Sunder | 1f03726 | 2015-05-18 20:04:13 +0530 | [diff] [blame] | 116 | endif |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 117 | endif |
Shyam Sunder | dd68269 | 2015-05-04 18:15:18 +0530 | [diff] [blame] | 118 | ecm-$(ECM_MULTICAST_ENABLE) += frontends/nss/ecm_nss_multicast_ipv4.o |
Murat Sezgin | 3ab259d | 2015-06-11 14:15:35 -0700 | [diff] [blame] | 119 | ecm-$(ECM_MULTICAST_ENABLE) += frontends/nss/ecm_nss_multicast_ipv6.o |
Shyam Sunder | 1f03726 | 2015-05-18 20:04:13 +0530 | [diff] [blame] | 120 | ccflags-$(ECM_MULTICAST_ENABLE) += -DECM_MULTICAST_ENABLE |
| 121 | |
| 122 | # ############################################################################# |
Gareth Williams | 141d238 | 2014-11-25 11:35:19 -0800 | [diff] [blame] | 123 | # Define ECM_INTERFACE_VLAN_ENABLE=y in order to enable support for VLAN |
| 124 | # ############################################################################# |
Gareth Williams | 141d238 | 2014-11-25 11:35:19 -0800 | [diff] [blame] | 125 | ECM_INTERFACE_VLAN_ENABLE=y |
Gareth Williams | 141d238 | 2014-11-25 11:35:19 -0800 | [diff] [blame] | 126 | ccflags-$(ECM_INTERFACE_VLAN_ENABLE) += -DECM_INTERFACE_VLAN_ENABLE |
| 127 | |
| 128 | # ############################################################################# |
Murat Sezgin | 69a2753 | 2015-03-12 14:09:40 -0700 | [diff] [blame] | 129 | # Define ECM_INTERFACE_IPSEC_ENABLE=y in order to enable support for IPSEC |
| 130 | # ############################################################################# |
| 131 | ECM_INTERFACE_IPSEC_ENABLE=y |
| 132 | ccflags-$(ECM_INTERFACE_IPSEC_ENABLE) += -DECM_INTERFACE_IPSEC_ENABLE |
| 133 | |
| 134 | # ############################################################################# |
Gareth Williams | 8ac3429 | 2015-03-17 14:06:58 +0000 | [diff] [blame] | 135 | # Define ECM_IPV6_ENABLE=y in order to enable IPv6 support in the ECM. |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 136 | # ############################################################################# |
Gareth Williams | 8ac3429 | 2015-03-17 14:06:58 +0000 | [diff] [blame] | 137 | ECM_IPV6_ENABLE=y |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 138 | ifeq ($(ECM_FRONT_END_NSS_ENABLE), y) |
Murat Sezgin | 3ab259d | 2015-06-11 14:15:35 -0700 | [diff] [blame] | 139 | ecm-$(ECM_IPV6_ENABLE) += frontends/nss/ecm_nss_ipv6.o |
| 140 | ecm-$(ECM_IPV6_ENABLE) += frontends/nss/ecm_nss_ported_ipv6.o |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 141 | endif |
| 142 | ifeq ($(ECM_FRONT_END_SFE_ENABLE), y) |
| 143 | ecm-$(ECM_IPV6_ENABLE) += frontends/sfe/ecm_sfe_ipv6.o |
| 144 | ecm-$(ECM_IPV6_ENABLE) += frontends/sfe/ecm_sfe_ported_ipv6.o |
| 145 | endif |
Gareth Williams | 8ac3429 | 2015-03-17 14:06:58 +0000 | [diff] [blame] | 146 | ccflags-$(ECM_IPV6_ENABLE) += -DECM_IPV6_ENABLE |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 147 | |
| 148 | # ############################################################################# |
| 149 | # Define ECM_CLASSIFIER_NL_ENABLE=y in order to enable NL classifier. |
| 150 | # ############################################################################# |
Murat Sezgin | 2a0b243 | 2014-11-26 14:53:57 -0800 | [diff] [blame] | 151 | ifneq ($(findstring 3.4, $(KERNELVERSION)),) |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 152 | ECM_CLASSIFIER_NL_ENABLE=y |
| 153 | endif |
| 154 | ecm-$(ECM_CLASSIFIER_NL_ENABLE) += ecm_classifier_nl.o |
| 155 | ccflags-$(ECM_CLASSIFIER_NL_ENABLE) += -DECM_CLASSIFIER_NL_ENABLE |
| 156 | |
| 157 | # ############################################################################# |
| 158 | # Define ECM_CLASSIFIER_DSCP_ENABLE=y in order to enable DSCP classifier. |
| 159 | # ############################################################################# |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 160 | ECM_CLASSIFIER_DSCP_ENABLE=y |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 161 | ecm-$(ECM_CLASSIFIER_DSCP_ENABLE) += ecm_classifier_dscp.o |
| 162 | ccflags-$(ECM_CLASSIFIER_DSCP_ENABLE) += -DECM_CLASSIFIER_DSCP_ENABLE |
| 163 | |
| 164 | # ############################################################################# |
| 165 | # Define ECM_CLASSIFIER_HYFI_ENABLE=y in order to enable |
| 166 | # the Hy-Fi classifier in ECM. Currently disabled until the integration |
| 167 | # with Hy-Fi is completed. |
| 168 | # ############################################################################# |
| 169 | ecm-$(ECM_CLASSIFIER_HYFI_ENABLE) += ecm_classifier_hyfi.o |
| 170 | ccflags-$(ECM_CLASSIFIER_HYFI_ENABLE) += -DECM_CLASSIFIER_HYFI_ENABLE |
| 171 | |
| 172 | # ############################################################################# |
Gareth Williams | dcda9b9 | 2015-05-13 10:08:15 +0100 | [diff] [blame] | 173 | # Define ECM_CLASSIFIER_PCC_ENABLE=y in order to enable |
| 174 | # the Parental Controls subsystem classifier in ECM. Currently disabled until |
| 175 | # customers require it / if they need to integrate their Parental Controls with it. |
| 176 | # ############################################################################# |
| 177 | ECM_CLASSIFIER_PCC_ENABLE=y |
| 178 | ecm-$(ECM_CLASSIFIER_PCC_ENABLE) += ecm_classifier_pcc.o |
| 179 | ccflags-$(ECM_CLASSIFIER_PCC_ENABLE) += -DECM_CLASSIFIER_PCC_ENABLE |
| 180 | |
| 181 | # ############################################################################# |
Murat Sezgin | 8d916a1 | 2015-03-18 15:56:50 -0700 | [diff] [blame] | 182 | # Define ECM_NON_PORTED_SUPPORT_ENABLE=y in order to enable non-ported protocol. |
| 183 | # ############################################################################# |
| 184 | ECM_NON_PORTED_SUPPORT_ENABLE=y |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 185 | ifeq ($(ECM_FRONT_END_NSS_ENABLE), y) |
Murat Sezgin | 8d916a1 | 2015-03-18 15:56:50 -0700 | [diff] [blame] | 186 | ecm-$(ECM_NON_PORTED_SUPPORT_ENABLE) += frontends/nss/ecm_nss_non_ported_ipv4.o |
Murat Sezgin | 3ab259d | 2015-06-11 14:15:35 -0700 | [diff] [blame] | 187 | ecm-$(ECM_NON_PORTED_SUPPORT_ENABLE) += frontends/nss/ecm_nss_non_ported_ipv6.o |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 188 | endif |
| 189 | ifeq ($(ECM_FRONT_END_SFE_ENABLE), y) |
| 190 | ecm-$(ECM_NON_PORTED_SUPPORT_ENABLE) += frontends/sfe/ecm_sfe_non_ported_ipv4.o |
| 191 | ecm-$(ECM_NON_PORTED_SUPPORT_ENABLE) += frontends/sfe/ecm_sfe_non_ported_ipv6.o |
| 192 | endif |
Murat Sezgin | 8d916a1 | 2015-03-18 15:56:50 -0700 | [diff] [blame] | 193 | ccflags-$(ECM_NON_PORTED_SUPPORT_ENABLE) += -DECM_NON_PORTED_SUPPORT_ENABLE |
| 194 | |
Gareth Williams | f98d419 | 2015-03-11 16:55:41 +0000 | [diff] [blame] | 195 | # ############################################################################# |
| 196 | # Define ECM_STATE_OUTPUT_ENABLE=y to support XML state output |
| 197 | # ############################################################################# |
| 198 | ECM_STATE_OUTPUT_ENABLE=y |
| 199 | ecm-$(ECM_STATE_OUTPUT_ENABLE) += ecm_state.o |
| 200 | ccflags-$(ECM_STATE_OUTPUT_ENABLE) += -DECM_STATE_OUTPUT_ENABLE |
Murat Sezgin | 8d916a1 | 2015-03-18 15:56:50 -0700 | [diff] [blame] | 201 | |
| 202 | # ############################################################################# |
Gareth Williams | 85331c9 | 2015-03-11 20:39:18 +0000 | [diff] [blame] | 203 | # Define ECM_DB_ADVANCED_STATS_ENABLE to support XML state output |
| 204 | # ############################################################################# |
| 205 | ECM_DB_ADVANCED_STATS_ENABLE=y |
| 206 | ccflags-$(ECM_DB_ADVANCED_STATS_ENABLE) += -DECM_DB_ADVANCED_STATS_ENABLE |
| 207 | |
| 208 | # ############################################################################# |
Gareth Williams | b590389 | 2015-03-20 15:13:07 +0000 | [diff] [blame] | 209 | # Define ECM_DB_CONNECTION_CROSS_REFERENCING_ENABLE=y in order to enable |
| 210 | # the database to track relationships between objects. |
| 211 | # ############################################################################# |
| 212 | ECM_DB_CONNECTION_CROSS_REFERENCING_ENABLE=y |
| 213 | ccflags-$(ECM_DB_CONNECTION_CROSS_REFERENCING_ENABLE) += -DECM_DB_XREF_ENABLE |
| 214 | |
| 215 | # ############################################################################# |
Gareth Williams | 88be372 | 2015-03-23 19:51:01 +0000 | [diff] [blame] | 216 | # Define ECM_TRACKER_DPI_SUPPORT_ENABLE=y in order to enable support for |
| 217 | # deep packet inspection and tracking of data with the trackers. |
| 218 | # ############################################################################# |
| 219 | ECM_TRACKER_DPI_SUPPORT_ENABLE=y |
| 220 | ccflags-$(ECM_TRACKER_DPI_SUPPORT_ENABLE) += -DECM_TRACKER_DPI_SUPPORT_ENABLE |
| 221 | |
| 222 | # ############################################################################# |
Gareth Williams | b39e7c2 | 2015-03-25 10:15:33 +0000 | [diff] [blame] | 223 | # Define ECM_DB_CLASSIFIER_TYPE_ASSIGNMENTS_TRACK_ENABLE=y in order to enable |
| 224 | # support for the database keeping lists of connections that are assigned |
| 225 | # on a per TYPE of classifier basis. |
| 226 | # ############################################################################# |
| 227 | ECM_DB_CLASSIFIER_TYPE_ASSIGNMENTS_TRACK_ENABLE=y |
| 228 | ccflags-$(ECM_DB_CLASSIFIER_TYPE_ASSIGNMENTS_TRACK_ENABLE) += -DECM_DB_CTA_TRACK_ENABLE |
| 229 | |
| 230 | # ############################################################################# |
Murat Sezgin | 8c34582 | 2015-05-27 15:35:38 -0700 | [diff] [blame] | 231 | # Define ECM_BAND_STEERING_ENABLE=y in order to enable |
| 232 | # band steering feature. |
| 233 | # ############################################################################# |
| 234 | ECM_BAND_STEERING_ENABLE=y |
| 235 | ccflags-$(ECM_BAND_STEERING_ENABLE) += -DECM_BAND_STEERING_ENABLE |
| 236 | |
| 237 | # ############################################################################# |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 238 | # Debug flags, set these to = 0 if you want to disable all debugging for that |
| 239 | # file. |
| 240 | # By turning off debugs you gain maximum ECM performance. |
| 241 | # ############################################################################# |
Gareth Williams | 8932a91 | 2014-06-11 18:06:25 -0700 | [diff] [blame] | 242 | ccflags-y += -DECM_CLASSIFIER_DSCP_DEBUG_LEVEL=1 |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 243 | ccflags-y += -DECM_CLASSIFIER_HYFI_DEBUG_LEVEL=1 |
Gareth Williams | dcda9b9 | 2015-05-13 10:08:15 +0100 | [diff] [blame] | 244 | ccflags-y += -DECM_CLASSIFIER_PCC_DEBUG_LEVEL=1 |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 245 | ccflags-y += -DECM_CLASSIFIER_NL_DEBUG_LEVEL=1 |
| 246 | ccflags-y += -DECM_CLASSIFIER_DEFAULT_DEBUG_LEVEL=1 |
| 247 | ccflags-y += -DECM_DB_DEBUG_LEVEL=1 |
Murat Sezgin | 3ab259d | 2015-06-11 14:15:35 -0700 | [diff] [blame] | 248 | ccflags-y += -DECM_INIT_DEBUG_LEVEL=3 |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 249 | ccflags-y += -DECM_FRONT_END_IPV4_DEBUG_LEVEL=1 |
| 250 | ccflags-y += -DECM_FRONT_END_IPV6_DEBUG_LEVEL=1 |
Murat Sezgin | 5f13849 | 2015-06-11 15:18:27 -0700 | [diff] [blame] | 251 | ccflags-y += -DECM_FRONT_END_COMMON_DEBUG_LEVEL=1 |
Murat Sezgin | 3ab259d | 2015-06-11 14:15:35 -0700 | [diff] [blame] | 252 | ccflags-y += -DECM_NSS_IPV4_DEBUG_LEVEL=1 |
| 253 | ccflags-y += -DECM_NSS_PORTED_IPV4_DEBUG_LEVEL=1 |
| 254 | ccflags-y += -DECM_NSS_NON_PORTED_IPV4_DEBUG_LEVEL=1 |
| 255 | ccflags-y += -DECM_NSS_MULTICAST_IPV4_DEBUG_LEVEL=1 |
| 256 | ccflags-y += -DECM_NSS_IPV6_DEBUG_LEVEL=1 |
| 257 | ccflags-y += -DECM_NSS_PORTED_IPV6_DEBUG_LEVEL=1 |
| 258 | ccflags-y += -DECM_NSS_NON_PORTED_IPV6_DEBUG_LEVEL=1 |
| 259 | ccflags-y += -DECM_NSS_MULTICAST_IPV6_DEBUG_LEVEL=1 |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 260 | ccflags-y += -DECM_SFE_IPV4_DEBUG_LEVEL=1 |
| 261 | ccflags-y += -DECM_SFE_PORTED_IPV4_DEBUG_LEVEL=1 |
| 262 | ccflags-y += -DECM_SFE_NON_PORTED_IPV4_DEBUG_LEVEL=1 |
| 263 | ccflags-y += -DECM_SFE_IPV6_DEBUG_LEVEL=1 |
| 264 | ccflags-y += -DECM_SFE_PORTED_IPV6_DEBUG_LEVEL=1 |
| 265 | ccflags-y += -DECM_SFE_NON_PORTED_IPV6_DEBUG_LEVEL=1 |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 266 | ccflags-y += -DECM_CONNTRACK_NOTIFIER_DEBUG_LEVEL=1 |
| 267 | ccflags-y += -DECM_TRACKER_DEBUG_LEVEL=1 |
| 268 | ccflags-y += -DECM_TRACKER_DATAGRAM_DEBUG_LEVEL=1 |
| 269 | ccflags-y += -DECM_TRACKER_TCP_DEBUG_LEVEL=1 |
| 270 | ccflags-y += -DECM_TRACKER_UDP_DEBUG_LEVEL=1 |
| 271 | ccflags-y += -DECM_BOND_NOTIFIER_DEBUG_LEVEL=1 |
| 272 | ccflags-y += -DECM_INTERFACE_DEBUG_LEVEL=1 |
Gareth Williams | f98d419 | 2015-03-11 16:55:41 +0000 | [diff] [blame] | 273 | ccflags-y += -DECM_STATE_DEBUG_LEVEL=1 |
Stephen Wang | aa7e5f7 | 2015-05-12 15:25:12 -0700 | [diff] [blame] | 274 | ccflags-y += -DECM_OPENWRT_SUPPORT=1 |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 275 | |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 276 | ccflags-y += -I$(obj)/ -I$(obj)/frontends/include -I$(obj)/frontends/nss -I$(obj)/frontends/sfe |
Murat Sezgin | 7c12aba | 2015-03-16 12:01:57 -0700 | [diff] [blame] | 277 | |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 278 | obj ?= . |
| 279 | |