Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 1 | ########################################################################## |
Suman Ghosh | 9e4245f | 2018-04-11 01:11:41 +0530 | [diff] [blame] | 2 | # Copyright (c) 2014-2016, 2018, 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 | |
Murat Sezgin | 1957a98 | 2015-05-21 22:22:25 +0100 | [diff] [blame] | 21 | # ##################################################### |
| 22 | # Example builds. |
| 23 | # Enable example build by using the menuconfig options. |
| 24 | # ##################################################### |
| 25 | ifeq ($(EXAMPLES_BUILD_PCC),y) |
| 26 | obj-m += examples/ecm_pcc_test.o |
| 27 | endif |
| 28 | |
Hai Shalom | 81f4e20 | 2014-06-04 09:30:27 -0700 | [diff] [blame] | 29 | ecm-y := \ |
Nicolas Costa | f46c33b | 2014-05-15 10:02:00 -0500 | [diff] [blame] | 30 | ecm_tracker_udp.o \ |
| 31 | ecm_tracker_tcp.o \ |
| 32 | ecm_tracker_datagram.o \ |
| 33 | ecm_tracker.o \ |
Murat Sezgin | 3ab259d | 2015-06-11 14:15:35 -0700 | [diff] [blame] | 34 | frontends/ecm_front_end_ipv4.o \ |
| 35 | frontends/ecm_front_end_ipv6.o \ |
Murat Sezgin | 5f13849 | 2015-06-11 15:18:27 -0700 | [diff] [blame] | 36 | frontends/ecm_front_end_common.o \ |
Murat Sezgin | 7585058 | 2018-05-02 18:37:56 -0700 | [diff] [blame] | 37 | ecm_db/ecm_db.o \ |
| 38 | ecm_db/ecm_db_connection.o \ |
| 39 | ecm_db/ecm_db_mapping.o \ |
| 40 | ecm_db/ecm_db_host.o \ |
| 41 | ecm_db/ecm_db_node.o \ |
| 42 | ecm_db/ecm_db_iface.o \ |
| 43 | ecm_db/ecm_db_listener.o \ |
| 44 | ecm_db/ecm_db_timer.o \ |
Murat Sezgin | c725ad8 | 2016-04-13 17:12:50 -0700 | [diff] [blame] | 45 | ecm_classifier.o \ |
Nicolas Costa | f46c33b | 2014-05-15 10:02:00 -0500 | [diff] [blame] | 46 | ecm_classifier_default.o \ |
Nicolas Costa | f46c33b | 2014-05-15 10:02:00 -0500 | [diff] [blame] | 47 | ecm_interface.o \ |
Murat Sezgin | df98fce | 2016-08-26 17:56:39 -0700 | [diff] [blame] | 48 | ecm_conntrack_notifier.o \ |
Nicolas Costa | f46c33b | 2014-05-15 10:02:00 -0500 | [diff] [blame] | 49 | ecm_init.o |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 50 | |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 51 | # ############################################################################# |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 52 | # Define ECM_FRONT_END_NSS_ENABLE=y in order to select |
| 53 | # nss as ECM's front end. |
| 54 | # ############################################################################# |
Suman Ghosh | f79452b | 2018-08-17 20:46:15 +0530 | [diff] [blame] | 55 | ifeq ($(SoC),$(filter $(SoC),ipq806x ipq807x ipq807x_64 ipq60xx ipq60xx_64)) |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 56 | ECM_FRONT_END_NSS_ENABLE=y |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 57 | ecm-$(ECM_FRONT_END_NSS_ENABLE) += frontends/nss/ecm_nss_ipv4.o |
| 58 | ecm-$(ECM_FRONT_END_NSS_ENABLE) += frontends/nss/ecm_nss_ported_ipv4.o |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 59 | ccflags-$(ECM_FRONT_END_NSS_ENABLE) += -DECM_FRONT_END_NSS_ENABLE |
Murat Sezgin | 828aa09 | 2017-04-27 13:27:39 -0700 | [diff] [blame] | 60 | endif |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 61 | |
| 62 | # ############################################################################# |
| 63 | # Define ECM_FRONT_END_SFE_ENABLE=y in order to select |
| 64 | # sfe as ECM's front end. |
| 65 | # ############################################################################# |
Murat Sezgin | 828aa09 | 2017-04-27 13:27:39 -0700 | [diff] [blame] | 66 | ifeq ($(SoC),$(filter $(SoC),ipq806x ipq40xx)) |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 67 | ECM_FRONT_END_SFE_ENABLE=y |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 68 | ecm-$(ECM_FRONT_END_SFE_ENABLE) += frontends/sfe/ecm_sfe_ipv4.o |
| 69 | ecm-$(ECM_FRONT_END_SFE_ENABLE) += frontends/sfe/ecm_sfe_ported_ipv4.o |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 70 | ccflags-$(ECM_FRONT_END_SFE_ENABLE) += -DECM_FRONT_END_SFE_ENABLE |
Murat Sezgin | 828aa09 | 2017-04-27 13:27:39 -0700 | [diff] [blame] | 71 | endif |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 72 | |
| 73 | # ############################################################################# |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 74 | # Define ECM_INTERFACE_BOND_ENABLE=y in order to enable |
| 75 | # Bonding / Link Aggregation support. |
| 76 | # ############################################################################# |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 77 | ifeq ($(ECM_FRONT_END_NSS_ENABLE), y) |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 78 | ECM_INTERFACE_BOND_ENABLE=y |
| 79 | endif |
Murat Sezgin | 8e10a7c | 2015-06-11 15:49:24 -0700 | [diff] [blame] | 80 | ecm-$(ECM_INTERFACE_BOND_ENABLE) += frontends/nss/ecm_nss_bond_notifier.o |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 81 | ccflags-$(ECM_INTERFACE_BOND_ENABLE) += -DECM_INTERFACE_BOND_ENABLE |
Hai Shalom | 81f4e20 | 2014-06-04 09:30:27 -0700 | [diff] [blame] | 82 | |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 83 | # ############################################################################# |
ratheesh kannoth | a32fdd1 | 2015-09-09 08:02:58 +0530 | [diff] [blame] | 84 | # Define ECM_INTERFACE_PPPOE_ENABLE=y in order |
| 85 | # to enable support for PPPoE acceleration. |
| 86 | # ############################################################################# |
| 87 | ECM_INTERFACE_PPPOE_ENABLE=y |
| 88 | ccflags-$(ECM_INTERFACE_PPPOE_ENABLE) += -DECM_INTERFACE_PPPOE_ENABLE |
| 89 | |
| 90 | # ############################################################################# |
| 91 | # Define ECM_INTERFACE_L2TPV2_ENABLE=y in order |
| 92 | # to enable support for l2tpv2 acceleration. |
| 93 | # ############################################################################# |
ratheesh kannoth | a32fdd1 | 2015-09-09 08:02:58 +0530 | [diff] [blame] | 94 | ECM_INTERFACE_L2TPV2_ENABLE=y |
ratheesh kannoth | a32fdd1 | 2015-09-09 08:02:58 +0530 | [diff] [blame] | 95 | ccflags-$(ECM_INTERFACE_L2TPV2_ENABLE) += -DECM_INTERFACE_L2TPV2_ENABLE |
| 96 | |
| 97 | # ############################################################################# |
Shyam Sunder | 23f2e54 | 2015-09-28 14:56:49 +0530 | [diff] [blame] | 98 | # Define ECM_INTERFACE_PPTP_ENABLE=y in order |
| 99 | # to enable support for pptp acceleration. |
| 100 | # ############################################################################# |
Shyam Sunder | 23f2e54 | 2015-09-28 14:56:49 +0530 | [diff] [blame] | 101 | ECM_INTERFACE_PPTP_ENABLE=y |
Shyam Sunder | 23f2e54 | 2015-09-28 14:56:49 +0530 | [diff] [blame] | 102 | ccflags-$(ECM_INTERFACE_PPTP_ENABLE) += -DECM_INTERFACE_PPTP_ENABLE |
| 103 | |
| 104 | # ############################################################################# |
| 105 | # if pppoe, l2tpv2, pptp acceleration is enabled, ppp should |
ratheesh kannoth | a32fdd1 | 2015-09-09 08:02:58 +0530 | [diff] [blame] | 106 | # be enabled automatically |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 107 | # ############################################################################# |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 108 | ECM_INTERFACE_PPP_ENABLE=y |
ratheesh kannoth | a32fdd1 | 2015-09-09 08:02:58 +0530 | [diff] [blame] | 109 | ifeq "$(ECM_INTERFACE_PPPOE_ENABLE)" "n" |
| 110 | ifeq "$(ECM_INTERFACE_L2TPV2_ENABLE)" "n" |
Shyam Sunder | 23f2e54 | 2015-09-28 14:56:49 +0530 | [diff] [blame] | 111 | ifeq "$(ECM_INTERFACE_PPTP_ENABLE)" "n" |
ratheesh kannoth | a32fdd1 | 2015-09-09 08:02:58 +0530 | [diff] [blame] | 112 | ECM_INTERFACE_PPP_ENABLE=n |
| 113 | endif |
| 114 | endif |
Shyam Sunder | 23f2e54 | 2015-09-28 14:56:49 +0530 | [diff] [blame] | 115 | endif |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 116 | ccflags-$(ECM_INTERFACE_PPP_ENABLE) += -DECM_INTERFACE_PPP_ENABLE |
| 117 | |
| 118 | # ############################################################################# |
ratheesh kannoth | cfdcb33 | 2015-12-24 07:19:18 +0530 | [diff] [blame] | 119 | # Define ECM_INTERFACE_MAP_T_ENABLE=y in order |
| 120 | # to enable support for MAP-T interface. |
| 121 | # ############################################################################# |
ratheesh kannoth | cfdcb33 | 2015-12-24 07:19:18 +0530 | [diff] [blame] | 122 | ccflags-$(ECM_INTERFACE_MAP_T_ENABLE) += -DECM_INTERFACE_MAP_T_ENABLE |
| 123 | |
| 124 | # ############################################################################# |
Suman Ghosh | 9e4245f | 2018-04-11 01:11:41 +0530 | [diff] [blame] | 125 | # Define ECM_INTERFACE_GRE_TAP_ENABLE=y in order |
| 126 | # to enable support for GRE TAP interface. |
Murat Sezgin | 31effef | 2017-11-13 15:09:34 -0800 | [diff] [blame] | 127 | # ############################################################################# |
Suman Ghosh | 9e4245f | 2018-04-11 01:11:41 +0530 | [diff] [blame] | 128 | ECM_INTERFACE_GRE_TAP_ENABLE=y |
| 129 | ccflags-$(ECM_INTERFACE_GRE_TAP_ENABLE) += -DECM_INTERFACE_GRE_TAP_ENABLE |
| 130 | |
| 131 | # ############################################################################# |
| 132 | # Define ECM_INTERFACE_GRE_TUN_ENABLE=y in order |
| 133 | # to enable support for GRE TUN interface. |
| 134 | # ############################################################################# |
| 135 | ECM_INTERFACE_GRE_TUN_ENABLE=y |
| 136 | ccflags-$(ECM_INTERFACE_GRE_TUN_ENABLE) += -DECM_INTERFACE_GRE_TUN_ENABLE |
Murat Sezgin | 31effef | 2017-11-13 15:09:34 -0800 | [diff] [blame] | 137 | |
| 138 | # ############################################################################# |
Murat Sezgin | b3731e8 | 2014-11-26 12:20:59 -0800 | [diff] [blame] | 139 | # Define ECM_INTERFACE_SIT_ENABLE=y in order |
| 140 | # to enable support for SIT interface. |
| 141 | # ############################################################################# |
Murat Sezgin | b3731e8 | 2014-11-26 12:20:59 -0800 | [diff] [blame] | 142 | ECM_INTERFACE_SIT_ENABLE=y |
Murat Sezgin | b3731e8 | 2014-11-26 12:20:59 -0800 | [diff] [blame] | 143 | ccflags-$(ECM_INTERFACE_SIT_ENABLE) += -DECM_INTERFACE_SIT_ENABLE |
| 144 | |
| 145 | # ############################################################################# |
Murat Sezgin | c140256 | 2015-03-12 12:32:20 -0700 | [diff] [blame] | 146 | # Define ECM_INTERFACE_TUNIPIP6_ENABLE=y in order |
| 147 | # to enable support for TUNIPIP6 interface. |
| 148 | # ############################################################################# |
Murat Sezgin | c140256 | 2015-03-12 12:32:20 -0700 | [diff] [blame] | 149 | ECM_INTERFACE_TUNIPIP6_ENABLE=y |
Murat Sezgin | c140256 | 2015-03-12 12:32:20 -0700 | [diff] [blame] | 150 | ccflags-$(ECM_INTERFACE_TUNIPIP6_ENABLE) += -DECM_INTERFACE_TUNIPIP6_ENABLE |
| 151 | |
| 152 | # ############################################################################# |
Shyam Sunder | 1f03726 | 2015-05-18 20:04:13 +0530 | [diff] [blame] | 153 | # Define ECM_MULTICAST_ENABLE=y in order to enable support for ECM Multicast |
| 154 | # ############################################################################# |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 155 | ifeq ($(ECM_FRONT_END_NSS_ENABLE), y) |
Murat Sezgin | 34f45c1 | 2015-11-19 13:25:22 -0800 | [diff] [blame] | 156 | # |
| 157 | # TODO: This is a workaround for external builds in which the qca-mcs source |
| 158 | # code is not available. This will be fixed later by breaking the dependency from ECM |
| 159 | # to qca-mcs |
| 160 | # |
| 161 | MCS_CONFIG:=$(shell grep "CONFIG_PACKAGE_kmod-qca-mcs=y" $(TOPDIR)/.config) |
| 162 | MCS_ENABLED:=CONFIG_PACKAGE_kmod-qca-mcs=y |
| 163 | ifeq ($(MCS_CONFIG),$(MCS_ENABLED)) |
Shyam Sunder | be633de | 2016-10-06 17:02:31 +0530 | [diff] [blame] | 164 | ECM_MULTICAST_ENABLE=y |
Shyam Sunder | dd68269 | 2015-05-04 18:15:18 +0530 | [diff] [blame] | 165 | ecm-$(ECM_MULTICAST_ENABLE) += frontends/nss/ecm_nss_multicast_ipv4.o |
Murat Sezgin | 3ab259d | 2015-06-11 14:15:35 -0700 | [diff] [blame] | 166 | ecm-$(ECM_MULTICAST_ENABLE) += frontends/nss/ecm_nss_multicast_ipv6.o |
Murat Sezgin | 7585058 | 2018-05-02 18:37:56 -0700 | [diff] [blame] | 167 | ecm-$(ECM_MULTICAST_ENABLE) += ecm_db/ecm_db_multicast.o |
Shyam Sunder | 1f03726 | 2015-05-18 20:04:13 +0530 | [diff] [blame] | 168 | ccflags-$(ECM_MULTICAST_ENABLE) += -DECM_MULTICAST_ENABLE |
Karthik Hariharan | 3e964a3 | 2015-09-22 21:40:52 +0530 | [diff] [blame] | 169 | endif |
Murat Sezgin | 34f45c1 | 2015-11-19 13:25:22 -0800 | [diff] [blame] | 170 | endif |
Shyam Sunder | 1f03726 | 2015-05-18 20:04:13 +0530 | [diff] [blame] | 171 | |
| 172 | # ############################################################################# |
Gareth Williams | 141d238 | 2014-11-25 11:35:19 -0800 | [diff] [blame] | 173 | # Define ECM_INTERFACE_VLAN_ENABLE=y in order to enable support for VLAN |
| 174 | # ############################################################################# |
Gareth Williams | 141d238 | 2014-11-25 11:35:19 -0800 | [diff] [blame] | 175 | ECM_INTERFACE_VLAN_ENABLE=y |
Gareth Williams | 141d238 | 2014-11-25 11:35:19 -0800 | [diff] [blame] | 176 | ccflags-$(ECM_INTERFACE_VLAN_ENABLE) += -DECM_INTERFACE_VLAN_ENABLE |
| 177 | |
| 178 | # ############################################################################# |
Murat Sezgin | 69a2753 | 2015-03-12 14:09:40 -0700 | [diff] [blame] | 179 | # Define ECM_INTERFACE_IPSEC_ENABLE=y in order to enable support for IPSEC |
| 180 | # ############################################################################# |
| 181 | ECM_INTERFACE_IPSEC_ENABLE=y |
| 182 | ccflags-$(ECM_INTERFACE_IPSEC_ENABLE) += -DECM_INTERFACE_IPSEC_ENABLE |
| 183 | |
| 184 | # ############################################################################# |
Gareth Williams | 8ac3429 | 2015-03-17 14:06:58 +0000 | [diff] [blame] | 185 | # 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] | 186 | # ############################################################################# |
Gareth Williams | 8ac3429 | 2015-03-17 14:06:58 +0000 | [diff] [blame] | 187 | ECM_IPV6_ENABLE=y |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 188 | ifeq ($(ECM_FRONT_END_NSS_ENABLE), y) |
Murat Sezgin | 3ab259d | 2015-06-11 14:15:35 -0700 | [diff] [blame] | 189 | ecm-$(ECM_IPV6_ENABLE) += frontends/nss/ecm_nss_ipv6.o |
| 190 | ecm-$(ECM_IPV6_ENABLE) += frontends/nss/ecm_nss_ported_ipv6.o |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 191 | endif |
| 192 | ifeq ($(ECM_FRONT_END_SFE_ENABLE), y) |
| 193 | ecm-$(ECM_IPV6_ENABLE) += frontends/sfe/ecm_sfe_ipv6.o |
| 194 | ecm-$(ECM_IPV6_ENABLE) += frontends/sfe/ecm_sfe_ported_ipv6.o |
| 195 | endif |
Gareth Williams | 8ac3429 | 2015-03-17 14:06:58 +0000 | [diff] [blame] | 196 | ccflags-$(ECM_IPV6_ENABLE) += -DECM_IPV6_ENABLE |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 197 | |
| 198 | # ############################################################################# |
| 199 | # Define ECM_CLASSIFIER_NL_ENABLE=y in order to enable NL classifier. |
| 200 | # ############################################################################# |
Murat Sezgin | e1c51d8 | 2016-02-10 16:42:58 -0800 | [diff] [blame] | 201 | ifeq ($(findstring 4.4., $(KERNELVERSION)),) |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 202 | ECM_CLASSIFIER_NL_ENABLE=y |
Murat Sezgin | e1c51d8 | 2016-02-10 16:42:58 -0800 | [diff] [blame] | 203 | endif |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 204 | ecm-$(ECM_CLASSIFIER_NL_ENABLE) += ecm_classifier_nl.o |
| 205 | ccflags-$(ECM_CLASSIFIER_NL_ENABLE) += -DECM_CLASSIFIER_NL_ENABLE |
| 206 | |
| 207 | # ############################################################################# |
| 208 | # Define ECM_CLASSIFIER_DSCP_ENABLE=y in order to enable DSCP classifier. |
| 209 | # ############################################################################# |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 210 | ECM_CLASSIFIER_DSCP_ENABLE=y |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 211 | ecm-$(ECM_CLASSIFIER_DSCP_ENABLE) += ecm_classifier_dscp.o |
| 212 | ccflags-$(ECM_CLASSIFIER_DSCP_ENABLE) += -DECM_CLASSIFIER_DSCP_ENABLE |
| 213 | |
| 214 | # ############################################################################# |
| 215 | # Define ECM_CLASSIFIER_HYFI_ENABLE=y in order to enable |
| 216 | # the Hy-Fi classifier in ECM. Currently disabled until the integration |
| 217 | # with Hy-Fi is completed. |
| 218 | # ############################################################################# |
Murat Sezgin | 34f45c1 | 2015-11-19 13:25:22 -0800 | [diff] [blame] | 219 | # |
| 220 | # TODO: This is a workaround for external builds in which the qca-hyfi-bridge source |
| 221 | # code is not available. This will be fixed later by breaking the dependency from ECM |
| 222 | # to qca-hyfi-bridge |
| 223 | # |
| 224 | HYFI_BRIDGE_CONFIG:=$(shell grep "CONFIG_PACKAGE_kmod-qca-hyfi-bridge=y" $(TOPDIR)/.config) |
| 225 | HYFI_BRIDGE_ENABLED:=CONFIG_PACKAGE_kmod-qca-hyfi-bridge=y |
| 226 | ifeq ($(HYFI_BRIDGE_CONFIG),$(HYFI_BRIDGE_ENABLED)) |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 227 | ecm-$(ECM_CLASSIFIER_HYFI_ENABLE) += ecm_classifier_hyfi.o |
| 228 | ccflags-$(ECM_CLASSIFIER_HYFI_ENABLE) += -DECM_CLASSIFIER_HYFI_ENABLE |
Murat Sezgin | 34f45c1 | 2015-11-19 13:25:22 -0800 | [diff] [blame] | 229 | endif |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 230 | |
| 231 | # ############################################################################# |
Gareth Williams | dcda9b9 | 2015-05-13 10:08:15 +0100 | [diff] [blame] | 232 | # Define ECM_CLASSIFIER_PCC_ENABLE=y in order to enable |
| 233 | # the Parental Controls subsystem classifier in ECM. Currently disabled until |
| 234 | # customers require it / if they need to integrate their Parental Controls with it. |
| 235 | # ############################################################################# |
| 236 | ECM_CLASSIFIER_PCC_ENABLE=y |
| 237 | ecm-$(ECM_CLASSIFIER_PCC_ENABLE) += ecm_classifier_pcc.o |
| 238 | ccflags-$(ECM_CLASSIFIER_PCC_ENABLE) += -DECM_CLASSIFIER_PCC_ENABLE |
| 239 | |
| 240 | # ############################################################################# |
Murat Sezgin | 8d916a1 | 2015-03-18 15:56:50 -0700 | [diff] [blame] | 241 | # Define ECM_NON_PORTED_SUPPORT_ENABLE=y in order to enable non-ported protocol. |
| 242 | # ############################################################################# |
| 243 | ECM_NON_PORTED_SUPPORT_ENABLE=y |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 244 | ifeq ($(ECM_FRONT_END_NSS_ENABLE), y) |
Murat Sezgin | 8d916a1 | 2015-03-18 15:56:50 -0700 | [diff] [blame] | 245 | 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] | 246 | 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] | 247 | endif |
| 248 | ifeq ($(ECM_FRONT_END_SFE_ENABLE), y) |
| 249 | ecm-$(ECM_NON_PORTED_SUPPORT_ENABLE) += frontends/sfe/ecm_sfe_non_ported_ipv4.o |
| 250 | ecm-$(ECM_NON_PORTED_SUPPORT_ENABLE) += frontends/sfe/ecm_sfe_non_ported_ipv6.o |
| 251 | endif |
Murat Sezgin | 8d916a1 | 2015-03-18 15:56:50 -0700 | [diff] [blame] | 252 | ccflags-$(ECM_NON_PORTED_SUPPORT_ENABLE) += -DECM_NON_PORTED_SUPPORT_ENABLE |
| 253 | |
Gareth Williams | f98d419 | 2015-03-11 16:55:41 +0000 | [diff] [blame] | 254 | # ############################################################################# |
| 255 | # Define ECM_STATE_OUTPUT_ENABLE=y to support XML state output |
| 256 | # ############################################################################# |
| 257 | ECM_STATE_OUTPUT_ENABLE=y |
| 258 | ecm-$(ECM_STATE_OUTPUT_ENABLE) += ecm_state.o |
| 259 | ccflags-$(ECM_STATE_OUTPUT_ENABLE) += -DECM_STATE_OUTPUT_ENABLE |
Murat Sezgin | 8d916a1 | 2015-03-18 15:56:50 -0700 | [diff] [blame] | 260 | |
| 261 | # ############################################################################# |
Gareth Williams | 85331c9 | 2015-03-11 20:39:18 +0000 | [diff] [blame] | 262 | # Define ECM_DB_ADVANCED_STATS_ENABLE to support XML state output |
| 263 | # ############################################################################# |
| 264 | ECM_DB_ADVANCED_STATS_ENABLE=y |
| 265 | ccflags-$(ECM_DB_ADVANCED_STATS_ENABLE) += -DECM_DB_ADVANCED_STATS_ENABLE |
| 266 | |
| 267 | # ############################################################################# |
Gareth Williams | b590389 | 2015-03-20 15:13:07 +0000 | [diff] [blame] | 268 | # Define ECM_DB_CONNECTION_CROSS_REFERENCING_ENABLE=y in order to enable |
| 269 | # the database to track relationships between objects. |
| 270 | # ############################################################################# |
| 271 | ECM_DB_CONNECTION_CROSS_REFERENCING_ENABLE=y |
| 272 | ccflags-$(ECM_DB_CONNECTION_CROSS_REFERENCING_ENABLE) += -DECM_DB_XREF_ENABLE |
| 273 | |
| 274 | # ############################################################################# |
Gareth Williams | 88be372 | 2015-03-23 19:51:01 +0000 | [diff] [blame] | 275 | # Define ECM_TRACKER_DPI_SUPPORT_ENABLE=y in order to enable support for |
| 276 | # deep packet inspection and tracking of data with the trackers. |
| 277 | # ############################################################################# |
| 278 | ECM_TRACKER_DPI_SUPPORT_ENABLE=y |
| 279 | ccflags-$(ECM_TRACKER_DPI_SUPPORT_ENABLE) += -DECM_TRACKER_DPI_SUPPORT_ENABLE |
| 280 | |
| 281 | # ############################################################################# |
Gareth Williams | b39e7c2 | 2015-03-25 10:15:33 +0000 | [diff] [blame] | 282 | # Define ECM_DB_CLASSIFIER_TYPE_ASSIGNMENTS_TRACK_ENABLE=y in order to enable |
| 283 | # support for the database keeping lists of connections that are assigned |
| 284 | # on a per TYPE of classifier basis. |
| 285 | # ############################################################################# |
| 286 | ECM_DB_CLASSIFIER_TYPE_ASSIGNMENTS_TRACK_ENABLE=y |
| 287 | ccflags-$(ECM_DB_CLASSIFIER_TYPE_ASSIGNMENTS_TRACK_ENABLE) += -DECM_DB_CTA_TRACK_ENABLE |
| 288 | |
| 289 | # ############################################################################# |
Murat Sezgin | 8c34582 | 2015-05-27 15:35:38 -0700 | [diff] [blame] | 290 | # Define ECM_BAND_STEERING_ENABLE=y in order to enable |
| 291 | # band steering feature. |
| 292 | # ############################################################################# |
| 293 | ECM_BAND_STEERING_ENABLE=y |
| 294 | ccflags-$(ECM_BAND_STEERING_ENABLE) += -DECM_BAND_STEERING_ENABLE |
| 295 | |
| 296 | # ############################################################################# |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 297 | # Debug flags, set these to = 0 if you want to disable all debugging for that |
| 298 | # file. |
| 299 | # By turning off debugs you gain maximum ECM performance. |
| 300 | # ############################################################################# |
Murat Sezgin | c725ad8 | 2016-04-13 17:12:50 -0700 | [diff] [blame] | 301 | ccflags-y += -DECM_CLASSIFIER_DEBUG_LEVEL=1 |
Gareth Williams | 8932a91 | 2014-06-11 18:06:25 -0700 | [diff] [blame] | 302 | ccflags-y += -DECM_CLASSIFIER_DSCP_DEBUG_LEVEL=1 |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 303 | ccflags-y += -DECM_CLASSIFIER_HYFI_DEBUG_LEVEL=1 |
Gareth Williams | dcda9b9 | 2015-05-13 10:08:15 +0100 | [diff] [blame] | 304 | ccflags-y += -DECM_CLASSIFIER_PCC_DEBUG_LEVEL=1 |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 305 | ccflags-y += -DECM_CLASSIFIER_NL_DEBUG_LEVEL=1 |
| 306 | ccflags-y += -DECM_CLASSIFIER_DEFAULT_DEBUG_LEVEL=1 |
| 307 | ccflags-y += -DECM_DB_DEBUG_LEVEL=1 |
Murat Sezgin | 3ab259d | 2015-06-11 14:15:35 -0700 | [diff] [blame] | 308 | ccflags-y += -DECM_INIT_DEBUG_LEVEL=3 |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 309 | ccflags-y += -DECM_FRONT_END_IPV4_DEBUG_LEVEL=1 |
| 310 | ccflags-y += -DECM_FRONT_END_IPV6_DEBUG_LEVEL=1 |
Murat Sezgin | 5f13849 | 2015-06-11 15:18:27 -0700 | [diff] [blame] | 311 | ccflags-y += -DECM_FRONT_END_COMMON_DEBUG_LEVEL=1 |
Murat Sezgin | 3ab259d | 2015-06-11 14:15:35 -0700 | [diff] [blame] | 312 | ccflags-y += -DECM_NSS_IPV4_DEBUG_LEVEL=1 |
| 313 | ccflags-y += -DECM_NSS_PORTED_IPV4_DEBUG_LEVEL=1 |
| 314 | ccflags-y += -DECM_NSS_NON_PORTED_IPV4_DEBUG_LEVEL=1 |
| 315 | ccflags-y += -DECM_NSS_MULTICAST_IPV4_DEBUG_LEVEL=1 |
| 316 | ccflags-y += -DECM_NSS_IPV6_DEBUG_LEVEL=1 |
| 317 | ccflags-y += -DECM_NSS_PORTED_IPV6_DEBUG_LEVEL=1 |
| 318 | ccflags-y += -DECM_NSS_NON_PORTED_IPV6_DEBUG_LEVEL=1 |
| 319 | ccflags-y += -DECM_NSS_MULTICAST_IPV6_DEBUG_LEVEL=1 |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 320 | ccflags-y += -DECM_SFE_IPV4_DEBUG_LEVEL=1 |
| 321 | ccflags-y += -DECM_SFE_PORTED_IPV4_DEBUG_LEVEL=1 |
| 322 | ccflags-y += -DECM_SFE_NON_PORTED_IPV4_DEBUG_LEVEL=1 |
| 323 | ccflags-y += -DECM_SFE_IPV6_DEBUG_LEVEL=1 |
| 324 | ccflags-y += -DECM_SFE_PORTED_IPV6_DEBUG_LEVEL=1 |
| 325 | ccflags-y += -DECM_SFE_NON_PORTED_IPV6_DEBUG_LEVEL=1 |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 326 | ccflags-y += -DECM_CONNTRACK_NOTIFIER_DEBUG_LEVEL=1 |
| 327 | ccflags-y += -DECM_TRACKER_DEBUG_LEVEL=1 |
| 328 | ccflags-y += -DECM_TRACKER_DATAGRAM_DEBUG_LEVEL=1 |
| 329 | ccflags-y += -DECM_TRACKER_TCP_DEBUG_LEVEL=1 |
| 330 | ccflags-y += -DECM_TRACKER_UDP_DEBUG_LEVEL=1 |
| 331 | ccflags-y += -DECM_BOND_NOTIFIER_DEBUG_LEVEL=1 |
| 332 | ccflags-y += -DECM_INTERFACE_DEBUG_LEVEL=1 |
Gareth Williams | f98d419 | 2015-03-11 16:55:41 +0000 | [diff] [blame] | 333 | ccflags-y += -DECM_STATE_DEBUG_LEVEL=1 |
Stephen Wang | aa7e5f7 | 2015-05-12 15:25:12 -0700 | [diff] [blame] | 334 | ccflags-y += -DECM_OPENWRT_SUPPORT=1 |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 335 | |
Murat Sezgin | 7585058 | 2018-05-02 18:37:56 -0700 | [diff] [blame] | 336 | ccflags-y += -I$(obj)/ -I$(obj)/ecm_db -I$(obj)/frontends/include -I$(obj)/frontends/nss -I$(obj)/frontends/sfe |
Murat Sezgin | 7c12aba | 2015-03-16 12:01:57 -0700 | [diff] [blame] | 337 | |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 338 | obj ?= . |