index c8f2b5e2a57269820ed339af689469e68405357a..8da5725d219c572b21b1dfe784e634d85c020c0a 100755 (executable)
*
* REVISION HISTORY:
*
- * Copyright (c) Texas Instruments Incorporated 2010-2011
+ * Copyright (c) Texas Instruments Incorporated 2013
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
#ifndef __NETAPI_TUNE__H
#define __NETAPI_TUNE__H
-
+#ifdef __cplusplus
+extern "C" {
+#endif
/**
* @ingroup tune_parameters
* @def NETAPI_ENABLE_SECURITY
* @def TUNE_NETAPI_NUM_CORES
* This defines the number of cores (theads)
*/
-#define TUNE_NETAPI_NUM_CORES 1
+#define TUNE_NETAPI_NUM_CORES 5
/**
* @ingroup tune_parameters
*/
#define TUNE_NETAPI_DESC_SIZE 128
-#ifdef NETAPI_USE_DDR
-/**
- * @ingroup tune_parameters
- * @def TUNE_NETAPI_QM_START_INDEX
- * This defines the queue manager start index
- * @note This must reflect what the kernel is uding for their region, see device tree blob for details.
- */
-#define TUNE_NETAPI_QM_START_INDEX 0x2000 //WARNING: must reflect what kernel is using for their region, see device tree blob
-
-/**
- * @ingroup tune_parameters
- * @def TUNE_NETAPI_QM_GLOBAL_REGION
- * This defines the queue manager global region
- * @note This must reflect what the kernel is uding for their region, see device tree blob for details.
- */
-#define TUNE_NETAPI_QM_GLOBAL_REGION 18 //WARNING: must reflect what kernel is using for their region, see device tree blob
-
-#else //use msmc..
-/**
- * @ingroup tune_parameters
- * @def TUNE_NETAPI_QM_START_INDEX
- * This defines the queue manager start index
- * @note This must reflect what the kernel is uding for their region, see device tree blob for details.
- */
-#define TUNE_NETAPI_QM_START_INDEX 0 //ok to use 0 since kernel is somewhere higher
-
-/**
- * @ingroup tune_parameters
- * @def TUNE_NETAPI_QM_GLOBAL_REGION
- * This defines the queue manager global region
- * @note This must reflect what the kernel is uding for their region, see device tree blob for details.
- */
-#define TUNE_NETAPI_QM_GLOBAL_REGION 0 //ok to to use 0 since msmc addr < ddr addr
-
-#endif
-
/**
* @ingroup tune_parameters
* @def TUNE_NETAPI_NWAL_ENABLE_PASS_LOOPBACK
/// @cond INTERNAL
//(10) NWAL (internal) config. Should not have to change
#define TUNE_NETAPI_CONFIG_MAX_PA_TO_SA_DESC 32
-#define TUNE_NETAPI_CONFIG_MAX_SA_TO_PA_DESC 32
+#define TUNE_NETAPI_CONFIG_MAX_SA_TO_PA_DESC 200
/// @endcond
/**
* @def TUNE_NETAPI_MAX_NUM_MAC
* This defines the number of logical mac addresses
*/
-#define TUNE_NETAPI_MAX_NUM_MAC 2
+#define TUNE_NETAPI_MAX_NUM_MAC 64
/**
* @ingroup tune_parameters
* @def TUNE_NETAPI_MAX_NUM_IP
* This defines the number of ip addresses
*/
-#define TUNE_NETAPI_MAX_NUM_IP 32
+#define TUNE_NETAPI_MAX_NUM_IP 64
/**
* @ingroup tune_parameters
* @def TUNE_NETAPI_MAX_NUM_IPSEC_CHANNELS
* This defines the number maximum number of ipsec channels
*/
-#define TUNE_NETAPI_MAX_NUM_IPSEC_CHANNELS 64
+#define TUNE_NETAPI_MAX_NUM_IPSEC_CHANNELS 128
#else
/**
* @ingroup tune_parameters
/**
* @ingroup tune_parameters
* @def TUNE_NETAPI_MAX_NUM_L2_L3_HDRS
- * This defines the number maximum number of L2_L3 headers TBD
+ * This defines the number maximum number of L2_L3 headers to reserve in the nwal layer. This should be kept small as transport lib does not expose this inwal feature by default
*/
#define TUNE_NETAPI_MAX_NUM_L2_L3_HDRS 3
/**
* @ingroup tune_parameters
* @def TUNE_NETAPI_MAX_NUM_TRANS
- * This defines the number maximum number of trans TBD
+ * This defines the number maximum number of transactions with NETCP that can be outstanding at any one time
*/
#define TUNE_NETAPI_MAX_NUM_TRANS (TUNE_NETAPI_MAX_NUM_MAC + TUNE_NETAPI_MAX_NUM_IP + TUNE_NETAPI_MAX_NUM_PORTS + TUNE_NETAPI_MAX_NUM_IPSEC_CHANNELS)
/// @cond INTERNAL
/* PA control buffer pool (internal) */
-#define TUNE_NETAPI_CONFIG_MAX_CTL_RXTX_BUF_SIZE 384
+#define TUNE_NETAPI_CONFIG_MAX_CTL_RXTX_BUF_SIZE 2400
#define TUNE_NETAPI_CONFIG_NUM_CTL_RX_BUF 16
#define TUNE_NETAPI_CONFIG_NUM_CTL_TX_BUF 16
/// @endcond
*/
#define TUNE_NETAPI_MAX_BURST_RCV 32
-/**
- * @ingroup tune_parameters
- * @def TUNE_NETAPI_MAX_IP
- * This defines the maximum number of IP's that can be attached to MAC interfaces.
- */
-#define TUNE_NETAPI_MAX_IP 4
-
-/**
- * @ingroup tune_parameters
- * @def TUNE_NETAPI_MAX_INTERFACES
- * This defines the maximum number of MAX interfaces */
-#define TUNE_NETAPI_MAX_INTERFACES 2
-
/**
* @ingroup tune_parameters
* @def TUNE_NETAPI_NUM_TIMER_CELLS
* This defines the number of hash bins in a timer group.
*/
-#define TUNE_NETAPI_NUM_TIMER_CELLS 128 //# of hash bins in a timer group
+#define TUNE_NETAPI_NUM_TIMER_CELLS 128
/**
* @ingroup tune_parameters
* @def TUNE_NETAPI_NUM_GLOBAL_TIMERS
* This defines the number of global timer blocks
*/
-#define TUNE_NETAPI_NUM_GLOBAL_TIMERS 4 //# global timer blocks
+#define TUNE_NETAPI_NUM_GLOBAL_TIMERS 4
/**
* @ingroup tune_parameters
* @def TUNE_NETAPI_MAX_HEAPS
- * This defines the maximum number of heaps
+ * This defines the maximum number of heaps one NETAPI instance can create
*/
-#define TUNE_NETAPI_MAX_HEAPS 4 //max # of heaps one instance can create
+#define TUNE_NETAPI_MAX_HEAPS 4
/**
* @ingroup tune_parameters
/**
* @ingroup tune_parameters
* @def TUNE_NETAPI_MAX_BUF_POOLS_IN_FLOW
- * This defines the maximum number of buffer pools in flow -TBD
- * @note This define should NOT be changes
+ * This defines the maximum number of buffer pools in a flow - A flow is used by hardware
+ * when it needs a buffer for a receive packet. This define allows the maximum number
+ * of pools (free descriptor queues) to be defined for a flow, so that different sized packets
+ * can be allocated from different memory areas.
+ * @note This define should NOT be changed as HW assumes at most 4 now
*/
-#define TUNE_NETAPI_MAX_BUF_POOLS_IN_FLOW 4 //!!do not change!!
+#define TUNE_NETAPI_MAX_BUF_POOLS_IN_FLOW 4
/**
* @def TUNE_NETAPI_MAX_SA
* This defines the maximum number of security associations
*/
-#define TUNE_NETAPI_MAX_SA 64 //rx&tx combined (so MAX_SA/4 tunnels typically)
+#define TUNE_NETAPI_MAX_SA 128 //rx&tx combined (so MAX_SA/4 tunnels typically)
/**
* @ingroup tune_parameters
* @def TUNE_NETAPI_MAX_POLICY
* This defines the maximum number of security policies.
*/
-#define TUNE_NETAPI_MAX_POLICY 64 //rx policies
+#define TUNE_NETAPI_MAX_POLICY 128 //rx policies
+#ifdef __cplusplus
+}
+#endif
#endif