Go to the documentation of this file.
14 #ifndef VXGE_TRAFFIC_H
15 #define VXGE_TRAFFIC_H
20 #define VXGE_HW_DTR_MAX_T_CODE 16
21 #define VXGE_HW_ALL_FOXES 0xFFFFFFFFFFFFFFFFULL
22 #define VXGE_HW_INTR_MASK_ALL 0xFFFFFFFFFFFFFFFFULL
23 #define VXGE_HW_MAX_VIRTUAL_PATHS 17
25 #define VXGE_HW_MAC_MAX_MAC_PORT_ID 2
27 #define VXGE_HW_DEFAULT_32 0xffffffff
29 #define VXGE_HW_HEADER_802_2_SIZE 3
30 #define VXGE_HW_HEADER_SNAP_SIZE 5
31 #define VXGE_HW_HEADER_VLAN_SIZE 4
32 #define VXGE_HW_MAC_HEADER_MAX_SIZE \
34 VXGE_HW_HEADER_802_2_SIZE + \
35 VXGE_HW_HEADER_VLAN_SIZE + \
36 VXGE_HW_HEADER_SNAP_SIZE)
39 #define VXGE_HW_HEADER_ETHERNET_II_802_3_ALIGN 2
40 #define VXGE_HW_HEADER_802_2_SNAP_ALIGN 2
41 #define VXGE_HW_HEADER_802_2_ALIGN 3
42 #define VXGE_HW_HEADER_SNAP_ALIGN 1
44 #define VXGE_HW_L3_CKSUM_OK 0xFFFF
45 #define VXGE_HW_L4_CKSUM_OK 0xFFFF
68 #define VXGE_HW_EVENT_BASE 0
69 #define VXGE_LL_EVENT_BASE 100
111 #define VXGE_HW_SET_LEVEL(a, b) (((a) > (b)) ? (a) : (b))
165 #define VXGE_HW_MAX_INTR_PER_VP 4
166 #define VXGE_HW_VPATH_INTR_TX 0
167 #define VXGE_HW_VPATH_INTR_RX 1
168 #define VXGE_HW_VPATH_INTR_EINTA 2
169 #define VXGE_HW_VPATH_INTR_BMAP 3
171 #define VXGE_HW_BLOCK_SIZE 4096
236 #define VXGE_HW_TIM_INTR_ENABLE 1
237 #define VXGE_HW_TIM_INTR_DISABLE 0
238 #define VXGE_HW_TIM_INTR_DEFAULT 0
241 #define VXGE_HW_MIN_TIM_BTIMER_VAL 0
242 #define VXGE_HW_MAX_TIM_BTIMER_VAL 67108864
243 #define VXGE_HW_USE_FLASH_DEFAULT (~0)
246 #define VXGE_HW_TIM_TIMER_AC_ENABLE 1
247 #define VXGE_HW_TIM_TIMER_AC_DISABLE 0
250 #define VXGE_HW_TIM_TIMER_CI_ENABLE 1
251 #define VXGE_HW_TIM_TIMER_CI_DISABLE 0
254 #define VXGE_HW_TIM_TIMER_RI_ENABLE 1
255 #define VXGE_HW_TIM_TIMER_RI_DISABLE 0
258 #define VXGE_HW_MIN_TIM_RTIMER_VAL 0
259 #define VXGE_HW_MAX_TIM_RTIMER_VAL 67108864
262 #define VXGE_HW_TIM_UTIL_SEL_LEGACY_TX_NET_UTIL 17
263 #define VXGE_HW_TIM_UTIL_SEL_LEGACY_RX_NET_UTIL 18
264 #define VXGE_HW_TIM_UTIL_SEL_LEGACY_TX_RX_AVE_NET_UTIL 19
265 #define VXGE_HW_TIM_UTIL_SEL_PER_VPATH 63
268 #define VXGE_HW_MIN_TIM_LTIMER_VAL 0
269 #define VXGE_HW_MAX_TIM_LTIMER_VAL 67108864
273 #define VXGE_HW_MIN_TIM_URANGE_A 0
274 #define VXGE_HW_MAX_TIM_URANGE_A 100
277 #define VXGE_HW_MIN_TIM_UEC_A 0
278 #define VXGE_HW_MAX_TIM_UEC_A 65535
281 #define VXGE_HW_MIN_TIM_URANGE_B 0
282 #define VXGE_HW_MAX_TIM_URANGE_B 100
285 #define VXGE_HW_MIN_TIM_UEC_B 0
286 #define VXGE_HW_MAX_TIM_UEC_B 65535
289 #define VXGE_HW_MIN_TIM_URANGE_C 0
290 #define VXGE_HW_MAX_TIM_URANGE_C 100
293 #define VXGE_HW_MIN_TIM_UEC_C 0
294 #define VXGE_HW_MAX_TIM_UEC_C 65535
297 #define VXGE_HW_MIN_TIM_UEC_D 0
298 #define VXGE_HW_MAX_TIM_UEC_D 65535
301 #define VXGE_HW_STATS_OP_READ 0
302 #define VXGE_HW_STATS_OP_CLEAR_STAT 1
303 #define VXGE_HW_STATS_OP_CLEAR_ALL_VPATH_STATS 2
304 #define VXGE_HW_STATS_OP_CLEAR_ALL_STATS_OF_LOC 2
305 #define VXGE_HW_STATS_OP_CLEAR_ALL_STATS 3
307 #define VXGE_HW_STATS_LOC_AGGR 17
308 #define VXGE_HW_STATS_AGGRn_OFFSET 0x00720
310 #define VXGE_HW_STATS_VPATH_TX_OFFSET 0x0
311 #define VXGE_HW_STATS_VPATH_RX_OFFSET 0x00090
313 #define VXGE_HW_STATS_VPATH_PROG_EVENT_VNUM0_OFFSET (0x001d0 >> 3)
314 #define VXGE_HW_STATS_GET_VPATH_PROG_EVENT_VNUM0(bits) \
315 vxge_bVALn(bits, 0, 32)
317 #define VXGE_HW_STATS_GET_VPATH_PROG_EVENT_VNUM1(bits) \
318 vxge_bVALn(bits, 32, 32)
320 #define VXGE_HW_STATS_VPATH_PROG_EVENT_VNUM2_OFFSET (0x001d8 >> 3)
321 #define VXGE_HW_STATS_GET_VPATH_PROG_EVENT_VNUM2(bits) \
322 vxge_bVALn(bits, 0, 32)
324 #define VXGE_HW_STATS_GET_VPATH_PROG_EVENT_VNUM3(bits) \
325 vxge_bVALn(bits, 32, 32)
1967 VXGE_HW_FRAME_PROTO_UDP)
2052 #define VXGE_HW_RING_NEXT_BLOCK_POINTER_OFFSET (VXGE_HW_BLOCK_SIZE-8)
2053 #define VXGE_HW_RING_MEMBLOCK_IDX_OFFSET (VXGE_HW_BLOCK_SIZE-16)
2079 #ifdef VXGE_DEBUG_ASSERT
2093 #define VXGE_HW_VIRTUAL_PATH_HANDLE(vpath) \
2094 ((struct __vxge_hw_vpath_handle *)(vpath)->vpath_handles.next)
2246 int *tim_msix_id,
int alarm_msix_id);