[qca-ssdk]:[ReducedProfile]: cut out the code with IN_FDB_MINI and IN_MISC_MINI.

Change-Id: I26cd4abd7957a84068c68f6cdadda4bdbc57d85b
Signed-off-by: zhongjia <zhongjia@codeaurora.org>
diff --git a/include/fal/fal_fdb.h b/include/fal/fal_fdb.h
index a4f6e72..791dba9 100755
--- a/include/fal/fal_fdb.h
+++ b/include/fal/fal_fdb.h
@@ -154,14 +154,11 @@
     fal_fdb_entry_flush(a_uint32_t dev_id, a_uint32_t flag);
 
 
-#ifndef IN_FDB_MINI
     sw_error_t
     fal_fdb_entry_del_byport(a_uint32_t dev_id, a_uint32_t port_id, a_uint32_t flag);
 
-
     sw_error_t
     fal_fdb_entry_del_bymac(a_uint32_t dev_id, const fal_fdb_entry_t *entry);
-#endif
 
     sw_error_t
     fal_fdb_entry_getfirst(a_uint32_t dev_id, fal_fdb_entry_t * entry);
@@ -170,11 +167,11 @@
 #ifndef IN_FDB_MINI
     sw_error_t
     fal_fdb_entry_getnext(a_uint32_t dev_id, fal_fdb_entry_t * entry);
-
+#endif
 
     sw_error_t
     fal_fdb_entry_search(a_uint32_t dev_id, fal_fdb_entry_t * entry);
-#endif
+
 
 sw_error_t
     fal_fdb_port_learn_set(a_uint32_t dev_id, fal_port_t port_id, a_bool_t enable);
@@ -183,32 +180,38 @@
 #ifndef IN_FDB_MINI
     sw_error_t
     fal_fdb_port_learn_get(a_uint32_t dev_id, fal_port_t port_id, a_bool_t *enable);
-
+#endif
     sw_error_t
     fal_fdb_port_learning_ctrl_set(a_uint32_t dev_id, fal_port_t port_id,
                                  a_bool_t enable, fal_fwd_cmd_t cmd);
-
+#ifndef IN_FDB_MINI
     sw_error_t
     fal_fdb_port_learning_ctrl_get(a_uint32_t dev_id, fal_port_t port_id,
                                  a_bool_t *enable, fal_fwd_cmd_t *cmd);
+#endif
 
     sw_error_t
     fal_fdb_port_stamove_ctrl_set(a_uint32_t dev_id, fal_port_t port_id,
                                  a_bool_t enable, fal_fwd_cmd_t cmd);
 
+#ifndef IN_FDB_MINI
     sw_error_t
     fal_fdb_port_stamove_ctrl_get(a_uint32_t dev_id, fal_port_t port_id,
                                  a_bool_t *enable, fal_fwd_cmd_t *cmd);
+#endif
 
     sw_error_t
     fal_fdb_aging_ctrl_set(a_uint32_t dev_id, a_bool_t enable);
 
+#ifndef IN_FDB_MINI
     sw_error_t
     fal_fdb_aging_ctrl_get(a_uint32_t dev_id, a_bool_t * enable);
+#endif
 
     sw_error_t
     fal_fdb_learning_ctrl_set(a_uint32_t dev_id, a_bool_t enable);
 
+#ifndef IN_FDB_MINI
     sw_error_t
     fal_fdb_learning_ctrl_get(a_uint32_t dev_id, a_bool_t * enable);
 
@@ -305,10 +308,10 @@
 
     sw_error_t
     fal_fdb_port_maclimit_ctrl_get(a_uint32_t dev_id, fal_port_t port_id, fal_maclimit_ctrl_t * maclimit_ctrl);
+#endif
 
     sw_error_t
     fal_fdb_entry_del_byfid(a_uint32_t dev_id, a_uint16_t fid, a_uint32_t flag);
-#endif
 
 #define fal_fdb_add 	fal_fdb_entry_add
 #define fal_fdb_del_all	fal_fdb_entry_flush
diff --git a/src/adpt/hppe/adpt_hppe_fdb.c b/src/adpt/hppe/adpt_hppe_fdb.c
index d041ac5..2d8a635 100755
--- a/src/adpt/hppe/adpt_hppe_fdb.c
+++ b/src/adpt/hppe/adpt_hppe_fdb.c
@@ -523,7 +523,7 @@
 
 	return rv;
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 adpt_hppe_fdb_next(a_uint32_t dev_id, fal_fdb_entry_t * entry)
 {
@@ -541,7 +541,7 @@
 
 	return rv;
 }
-
+#endif
 sw_error_t
 adpt_hppe_fdb_add(a_uint32_t dev_id, const fal_fdb_entry_t * entry)
 {
@@ -673,7 +673,7 @@
 
 	return SW_OK;
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 adpt_hppe_fdb_transfer(a_uint32_t dev_id, fal_port_t old_port, fal_port_t new_port,
                      a_uint32_t fid, fal_fdb_op_t * option)
@@ -731,7 +731,7 @@
 
 	return SW_OK;
 }
-
+#endif
 sw_error_t
 adpt_hppe_fdb_find(a_uint32_t dev_id, fal_fdb_entry_t * entry)
 {
@@ -783,7 +783,7 @@
 	*iterator = entry_index + 1;
 	return SW_OK;
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 adpt_hppe_fdb_age_time_set(a_uint32_t dev_id, a_uint32_t * time)
 {
@@ -818,7 +818,7 @@
 
 	return SW_OK;
 }
-
+#endif
 sw_error_t
 adpt_hppe_fdb_extend_first(a_uint32_t dev_id, fal_fdb_op_t * option,
                          fal_fdb_entry_t * entry)
@@ -870,7 +870,7 @@
 
 	return hppe_l2_global_conf_set(dev_id, &l2_global_conf);
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 adpt_hppe_fdb_learn_ctrl_get(a_uint32_t dev_id, a_bool_t * enable)
 {
@@ -1070,7 +1070,7 @@
 
 	return rv;
 }
-
+#endif
 sw_error_t
 adpt_hppe_fdb_port_learn_set(a_uint32_t dev_id, fal_port_t port_id, a_bool_t enable)
 {
@@ -1089,7 +1089,7 @@
 
 	return hppe_port_bridge_ctrl_set(dev_id, port_id, &port_bridge_ctrl);
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 adpt_hppe_fdb_port_learn_get(a_uint32_t dev_id, fal_port_t port_id, a_bool_t *enable)
 {
@@ -1108,7 +1108,7 @@
 
 	return SW_OK;
 }
-
+#endif
 sw_error_t
 adpt_hppe_fdb_port_newaddr_lrn_set(a_uint32_t dev_id, fal_port_t port_id, a_bool_t enable, fal_fwd_cmd_t cmd)
 {
@@ -1128,7 +1128,7 @@
 
 	return hppe_port_bridge_ctrl_set(dev_id, port_id, &port_bridge_ctrl);
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 adpt_hppe_fdb_port_newaddr_lrn_get(a_uint32_t dev_id, fal_port_t port_id, a_bool_t *enable, fal_fwd_cmd_t *cmd)
 {
@@ -1150,7 +1150,7 @@
 
 	return SW_OK;
 }
-
+#endif
 sw_error_t
 adpt_hppe_fdb_port_stamove_set(a_uint32_t dev_id, fal_port_t port_id, a_bool_t enable, fal_fwd_cmd_t cmd)
 {
@@ -1170,7 +1170,7 @@
 
 	return hppe_port_bridge_ctrl_set(dev_id, port_id, &port_bridge_ctrl);
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 adpt_hppe_fdb_port_stamove_get(a_uint32_t dev_id, fal_port_t port_id, a_bool_t *enable, fal_fwd_cmd_t *cmd)
 {
@@ -1249,7 +1249,7 @@
 
 	return SW_OK;
 }
-
+#endif
 sw_error_t
 adpt_hppe_fdb_age_ctrl_set(a_uint32_t dev_id, a_bool_t enable)
 {
@@ -1267,7 +1267,7 @@
 
 	return hppe_l2_global_conf_set(dev_id, &l2_global_conf);
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 adpt_hppe_fdb_age_ctrl_get(a_uint32_t dev_id, a_bool_t * enable)
 {
@@ -1286,7 +1286,7 @@
 
 	return SW_OK;
 }
-
+#endif
 sw_error_t
 adpt_hppe_fdb_del_by_fid(a_uint32_t dev_id, a_uint16_t fid, a_uint32_t flag)
 {
@@ -1428,8 +1428,10 @@
 
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_ENTRY_GETFIRST))
 		p_adpt_api->adpt_fdb_first = adpt_hppe_fdb_first;
+#ifndef IN_FDB_MINI
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_ENTRY_GETNEXT))
 		p_adpt_api->adpt_fdb_next = adpt_hppe_fdb_next;
+#endif
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_ENTRY_ADD))
 		p_adpt_api->adpt_fdb_add = adpt_hppe_fdb_add;
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_ENTRY_DEL_BYPORT))
@@ -1438,22 +1440,27 @@
 		p_adpt_api->adpt_fdb_del_by_mac = adpt_hppe_fdb_del_by_mac;
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_ENTRY_FLUSH))
 		p_adpt_api->adpt_fdb_del_all = adpt_hppe_fdb_del_all;
+#ifndef IN_FDB_MINI
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_ENTRY_UPDATE_BYPORT))
 		p_adpt_api->adpt_fdb_transfer = adpt_hppe_fdb_transfer;
+#endif
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_ENTRY_SEARCH))
 		p_adpt_api->adpt_fdb_find = adpt_hppe_fdb_find;
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_ENTRY_GETNEXT_BYINDEX))
 		p_adpt_api->adpt_fdb_iterate = adpt_hppe_fdb_iterate;
+#ifndef IN_FDB_MINI
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_AGING_TIME_SET))
 		p_adpt_api->adpt_fdb_age_time_set = adpt_hppe_fdb_age_time_set;
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_AGING_TIME_GET))
 		p_adpt_api->adpt_fdb_age_time_get = adpt_hppe_fdb_age_time_get;
+#endif
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_ENTRY_EXTEND_GETFIRST))
 		p_adpt_api->adpt_fdb_extend_first = adpt_hppe_fdb_extend_first;
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_ENTRY_EXTEND_GETNEXT))
 		p_adpt_api->adpt_fdb_extend_next = adpt_hppe_fdb_extend_next;
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_LEARNING_CTRL_SET))
 		p_adpt_api->adpt_fdb_learn_ctrl_set = adpt_hppe_fdb_learn_ctrl_set;
+#ifndef IN_FDB_MINI
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_LEARNING_CTRL_GET))
 		p_adpt_api->adpt_fdb_learn_ctrl_get = adpt_hppe_fdb_learn_ctrl_get;
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_PORT_FDB_LEARN_LIMIT_SET))
@@ -1464,16 +1471,22 @@
 		p_adpt_api->adpt_fdb_port_add = adpt_hppe_fdb_port_add;
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_PORT_DEL))
 		p_adpt_api->adpt_fdb_port_del = adpt_hppe_fdb_port_del;
+#endif
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_PORT_LEARN_SET))
 		p_adpt_api->adpt_fdb_port_learn_set = adpt_hppe_fdb_port_learn_set;
+#ifndef IN_FDB_MINI
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_PORT_LEARN_GET))
 		p_adpt_api->adpt_fdb_port_learn_get = adpt_hppe_fdb_port_learn_get;
+#endif
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_PORT_LEARNING_CTRL_SET))
 		p_adpt_api->adpt_fdb_port_newaddr_lrn_set = adpt_hppe_fdb_port_newaddr_lrn_set;
+#ifndef IN_FDB_MINI
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_PORT_LEARNING_CTRL_GET))
 		p_adpt_api->adpt_fdb_port_newaddr_lrn_get = adpt_hppe_fdb_port_newaddr_lrn_get;
+#endif
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_PORT_STAMOVE_CTRL_SET))
 		p_adpt_api->adpt_fdb_port_stamove_set = adpt_hppe_fdb_port_stamove_set;
+#ifndef IN_FDB_MINI
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_PORT_STAMOVE_CTRL_GET))
 		p_adpt_api->adpt_fdb_port_stamove_get = adpt_hppe_fdb_port_stamove_get;
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_PORT_LEARNED_MAC_COUNTER_GET))
@@ -1482,14 +1495,17 @@
 		p_adpt_api->adpt_port_fdb_learn_exceed_cmd_set = adpt_hppe_port_fdb_learn_exceed_cmd_set;
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_PORT_FDB_LEARN_EXCEED_CMD_GET))
 		p_adpt_api->adpt_port_fdb_learn_exceed_cmd_get = adpt_hppe_port_fdb_learn_exceed_cmd_get;
+#endif
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_AGING_CTRL_SET))
 		p_adpt_api->adpt_fdb_age_ctrl_set = adpt_hppe_fdb_age_ctrl_set;
+#ifndef IN_FDB_MINI
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_AGING_CTRL_GET))
 		p_adpt_api->adpt_fdb_age_ctrl_get = adpt_hppe_fdb_age_ctrl_get;
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_PORT_MACLIMIT_CTRL_SET))
 		p_adpt_api->adpt_fdb_port_maclimit_ctrl_set = adpt_hppe_fdb_port_maclimit_ctrl_set;
 	if (p_adpt_api->adpt_fdb_func_bitmap[0] & (1 << FUNC_FDB_PORT_MACLIMIT_CTRL_GET))
 		p_adpt_api->adpt_fdb_port_maclimit_ctrl_get = adpt_hppe_fdb_port_maclimit_ctrl_get;
+#endif
 	if (p_adpt_api->adpt_fdb_func_bitmap[1] & (1 << (FUNC_FDB_DEL_BY_FID % 32)))
 		p_adpt_api->adpt_fdb_del_by_fid = adpt_hppe_fdb_del_by_fid;
 
diff --git a/src/adpt/hppe/adpt_hppe_misc.c b/src/adpt/hppe/adpt_hppe_misc.c
index b6b0d77..0d396d1 100755
--- a/src/adpt/hppe/adpt_hppe_misc.c
+++ b/src/adpt/hppe/adpt_hppe_misc.c
@@ -34,6 +34,7 @@
 #define VP_PORT_MIN_ID	64
 #define PHYSICAL_PORT_MAX_ID	7
 
+#ifndef IN_MISC_MINI
 char cpucode[][85] = {
 "Forwarding to CPU",
 "Unkown L2 protocol exception redirect/copy to CPU",
@@ -951,7 +952,7 @@
 
 	return SW_OK;
 }
-
+#endif
 sw_error_t adpt_hppe_misc_init(a_uint32_t dev_id)
 {
 	adpt_api_t *p_adpt_api = NULL;
@@ -960,13 +961,13 @@
 
 	if(p_adpt_api == NULL)
 		return SW_FAIL;
-
+#ifndef IN_MISC_MINI
 	p_adpt_api->adpt_debug_port_counter_enable = adpt_hppe_debug_port_counter_enable;
 	p_adpt_api->adpt_debug_port_counter_status_get = adpt_hppe_debug_port_counter_status_get;
 
 	p_adpt_api->adpt_debug_counter_set = adpt_hppe_debug_counter_set;
 	p_adpt_api->adpt_debug_counter_get = adpt_hppe_debug_counter_get;
-
+#endif
 	return SW_OK;
 }
 
diff --git a/src/fal/fal_fdb.c b/src/fal/fal_fdb.c
index 520a122..02dc74a 100755
--- a/src/fal/fal_fdb.c
+++ b/src/fal/fal_fdb.c
@@ -76,7 +76,6 @@
     return rv;
 }
 
-#ifndef IN_FDB_MINI
 static sw_error_t
 _fal_fdb_entry_del_byport(a_uint32_t dev_id, fal_port_t port_id, a_uint32_t flag)
 {
@@ -125,7 +124,6 @@
     rv = p_api->fdb_del_by_mac(dev_id, entry);
     return rv;
 }
-#endif
 
 static sw_error_t
 _fal_fdb_entry_getfirst(a_uint32_t dev_id, fal_fdb_entry_t * entry)
@@ -175,7 +173,7 @@
     rv = p_api->fdb_next(dev_id, entry);
     return rv;
 }
-
+#endif
 
 static sw_error_t
 _fal_fdb_entry_search(a_uint32_t dev_id, fal_fdb_entry_t * entry)
@@ -200,7 +198,6 @@
     rv = p_api->fdb_find(dev_id, entry);
     return rv;
 }
-#endif
 
 static sw_error_t
 _fal_fdb_port_learn_set(a_uint32_t dev_id, fal_port_t port_id, a_bool_t enable)
@@ -250,6 +247,7 @@
     rv = p_api->port_learn_get(dev_id, port_id, enable);
     return rv;
 }
+#endif
 
 static sw_error_t
 _fal_fdb_port_learning_ctrl_set(a_uint32_t dev_id, fal_port_t port_id, a_bool_t enable, fal_fwd_cmd_t cmd)
@@ -266,6 +264,7 @@
     return rv;
 }
 
+#ifndef IN_FDB_MINI
 static sw_error_t
 _fal_fdb_port_learning_ctrl_get(a_uint32_t dev_id, fal_port_t port_id, a_bool_t *enable, fal_fwd_cmd_t *cmd)
 {
@@ -280,6 +279,7 @@
     rv = p_api->adpt_fdb_port_newaddr_lrn_get(dev_id, port_id, enable, cmd);
     return rv;
 }
+#endif
 
 static sw_error_t
 _fal_fdb_port_stamove_ctrl_set(a_uint32_t dev_id, fal_port_t port_id, a_bool_t enable, fal_fwd_cmd_t cmd)
@@ -296,6 +296,7 @@
     return rv;
 }
 
+#ifndef IN_FDB_MINI
 static sw_error_t
 _fal_fdb_port_stamove_ctrl_get(a_uint32_t dev_id, fal_port_t port_id, a_bool_t *enable, fal_fwd_cmd_t *cmd)
 {
@@ -310,6 +311,7 @@
     rv = p_api->adpt_fdb_port_stamove_get(dev_id, port_id, enable, cmd);
     return rv;
 }
+#endif
 
 static sw_error_t
 _fal_fdb_aging_ctrl_set(a_uint32_t dev_id, a_bool_t enable)
@@ -335,7 +337,7 @@
     return rv;
 }
 
-
+#ifndef IN_FDB_MINI
 static sw_error_t
 _fal_fdb_aging_ctrl_get(a_uint32_t dev_id, a_bool_t * enable)
 {
@@ -870,6 +872,7 @@
 	rv = p_api->fdb_rfs_del(dev_id, entry);
 	return rv;
 }
+#endif
 
 sw_error_t
 _fal_fdb_learning_ctrl_set(a_uint32_t dev_id, a_bool_t enable)
@@ -885,6 +888,8 @@
     rv = p_api->adpt_fdb_learn_ctrl_set(dev_id, enable);
     return rv;
 }
+
+#ifndef IN_FDB_MINI
 sw_error_t
 _fal_fdb_learning_ctrl_get(a_uint32_t dev_id, a_bool_t * enable)
 {
@@ -942,6 +947,7 @@
     rv = p_api->adpt_fdb_port_maclimit_ctrl_get(dev_id, port_id, maclimit_ctrl);
     return rv;
 }
+#endif
 sw_error_t
 _fal_fdb_entry_del_byfid(a_uint32_t dev_id, a_uint16_t fid, a_uint32_t flag)
 {
@@ -956,7 +962,7 @@
     rv = p_api->adpt_fdb_del_by_fid(dev_id, fid, flag);
     return rv;
 }
-
+#ifndef IN_FDB_MINI
 /*insert flag for inner fal, don't remove it*/
 
 /**
@@ -997,7 +1003,6 @@
     return rv;
 }
 
-#ifndef IN_FDB_MINI
 /**
  * @brief Delete Fdb entries on a particular port
  *   @details   Comments:
@@ -1038,7 +1043,6 @@
     FAL_API_UNLOCK;
     return rv;
 }
-#endif
 
 /**
  * @brief Get first Fdb entry from particular device
@@ -1076,6 +1080,7 @@
     FAL_API_UNLOCK;
     return rv;
 }
+#endif
 
 /**
  * @brief Find a particular Fdb entry from device through mac address.
@@ -1096,7 +1101,6 @@
     FAL_API_UNLOCK;
     return rv;
 }
-#endif
 
 /**
  * @brief Set dynamic address and station move learning status on a particular port.
@@ -1137,6 +1141,7 @@
     FAL_API_UNLOCK;
     return rv;
 }
+#endif
 
 /**
  * @brief Set dynamic address learning and forward command on a particular port.
@@ -1157,6 +1162,7 @@
     return rv;
 }
 
+#ifndef IN_FDB_MINI
 /**
  * @brief Get dynamic address learning and forward command on a particular port.
  * @param[in] dev_id device id
@@ -1175,6 +1181,7 @@
     FAL_API_UNLOCK;
     return rv;
 }
+#endif
 
 /**
  * @brief Set station move learning and forward command on a particular port.
@@ -1195,6 +1202,7 @@
     return rv;
 }
 
+#ifndef IN_FDB_MINI
 /**
  * @brief Get station move learning and forward command on a particular port.
  * @param[in] dev_id device id
@@ -1213,6 +1221,7 @@
     FAL_API_UNLOCK;
     return rv;
 }
+#endif
 
 /**
  * @brief Set dynamic address aging status on particular device.
@@ -1234,6 +1243,7 @@
     return rv;
 }
 
+#ifndef IN_FDB_MINI
 /**
  * @brief Get dynamic address aging status on particular device.
  * @param[in] dev_id device id
@@ -1769,6 +1779,8 @@
     FAL_API_UNLOCK;
     return rv;
 }
+
+#ifndef IN_FDB_MINI
 sw_error_t
 fal_fdb_learning_ctrl_get(a_uint32_t dev_id, a_bool_t * enable)
 {
@@ -1810,6 +1822,7 @@
     FAL_API_UNLOCK;
     return rv;
 }
+#endif
 sw_error_t
 fal_fdb_entry_del_byfid(a_uint32_t dev_id, a_uint16_t fid, a_uint32_t flag)
 {
@@ -1821,35 +1834,48 @@
     return rv;
 }
 
-
 #ifndef IN_FDB_MINI
 
     EXPORT_SYMBOL(fal_fdb_entry_add);
 
+#endif
+
     EXPORT_SYMBOL(fal_fdb_entry_del_byport);
 
+
     EXPORT_SYMBOL(fal_fdb_entry_del_bymac);
 
+
     EXPORT_SYMBOL(fal_fdb_entry_search);
 
+#ifndef IN_FDB_MINI
+
     EXPORT_SYMBOL(fal_fdb_port_learn_get);
 
-    EXPORT_SYMBOL(fal_fdb_port_learning_ctrl_set);
-
 #endif
 
+    EXPORT_SYMBOL(fal_fdb_port_learning_ctrl_set);
+
     EXPORT_SYMBOL(fal_fdb_entry_flush);
 
     EXPORT_SYMBOL(fal_fdb_entry_getfirst);
 
+#ifndef IN_FDB_MINI
+
     EXPORT_SYMBOL(fal_fdb_entry_getnext);
 
+#endif
+
     EXPORT_SYMBOL(fal_fdb_port_learn_set);
 
     EXPORT_SYMBOL(fal_fdb_learning_ctrl_set);
 
+#ifndef IN_FDB_MINI
+
     EXPORT_SYMBOL(fal_fdb_learning_ctrl_get);
 
+#endif
+
     EXPORT_SYMBOL(fal_fdb_entry_getnext_byindex);
 
     EXPORT_SYMBOL(fal_fdb_entry_extend_getnext);
@@ -1860,12 +1886,20 @@
 
     EXPORT_SYMBOL(fal_fdb_port_learning_ctrl_get);
 
+#endif
+
     EXPORT_SYMBOL(fal_fdb_port_stamove_ctrl_set);
 
+#ifndef IN_FDB_MINI
+
     EXPORT_SYMBOL(fal_fdb_port_stamove_ctrl_get);
 
+#endif
+
     EXPORT_SYMBOL(fal_fdb_aging_ctrl_set);
 
+#ifndef IN_FDB_MINI
+
     EXPORT_SYMBOL(fal_fdb_aging_ctrl_get);
 
     EXPORT_SYMBOL(fal_fdb_aging_time_set);
@@ -1890,11 +1924,16 @@
 
     EXPORT_SYMBOL(fal_fdb_port_maclimit_ctrl_get);
 
-    EXPORT_SYMBOL(fal_fdb_entry_del_byfid);
 #endif
 
+    EXPORT_SYMBOL(fal_fdb_entry_del_byfid);
+
+#ifndef IN_FDB_MINI
+
     EXPORT_SYMBOL(fal_fdb_port_learned_mac_counter_get);
 
+#endif
+
 /*insert flag for outter fal, don't remove it*/
 
 /**
diff --git a/src/hsl/hppe/hppe_fdb.c b/src/hsl/hppe/hppe_fdb.c
index b139b79..43481d0 100755
--- a/src/hsl/hppe/hppe_fdb.c
+++ b/src/hsl/hppe/hppe_fdb.c
@@ -22,7 +22,7 @@
 #include "hppe_reg_access.h"
 #include "hppe_fdb_reg.h"
 #include "hppe_fdb.h"
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_l2_dbg_addr_get(
 		a_uint32_t dev_id,
@@ -74,7 +74,7 @@
 				IPE_L2_BASE_ADDR + FDB_TBL_OP_ADDRESS,
 				&value->val);
 }
-
+#endif
 sw_error_t
 hppe_fdb_tbl_op_set(
 		a_uint32_t dev_id,
@@ -85,7 +85,7 @@
 				IPE_L2_BASE_ADDR + FDB_TBL_OP_ADDRESS,
 				value->val);
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_fdb_tbl_rd_op_get(
 		a_uint32_t dev_id,
@@ -96,7 +96,7 @@
 				IPE_L2_BASE_ADDR + FDB_TBL_RD_OP_ADDRESS,
 				&value->val);
 }
-
+#endif
 sw_error_t
 hppe_fdb_tbl_rd_op_set(
 		a_uint32_t dev_id,
@@ -118,7 +118,7 @@
 				IPE_L2_BASE_ADDR + FDB_TBL_OP_RSLT_ADDRESS,
 				&value->val);
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_fdb_tbl_op_rslt_set(
 		a_uint32_t dev_id,
@@ -126,7 +126,7 @@
 {
 	return SW_NOT_SUPPORTED;
 }
-
+#endif
 sw_error_t
 hppe_fdb_tbl_rd_op_rslt_get(
 		a_uint32_t dev_id,
@@ -137,7 +137,7 @@
 				IPE_L2_BASE_ADDR + FDB_TBL_RD_OP_RSLT_ADDRESS,
 				&value->val);
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_fdb_tbl_rd_op_rslt_set(
 		a_uint32_t dev_id,
@@ -167,7 +167,7 @@
 				IPE_L2_BASE_ADDR + AGE_TIMER_ADDRESS,
 				value->val);
 }
-
+#endif
 sw_error_t
 hppe_l2_global_conf_get(
 		a_uint32_t dev_id,
@@ -189,7 +189,7 @@
 				IPE_L2_BASE_ADDR + L2_GLOBAL_CONF_ADDRESS,
 				value->val);
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_l2_dbgcnt_cmd_get(
 		a_uint32_t dev_id,
@@ -252,7 +252,7 @@
 				IPE_L2_BASE_ADDR + L2_DBGCNT_WDATA_ADDRESS,
 				value->val);
 }
-
+#endif
 sw_error_t
 hppe_fdb_tbl_rd_op_rslt_data0_get(
 		a_uint32_t dev_id,
@@ -282,7 +282,7 @@
 				IPE_L2_BASE_ADDR + FDB_TBL_RD_OP_RSLT_DATA1_ADDRESS,
 				&value->val);
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_fdb_tbl_rd_op_rslt_data1_set(
 		a_uint32_t dev_id,
@@ -290,7 +290,7 @@
 {
 	return SW_NOT_SUPPORTED;
 }
-
+#endif
 sw_error_t
 hppe_fdb_tbl_rd_op_rslt_data2_get(
 		a_uint32_t dev_id,
@@ -301,7 +301,7 @@
 				IPE_L2_BASE_ADDR + FDB_TBL_RD_OP_RSLT_DATA2_ADDRESS,
 				&value->val);
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_fdb_tbl_rd_op_rslt_data2_set(
 		a_uint32_t dev_id,
@@ -309,7 +309,7 @@
 {
 	return SW_NOT_SUPPORTED;
 }
-
+#endif
 sw_error_t
 hppe_fdb_tbl_op_data0_get(
 		a_uint32_t dev_id,
@@ -469,7 +469,7 @@
 				index * PORT_BRIDGE_CTRL_INC,
 				value->val);
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_port_lrn_limit_ctrl_get(
 		a_uint32_t dev_id,
@@ -521,7 +521,7 @@
 {
 	return SW_NOT_SUPPORTED;
 }
-
+#endif
 sw_error_t
 hppe_rfdb_tbl_get(
 		a_uint32_t dev_id,
@@ -549,7 +549,7 @@
 				value->val,
 				2);
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_fdb_tbl_get(
 		a_uint32_t dev_id,
@@ -1541,7 +1541,7 @@
 	ret = hppe_l2_dbgcnt_wdata_set(dev_id, &reg_val);
 	return ret;
 }
-
+#endif
 sw_error_t
 hppe_fdb_tbl_rd_op_rslt_data0_data_get(
 		a_uint32_t dev_id,
@@ -1554,7 +1554,7 @@
 	*value = reg_val.bf.data;
 	return ret;
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_fdb_tbl_rd_op_rslt_data0_data_set(
 		a_uint32_t dev_id,
@@ -1562,7 +1562,7 @@
 {
 	return SW_NOT_SUPPORTED;
 }
-
+#endif
 sw_error_t
 hppe_fdb_tbl_rd_op_rslt_data1_data_get(
 		a_uint32_t dev_id,
@@ -1575,7 +1575,7 @@
 	*value = reg_val.bf.data;
 	return ret;
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_fdb_tbl_rd_op_rslt_data1_data_set(
 		a_uint32_t dev_id,
@@ -1583,7 +1583,7 @@
 {
 	return SW_NOT_SUPPORTED;
 }
-
+#endif
 sw_error_t
 hppe_fdb_tbl_rd_op_rslt_data2_data_get(
 		a_uint32_t dev_id,
@@ -1596,7 +1596,7 @@
 	*value = reg_val.bf.data;
 	return ret;
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_fdb_tbl_rd_op_rslt_data2_data_set(
 		a_uint32_t dev_id,
@@ -1617,7 +1617,7 @@
 	*value = reg_val.bf.data;
 	return ret;
 }
-
+#endif
 sw_error_t
 hppe_fdb_tbl_op_data0_data_set(
 		a_uint32_t dev_id,
@@ -1633,7 +1633,7 @@
 	ret = hppe_fdb_tbl_op_data0_set(dev_id, &reg_val);
 	return ret;
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_fdb_tbl_op_data1_data_get(
 		a_uint32_t dev_id,
@@ -1646,7 +1646,7 @@
 	*value = reg_val.bf.data;
 	return ret;
 }
-
+#endif
 sw_error_t
 hppe_fdb_tbl_op_data1_data_set(
 		a_uint32_t dev_id,
@@ -1662,7 +1662,7 @@
 	ret = hppe_fdb_tbl_op_data1_set(dev_id, &reg_val);
 	return ret;
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_fdb_tbl_op_data2_data_get(
 		a_uint32_t dev_id,
@@ -1675,7 +1675,7 @@
 	*value = reg_val.bf.data;
 	return ret;
 }
-
+#endif
 sw_error_t
 hppe_fdb_tbl_op_data2_data_set(
 		a_uint32_t dev_id,
@@ -1691,7 +1691,7 @@
 	ret = hppe_fdb_tbl_op_data2_set(dev_id, &reg_val);
 	return ret;
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_fdb_tbl_rd_op_data0_data_get(
 		a_uint32_t dev_id,
@@ -1704,7 +1704,7 @@
 	*value = reg_val.bf.data;
 	return ret;
 }
-
+#endif
 sw_error_t
 hppe_fdb_tbl_rd_op_data0_data_set(
 		a_uint32_t dev_id,
@@ -1720,7 +1720,7 @@
 	ret = hppe_fdb_tbl_rd_op_data0_set(dev_id, &reg_val);
 	return ret;
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_fdb_tbl_rd_op_data1_data_get(
 		a_uint32_t dev_id,
@@ -1733,7 +1733,7 @@
 	*value = reg_val.bf.data;
 	return ret;
 }
-
+#endif
 sw_error_t
 hppe_fdb_tbl_rd_op_data1_data_set(
 		a_uint32_t dev_id,
@@ -1749,7 +1749,7 @@
 	ret = hppe_fdb_tbl_rd_op_data1_set(dev_id, &reg_val);
 	return ret;
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_fdb_tbl_rd_op_data2_data_get(
 		a_uint32_t dev_id,
@@ -1762,7 +1762,7 @@
 	*value = reg_val.bf.data;
 	return ret;
 }
-
+#endif
 sw_error_t
 hppe_fdb_tbl_rd_op_data2_data_set(
 		a_uint32_t dev_id,
@@ -1778,7 +1778,7 @@
 	ret = hppe_fdb_tbl_rd_op_data2_set(dev_id, &reg_val);
 	return ret;
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_port_bridge_ctrl_txmac_en_get(
 		a_uint32_t dev_id,
@@ -2111,7 +2111,7 @@
 {
 	return SW_NOT_SUPPORTED;
 }
-
+#endif
 sw_error_t
 hppe_rfdb_tbl_mac_addr_get(
 		a_uint32_t dev_id,
@@ -2144,7 +2144,7 @@
 	ret = hppe_rfdb_tbl_set(dev_id, index, &reg_val);
 	return ret;
 }
-
+#ifndef IN_FDB_MINI
 sw_error_t
 hppe_rfdb_tbl_valid_get(
 		a_uint32_t dev_id,
@@ -2158,7 +2158,7 @@
 	*value = reg_val.bf.valid;
 	return ret;
 }
-
+#endif
 sw_error_t
 hppe_rfdb_tbl_valid_set(
 		a_uint32_t dev_id,