OpenNSL API Guide and Reference Manual
Macros
gport.h File Reference

Go to the source code of this file.

Macros

#define _SHR_CORE_ALL   -17
 
#define _SHR_CORE_FIELD2ID(field)   ((field) != _SHR_COSQ_GPORT_COMMON_ALL_CORES_VALUE ? field : _SHR_CORE_ALL)
 
#define _SHR_CORE_ID2FIELD(id)   ((id) != _SHR_CORE_ALL ? id : _SHR_COSQ_GPORT_COMMON_ALL_CORES_VALUE)
 
#define _SHR_COSQ_GPORT_COMMON_ALL_CORES_VALUE   _SHR_COSQ_GPORT_COMMON_CORE_MASK
 
#define _SHR_COSQ_GPORT_COMMON_CORE_BITS   3
 
#define _SHR_COSQ_GPORT_COMMON_CORE_MASK   ((1 << _SHR_COSQ_GPORT_COMMON_CORE_BITS) - 1)
 
#define _SHR_COSQ_GPORT_COMMON_CORE_SHIFT   _SHR_COSQ_GPORT_COMMON_QUEUE_BITS
 
#define _SHR_COSQ_GPORT_COMMON_QUEUE_BITS   18
 
#define _SHR_COSQ_GPORT_COMMON_QUEUE_MASK   ((1 << _SHR_COSQ_GPORT_COMMON_QUEUE_BITS) - 1)
 
#define _SHR_FIELD_CTR_PROC_MASK   ((1 << 4) - 1) /*4 bits for counter engines in Arad */
 
#define _SHR_FIELD_CTR_PROC_MASK_LEGACY   ((1 << 2) - 1) /*2 bits for counter engines in Arad */
 
#define _SHR_FIELD_CTR_PROC_SHIFT   27 /* minimum 20 for the Statistic-Report Counter in Jericho */
 
#define _SHR_FIELD_CTR_PROC_SHIFT_GET(_stat_id)   (_SHR_FIELD_STAT_ID_IS_LEGACY(_stat_id) ? _SHR_FIELD_CTR_PROC_SHIFT_LEGACY : _SHR_FIELD_CTR_PROC_SHIFT)
 
#define _SHR_FIELD_CTR_PROC_SHIFT_LEGACY   29 /* minimum 20 for the Statistic-Report Counter in Arad */
 
#define _SHR_FIELD_CTR_SET_MASK   ((1 << _SHR_FIELD_CTR_PROC_SHIFT) - 1)
 
#define _SHR_FIELD_CTR_SET_MASK_LEGACY   ((1 << _SHR_FIELD_CTR_PROC_SHIFT_LEGACY) - 1)
 
#define _SHR_FIELD_CTR_SET_SHIFT   0
 
#define _SHR_FIELD_CTR_SET_SHIFT_LEGACY   0
 
#define _SHR_FIELD_STAT_ID_CNTR_LEGACY_GET(_stat_id)   (((_stat_id) >> _SHR_FIELD_CTR_SET_SHIFT_LEGACY) & _SHR_FIELD_CTR_SET_MASK_LEGACY)
 
#define _SHR_FIELD_STAT_ID_CNTR_NEW_GET(_stat_id)   (((_stat_id) >> _SHR_FIELD_CTR_SET_SHIFT) & _SHR_FIELD_CTR_SET_MASK)
 
#define _SHR_FIELD_STAT_ID_COUNTER_GET(_stat_id)
 
#define _SHR_FIELD_STAT_ID_IS_LEGACY(_stat_id)   (!((_stat_id >> 31) & 0x1))
 
#define _SHR_FIELD_STAT_ID_LEGACY   (0x1 << 31)
 
#define _SHR_FIELD_STAT_ID_LEGACY_SET(_proc, _ctr)
 
#define _SHR_FIELD_STAT_ID_NEW_SET(_proc, _ctr)
 
#define _SHR_FIELD_STAT_ID_PROC_LEGACY_GET(_stat_id)   (((_stat_id) >> _SHR_FIELD_CTR_PROC_SHIFT_LEGACY) & _SHR_FIELD_CTR_PROC_MASK_LEGACY)
 
#define _SHR_FIELD_STAT_ID_PROC_NEW_GET(_stat_id)   (((_stat_id) >> _SHR_FIELD_CTR_PROC_SHIFT) & _SHR_FIELD_CTR_PROC_MASK)
 
#define _SHR_FIELD_STAT_ID_PROCESSOR_GET(_stat_id)
 
#define _SHR_FIELD_STAT_ID_SET(_stat_id, _proc, _ctr)   (_stat_id = _SHR_FIELD_STAT_ID_NEW_SET(_proc, _ctr))
 
#define _SHR_GPORT_BLACK_HOLE   (_SHR_GPORT_TYPE_BLACK_HOLE << _SHR_GPORT_TYPE_SHIFT)
 
#define _SHR_GPORT_INVALID   (-1)
 
#define _SHR_GPORT_IS_BLACK_HOLE(_gport)   ((_gport) == _SHR_GPORT_BLACK_HOLE)
 
#define _SHR_GPORT_IS_COSQ(_gport)   (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_COSQ)
 
#define _SHR_GPORT_IS_LOCAL(_gport)
 
#define _SHR_GPORT_IS_MCAST_QUEUE_GROUP(_gport)   (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_MCAST_QUEUE_GROUP)
 
#define _SHR_GPORT_IS_MIRROR(_gport)   (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_MIRROR)
 
#define _SHR_GPORT_IS_MODPORT(_gport)   (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_MODPORT)
 
#define _SHR_GPORT_IS_SCHEDULER(_gport)   (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_SCHEDULER)
 
#define _SHR_GPORT_IS_SYSTEM_PORT(_gport)   (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_SYSTEM_PORT)
 
#define _SHR_GPORT_IS_TRAP(_gport)   (((_gport) >> _SHR_GPORT_TYPE_TRAP_SHIFT) == _SHR_GPORT_TYPE_TRAP)
 
#define _SHR_GPORT_IS_TRUNK(_gport)   (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_TRUNK)
 
#define _SHR_GPORT_IS_TUNNEL(_gport)   (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_TUNNEL)
 
#define _SHR_GPORT_IS_UCAST_QUEUE_GROUP(_gport)   (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_UCAST_QUEUE_GROUP)
 
#define _SHR_GPORT_LOCAL_CPU   (_SHR_GPORT_TYPE_LOCAL_CPU << _SHR_GPORT_TYPE_SHIFT)
 
#define _SHR_GPORT_LOCAL_GET(_gport)   (((_gport) >> _SHR_GPORT_PORT_SHIFT) & _SHR_GPORT_PORT_MASK)
 
#define _SHR_GPORT_LOCAL_SET(_gport, _port)
 
#define _SHR_GPORT_LOCAL_TYPE_COMMON   (0)
 
#define _SHR_GPORT_LOCAL_TYPE_FABRIC   (1)
 
#define _SHR_GPORT_LOCAL_TYPE_MASK   (0x1f)
 
#define _SHR_GPORT_LOCAL_TYPE_SHIFT   (21)
 
#define _SHR_GPORT_MCAST_QUEUE_GROUP_CORE_GET(_gport)   _SHR_CORE_FIELD2ID(((_gport) >> _SHR_COSQ_GPORT_COMMON_CORE_SHIFT) & _SHR_COSQ_GPORT_COMMON_CORE_MASK)
 
#define _SHR_GPORT_MCAST_QUEUE_GROUP_CORE_QUEUE_SET(_gport, _core, _qid)
 
#define _SHR_GPORT_MCAST_QUEUE_GROUP_GET(_gport)   _SHR_GPORT_MCAST_QUEUE_GROUP_QID_GET(_gport)
 
#define _SHR_GPORT_MCAST_QUEUE_GROUP_QID_GET(_gport)   (((_gport) >> _SHR_GPORT_MCAST_QUEUE_GROUP_QID_SHIFT) & _SHR_GPORT_MCAST_QUEUE_GROUP_QID_MASK)
 
#define _SHR_GPORT_MCAST_QUEUE_GROUP_QID_MASK   0x3fff
 
#define _SHR_GPORT_MCAST_QUEUE_GROUP_QID_SHIFT   0
 
#define _SHR_GPORT_MCAST_QUEUE_GROUP_QUEUE_GET(_gport)
 
#define _SHR_GPORT_MCAST_QUEUE_GROUP_QUEUE_SET(_gport, _qid)
 
#define _SHR_GPORT_MCAST_QUEUE_GROUP_SET(_gport, _qid)
 
#define _SHR_GPORT_MCAST_QUEUE_GROUP_SYSPORTID_GET(_gport)   (((_gport) >> _SHR_GPORT_MCAST_QUEUE_GROUP_SYSPORTID_SHIFT) & _SHR_GPORT_MCAST_QUEUE_GROUP_SYSPORTID_MASK)
 
#define _SHR_GPORT_MCAST_QUEUE_GROUP_SYSPORTID_MASK   0xfff
 
#define _SHR_GPORT_MCAST_QUEUE_GROUP_SYSPORTID_SHIFT   14
 
#define _SHR_GPORT_MCAST_QUEUE_GROUP_SYSQID_SET(_gport, _sysport_id, _qid)
 
#define _SHR_GPORT_MIRROR_GET(_gport)   (((_gport) >> _SHR_GPORT_MIRROR_SHIFT) & _SHR_GPORT_MIRROR_MASK)
 
#define _SHR_GPORT_MIRROR_MASK   0xffff
 
#define _SHR_GPORT_MIRROR_SET(_gport, _value)
 
#define _SHR_GPORT_MIRROR_SHIFT   0
 
#define _SHR_GPORT_MODID_MASK   0x7fff
 
#define _SHR_GPORT_MODID_SHIFT   11
 
#define _SHR_GPORT_MODPORT_MODID_GET(_gport)   (((_gport) >> _SHR_GPORT_MODID_SHIFT) & _SHR_GPORT_MODID_MASK)
 
#define _SHR_GPORT_MODPORT_PORT_GET(_gport)   (((_gport) >> _SHR_GPORT_PORT_SHIFT) & _SHR_GPORT_PORT_MASK)
 
#define _SHR_GPORT_MODPORT_SET(_gport, _module, _port)
 
#define _SHR_GPORT_NONE   (0)
 
#define _SHR_GPORT_PORT_MASK   0x7ff
 
#define _SHR_GPORT_PORT_SHIFT   0
 
#define _SHR_GPORT_SCHEDULER_CORE_GET(_gport)   _SHR_CORE_FIELD2ID((((_gport) >> _SHR_GPORT_SCHEDULER_CORE_SHIFT) & _SHR_GPORT_SCHEDULER_CORE_MASK))
 
#define _SHR_GPORT_SCHEDULER_CORE_MASK   _SHR_COSQ_GPORT_COMMON_CORE_MASK
 
#define _SHR_GPORT_SCHEDULER_CORE_SET(_gport, _scheduler_id, _core_id)
 
#define _SHR_GPORT_SCHEDULER_CORE_SHIFT   23
 
#define _SHR_GPORT_SCHEDULER_GET(_gport)   (((_gport) >> _SHR_GPORT_SCHEDULER_SHIFT) & _SHR_GPORT_SCHEDULER_MASK)
 
#define _SHR_GPORT_SCHEDULER_MASK   0x7fffff
 
#define _SHR_GPORT_SCHEDULER_NODE_GET(_gport)   (((_gport) >> _SHR_GPORT_SCHEDULER_NODE_SHIFT) & _SHR_GPORT_SCHEDULER_NODE_MASK)
 
#define _SHR_GPORT_SCHEDULER_NODE_MASK   0xfffff
 
#define _SHR_GPORT_SCHEDULER_NODE_SET(_gport, _level, _node)
 
#define _SHR_GPORT_SCHEDULER_NODE_SHIFT   0
 
#define _SHR_GPORT_SCHEDULER_SET(_gport, _id)   _SHR_GPORT_SCHEDULER_CORE_SET(_gport, _id, _SHR_CORE_ALL)
 
#define _SHR_GPORT_SCHEDULER_SHIFT   0
 
#define _SHR_GPORT_SYSTEM_PORT_ID_GET(_gport)   (((_gport) >> _SHR_GPORT_SYSTEM_PORT_SHIFT) & _SHR_GPORT_SYSTEM_PORT_MASK)
 
#define _SHR_GPORT_SYSTEM_PORT_ID_SET(_gport, _id)
 
#define _SHR_GPORT_SYSTEM_PORT_MASK   0xffffff
 
#define _SHR_GPORT_SYSTEM_PORT_SHIFT   0
 
#define _SHR_GPORT_TRAP_GET_ID(_gport)   (((_gport) >> _SHR_GPORT_TRAP_ID_SHIFT) & _SHR_GPORT_TRAP_ID_MASK)
 
#define _SHR_GPORT_TRAP_GET_SNOOP_STRENGTH(_gport)   (((_gport) >> _SHR_GPORT_TRAP_SNOOP_STRENGTH_SHIFT & _SHR_GPORT_TRAP_SNOOP_STRENGTH_MASK))
 
#define _SHR_GPORT_TRAP_GET_STRENGTH(_gport)   (((_gport) >> _SHR_GPORT_TRAP_STRENGTH_SHIFT & _SHR_GPORT_TRAP_STRENGTH_MASK))
 
#define _SHR_GPORT_TRAP_ID_MASK   0xfff
 
#define _SHR_GPORT_TRAP_ID_SHIFT   0
 
#define _SHR_GPORT_TRAP_SET(_gport, _trap_id, _trap_strength, _snoop_strength)
 
#define _SHR_GPORT_TRAP_SNOOP_STRENGTH_MASK   0xf
 
#define _SHR_GPORT_TRAP_SNOOP_STRENGTH_SHIFT   16
 
#define _SHR_GPORT_TRAP_STRENGTH_MASK   0xf
 
#define _SHR_GPORT_TRAP_STRENGTH_SHIFT   12
 
#define _SHR_GPORT_TRUNK_GET(_gport)   (((_gport) >> _SHR_GPORT_TRUNK_SHIFT) & _SHR_GPORT_TRUNK_MASK)
 
#define _SHR_GPORT_TRUNK_MASK   0x3ffffff
 
#define _SHR_GPORT_TRUNK_SET(_gport, _trunk_id)
 
#define _SHR_GPORT_TRUNK_SHIFT   0
 
#define _SHR_GPORT_TUNNEL_ID_GET(_gport)   (((_gport) >> _SHR_GPORT_TUNNEL_SHIFT) & _SHR_GPORT_TUNNEL_MASK)
 
#define _SHR_GPORT_TUNNEL_ID_SET(_gport, _tunnel_id)
 
#define _SHR_GPORT_TUNNEL_MASK   0x3ffffff
 
#define _SHR_GPORT_TUNNEL_SHIFT   0
 
#define _SHR_GPORT_TYPE_BLACK_HOLE   4 /* Black hole destination */
 
#define _SHR_GPORT_TYPE_CHILD   20 /* Child port */
 
#define _SHR_GPORT_TYPE_COSQ   30 /* cosq gport */
 
#define _SHR_GPORT_TYPE_DESTMOD_QUEUE_GROUP   41 /* DMVOQ gport */
 
#define _SHR_GPORT_TYPE_EGRESS_CHILD   22 /* Egress child port */
 
#define _SHR_GPORT_TYPE_EGRESS_GROUP   21 /* Egress group port */
 
#define _SHR_GPORT_TYPE_EGRESS_MODPORT   23 /* Egress Mod and port */
 
#define _SHR_GPORT_TYPE_LOCAL   1 /* Port on local unit */
 
#define _SHR_GPORT_TYPE_LOCAL_CPU   5 /* CPU destination */
 
#define _SHR_GPORT_TYPE_MASK   0x3f
 
#define _SHR_GPORT_TYPE_MCAST   11 /* Multicast Set */
 
#define _SHR_GPORT_TYPE_MCAST_QUEUE_GROUP   12 /* Multicast Queue Group */
 
#define _SHR_GPORT_TYPE_MCAST_SUBSCRIBER_QUEUE_GROUP   25 /* Local Multicast Queue Group */
 
#define _SHR_GPORT_TYPE_MIRROR   15 /* Mirror destination. */
 
#define _SHR_GPORT_TYPE_MODPORT   2 /* Module ID and port */
 
#define _SHR_GPORT_TYPE_PROFILE   40
 
#define _SHR_GPORT_TYPE_SCHEDULER   13 /* Scheduler */
 
#define _SHR_GPORT_TYPE_SHIFT   26
 
#define _SHR_GPORT_TYPE_SYSTEM_PORT   27 /* DPP System-Port */
 
#define _SHR_GPORT_TYPE_TRAP
 
#define _SHR_GPORT_TYPE_TRAP_MASK   (_SHR_GPORT_TYPE_MASK<<1|1) /* 0x4f */
 
#define _SHR_GPORT_TYPE_TRAP_SHIFT   (_SHR_GPORT_TYPE_SHIFT-1) /* 25 */
 
#define _SHR_GPORT_TYPE_TRUNK   3 /* Trunk ID */
 
#define _SHR_GPORT_TYPE_TUNNEL   19 /* Tunnel ID */
 
#define _SHR_GPORT_TYPE_UCAST_QUEUE_GROUP   9 /* Queue Group */
 
#define _SHR_GPORT_TYPE_UCAST_SUBSCRIBER_QUEUE_GROUP   24 /* Local Queue Group */
 
#define _SHR_GPORT_UCAST_QUEUE_GROUP_MASK   0x3ffffff
 
#define _SHR_GPORT_UCAST_QUEUE_GROUP_QID_GET(_gport)   (((_gport) >> _SHR_GPORT_UCAST_QUEUE_GROUP_QID_SHIFT) & _SHR_GPORT_UCAST_QUEUE_GROUP_QID_MASK)
 
#define _SHR_GPORT_UCAST_QUEUE_GROUP_QID_MASK   0x3fff
 
#define _SHR_GPORT_UCAST_QUEUE_GROUP_QID_SHIFT   0
 
#define _SHR_GPORT_UCAST_QUEUE_GROUP_SET(_gport, _qid)
 
#define _SHR_GPORT_UCAST_QUEUE_GROUP_SHIFT   0
 
#define _SHR_GPORT_UCAST_QUEUE_GROUP_SYSPORTID_GET(_gport)   (((_gport) >> _SHR_GPORT_UCAST_QUEUE_GROUP_SYSPORTID_SHIFT) & _SHR_GPORT_UCAST_QUEUE_GROUP_SYSPORTID_MASK)
 
#define _SHR_GPORT_UCAST_QUEUE_GROUP_SYSPORTID_MASK   0xfff
 
#define _SHR_GPORT_UCAST_QUEUE_GROUP_SYSPORTID_SHIFT   14
 
#define _SHR_GPORT_UCAST_QUEUE_GROUP_SYSQID_SET(_gport, _sysport_id, _qid)
 

Macro Definition Documentation

#define _SHR_CORE_ALL   -17

Definition at line 73 of file gport.h.

#define _SHR_CORE_FIELD2ID (   field)    ((field) != _SHR_COSQ_GPORT_COMMON_ALL_CORES_VALUE ? field : _SHR_CORE_ALL)

Definition at line 74 of file gport.h.

#define _SHR_CORE_ID2FIELD (   id)    ((id) != _SHR_CORE_ALL ? id : _SHR_COSQ_GPORT_COMMON_ALL_CORES_VALUE)

Definition at line 75 of file gport.h.

#define _SHR_COSQ_GPORT_COMMON_ALL_CORES_VALUE   _SHR_COSQ_GPORT_COMMON_CORE_MASK

Definition at line 68 of file gport.h.

#define _SHR_COSQ_GPORT_COMMON_CORE_BITS   3

Definition at line 65 of file gport.h.

#define _SHR_COSQ_GPORT_COMMON_CORE_MASK   ((1 << _SHR_COSQ_GPORT_COMMON_CORE_BITS) - 1)

Definition at line 67 of file gport.h.

#define _SHR_COSQ_GPORT_COMMON_CORE_SHIFT   _SHR_COSQ_GPORT_COMMON_QUEUE_BITS

Definition at line 66 of file gport.h.

#define _SHR_COSQ_GPORT_COMMON_QUEUE_BITS   18

Definition at line 63 of file gport.h.

#define _SHR_COSQ_GPORT_COMMON_QUEUE_MASK   ((1 << _SHR_COSQ_GPORT_COMMON_QUEUE_BITS) - 1)

Definition at line 64 of file gport.h.

#define _SHR_FIELD_CTR_PROC_MASK   ((1 << 4) - 1) /*4 bits for counter engines in Arad */

Definition at line 322 of file gport.h.

#define _SHR_FIELD_CTR_PROC_MASK_LEGACY   ((1 << 2) - 1) /*2 bits for counter engines in Arad */

Definition at line 303 of file gport.h.

#define _SHR_FIELD_CTR_PROC_SHIFT   27 /* minimum 20 for the Statistic-Report Counter in Jericho */

Definition at line 324 of file gport.h.

#define _SHR_FIELD_CTR_PROC_SHIFT_GET (   _stat_id)    (_SHR_FIELD_STAT_ID_IS_LEGACY(_stat_id) ? _SHR_FIELD_CTR_PROC_SHIFT_LEGACY : _SHR_FIELD_CTR_PROC_SHIFT)

Definition at line 328 of file gport.h.

#define _SHR_FIELD_CTR_PROC_SHIFT_LEGACY   29 /* minimum 20 for the Statistic-Report Counter in Arad */

Definition at line 304 of file gport.h.

#define _SHR_FIELD_CTR_SET_MASK   ((1 << _SHR_FIELD_CTR_PROC_SHIFT) - 1)

Definition at line 325 of file gport.h.

#define _SHR_FIELD_CTR_SET_MASK_LEGACY   ((1 << _SHR_FIELD_CTR_PROC_SHIFT_LEGACY) - 1)

Definition at line 305 of file gport.h.

#define _SHR_FIELD_CTR_SET_SHIFT   0

Definition at line 326 of file gport.h.

#define _SHR_FIELD_CTR_SET_SHIFT_LEGACY   0

Definition at line 306 of file gport.h.

#define _SHR_FIELD_STAT_ID_CNTR_LEGACY_GET (   _stat_id)    (((_stat_id) >> _SHR_FIELD_CTR_SET_SHIFT_LEGACY) & _SHR_FIELD_CTR_SET_MASK_LEGACY)

Definition at line 311 of file gport.h.

#define _SHR_FIELD_STAT_ID_CNTR_NEW_GET (   _stat_id)    (((_stat_id) >> _SHR_FIELD_CTR_SET_SHIFT) & _SHR_FIELD_CTR_SET_MASK)

Definition at line 332 of file gport.h.

#define _SHR_FIELD_STAT_ID_COUNTER_GET (   _stat_id)
Value:
_SHR_FIELD_STAT_ID_CNTR_LEGACY_GET(_stat_id) : \

Definition at line 345 of file gport.h.

#define _SHR_FIELD_STAT_ID_IS_LEGACY (   _stat_id)    (!((_stat_id >> 31) & 0x1))

Definition at line 318 of file gport.h.

#define _SHR_FIELD_STAT_ID_LEGACY   (0x1 << 31)

Definition at line 319 of file gport.h.

#define _SHR_FIELD_STAT_ID_LEGACY_SET (   _proc,
  _ctr 
)
#define _SHR_FIELD_STAT_ID_NEW_SET (   _proc,
  _ctr 
)
#define _SHR_FIELD_STAT_ID_PROC_LEGACY_GET (   _stat_id)    (((_stat_id) >> _SHR_FIELD_CTR_PROC_SHIFT_LEGACY) & _SHR_FIELD_CTR_PROC_MASK_LEGACY)

Definition at line 308 of file gport.h.

#define _SHR_FIELD_STAT_ID_PROC_NEW_GET (   _stat_id)    (((_stat_id) >> _SHR_FIELD_CTR_PROC_SHIFT) & _SHR_FIELD_CTR_PROC_MASK)

Definition at line 329 of file gport.h.

#define _SHR_FIELD_STAT_ID_PROCESSOR_GET (   _stat_id)
Value:
_SHR_FIELD_STAT_ID_PROC_LEGACY_GET(_stat_id) : \

Definition at line 340 of file gport.h.

#define _SHR_FIELD_STAT_ID_SET (   _stat_id,
  _proc,
  _ctr 
)    (_stat_id = _SHR_FIELD_STAT_ID_NEW_SET(_proc, _ctr))

Definition at line 350 of file gport.h.

#define _SHR_GPORT_BLACK_HOLE   (_SHR_GPORT_TYPE_BLACK_HOLE << _SHR_GPORT_TYPE_SHIFT)

Definition at line 186 of file gport.h.

#define _SHR_GPORT_INVALID   (-1)

Definition at line 38 of file gport.h.

#define _SHR_GPORT_IS_BLACK_HOLE (   _gport)    ((_gport) == _SHR_GPORT_BLACK_HOLE)

Definition at line 189 of file gport.h.

#define _SHR_GPORT_IS_COSQ (   _gport)    (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_COSQ)

Definition at line 282 of file gport.h.

#define _SHR_GPORT_IS_LOCAL (   _gport)
#define _SHR_GPORT_IS_MCAST_QUEUE_GROUP (   _gport)    (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_MCAST_QUEUE_GROUP)

Definition at line 213 of file gport.h.

#define _SHR_GPORT_IS_MIRROR (   _gport)    (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_MIRROR)

Definition at line 254 of file gport.h.

#define _SHR_GPORT_IS_MODPORT (   _gport)    (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_MODPORT)

Definition at line 137 of file gport.h.

#define _SHR_GPORT_IS_SCHEDULER (   _gport)    (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_SCHEDULER)

Definition at line 161 of file gport.h.

#define _SHR_GPORT_IS_SYSTEM_PORT (   _gport)    (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_SYSTEM_PORT)

Definition at line 274 of file gport.h.

#define _SHR_GPORT_IS_TRAP (   _gport)    (((_gport) >> _SHR_GPORT_TYPE_TRAP_SHIFT) == _SHR_GPORT_TYPE_TRAP)

Definition at line 300 of file gport.h.

#define _SHR_GPORT_IS_TRUNK (   _gport)    (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_TRUNK)

Definition at line 151 of file gport.h.

#define _SHR_GPORT_IS_TUNNEL (   _gport)    (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_TUNNEL)

Definition at line 264 of file gport.h.

#define _SHR_GPORT_IS_UCAST_QUEUE_GROUP (   _gport)    (((_gport) >> _SHR_GPORT_TYPE_SHIFT) == _SHR_GPORT_TYPE_UCAST_QUEUE_GROUP)

Definition at line 194 of file gport.h.

#define _SHR_GPORT_LOCAL_CPU   (_SHR_GPORT_TYPE_LOCAL_CPU << _SHR_GPORT_TYPE_SHIFT)

Definition at line 191 of file gport.h.

#define _SHR_GPORT_LOCAL_GET (   _gport)    (((_gport) >> _SHR_GPORT_PORT_SHIFT) & _SHR_GPORT_PORT_MASK)

Definition at line 134 of file gport.h.

#define _SHR_GPORT_LOCAL_SET (   _gport,
  _port 
)
#define _SHR_GPORT_LOCAL_TYPE_COMMON   (0)

Definition at line 118 of file gport.h.

#define _SHR_GPORT_LOCAL_TYPE_FABRIC   (1)

Definition at line 119 of file gport.h.

#define _SHR_GPORT_LOCAL_TYPE_MASK   (0x1f)

Definition at line 121 of file gport.h.

#define _SHR_GPORT_LOCAL_TYPE_SHIFT   (21)

Definition at line 120 of file gport.h.

#define _SHR_GPORT_MCAST_QUEUE_GROUP_CORE_GET (   _gport)    _SHR_CORE_FIELD2ID(((_gport) >> _SHR_COSQ_GPORT_COMMON_CORE_SHIFT) & _SHR_COSQ_GPORT_COMMON_CORE_MASK)

Definition at line 251 of file gport.h.

#define _SHR_GPORT_MCAST_QUEUE_GROUP_CORE_QUEUE_SET (   _gport,
  _core,
  _qid 
)
#define _SHR_GPORT_MCAST_QUEUE_GROUP_GET (   _gport)    _SHR_GPORT_MCAST_QUEUE_GROUP_QID_GET(_gport)

Definition at line 221 of file gport.h.

#define _SHR_GPORT_MCAST_QUEUE_GROUP_QID_GET (   _gport)    (((_gport) >> _SHR_GPORT_MCAST_QUEUE_GROUP_QID_SHIFT) & _SHR_GPORT_MCAST_QUEUE_GROUP_QID_MASK)

Definition at line 232 of file gport.h.

#define _SHR_GPORT_MCAST_QUEUE_GROUP_QID_MASK   0x3fff

Definition at line 92 of file gport.h.

#define _SHR_GPORT_MCAST_QUEUE_GROUP_QID_SHIFT   0

Definition at line 91 of file gport.h.

#define _SHR_GPORT_MCAST_QUEUE_GROUP_QUEUE_GET (   _gport)
Value:

Definition at line 246 of file gport.h.

#define _SHR_GPORT_MCAST_QUEUE_GROUP_QUEUE_SET (   _gport,
  _qid 
)
#define _SHR_GPORT_MCAST_QUEUE_GROUP_SET (   _gport,
  _qid 
)
#define _SHR_GPORT_MCAST_QUEUE_GROUP_SYSPORTID_GET (   _gport)    (((_gport) >> _SHR_GPORT_MCAST_QUEUE_GROUP_SYSPORTID_SHIFT) & _SHR_GPORT_MCAST_QUEUE_GROUP_SYSPORTID_MASK)

Definition at line 229 of file gport.h.

#define _SHR_GPORT_MCAST_QUEUE_GROUP_SYSPORTID_MASK   0xfff

Definition at line 94 of file gport.h.

#define _SHR_GPORT_MCAST_QUEUE_GROUP_SYSPORTID_SHIFT   14

Definition at line 93 of file gport.h.

#define _SHR_GPORT_MCAST_QUEUE_GROUP_SYSQID_SET (   _gport,
  _sysport_id,
  _qid 
)
#define _SHR_GPORT_MIRROR_GET (   _gport)    (((_gport) >> _SHR_GPORT_MIRROR_SHIFT) & _SHR_GPORT_MIRROR_MASK)

Definition at line 261 of file gport.h.

#define _SHR_GPORT_MIRROR_MASK   0xffff

Definition at line 102 of file gport.h.

#define _SHR_GPORT_MIRROR_SET (   _gport,
  _value 
)
Value:

Definition at line 257 of file gport.h.

#define _SHR_GPORT_MIRROR_SHIFT   0

Definition at line 101 of file gport.h.

#define _SHR_GPORT_MODID_MASK   0x7fff

Definition at line 80 of file gport.h.

#define _SHR_GPORT_MODID_SHIFT   11

Definition at line 79 of file gport.h.

#define _SHR_GPORT_MODPORT_MODID_GET (   _gport)    (((_gport) >> _SHR_GPORT_MODID_SHIFT) & _SHR_GPORT_MODID_MASK)

Definition at line 145 of file gport.h.

#define _SHR_GPORT_MODPORT_PORT_GET (   _gport)    (((_gport) >> _SHR_GPORT_PORT_SHIFT) & _SHR_GPORT_PORT_MASK)

Definition at line 148 of file gport.h.

#define _SHR_GPORT_MODPORT_SET (   _gport,
  _module,
  _port 
)
Value:

Definition at line 140 of file gport.h.

#define _SHR_GPORT_NONE   (0)

Definition at line 37 of file gport.h.

#define _SHR_GPORT_PORT_MASK   0x7ff

Definition at line 82 of file gport.h.

#define _SHR_GPORT_PORT_SHIFT   0

Definition at line 81 of file gport.h.

#define _SHR_GPORT_SCHEDULER_CORE_GET (   _gport)    _SHR_CORE_FIELD2ID((((_gport) >> _SHR_GPORT_SCHEDULER_CORE_SHIFT) & _SHR_GPORT_SCHEDULER_CORE_MASK))

Definition at line 170 of file gport.h.

#define _SHR_GPORT_SCHEDULER_CORE_MASK   _SHR_COSQ_GPORT_COMMON_CORE_MASK

Definition at line 98 of file gport.h.

#define _SHR_GPORT_SCHEDULER_CORE_SET (   _gport,
  _scheduler_id,
  _core_id 
)
#define _SHR_GPORT_SCHEDULER_CORE_SHIFT   23

Definition at line 97 of file gport.h.

#define _SHR_GPORT_SCHEDULER_GET (   _gport)    (((_gport) >> _SHR_GPORT_SCHEDULER_SHIFT) & _SHR_GPORT_SCHEDULER_MASK)

Definition at line 167 of file gport.h.

#define _SHR_GPORT_SCHEDULER_MASK   0x7fffff

Definition at line 96 of file gport.h.

#define _SHR_GPORT_SCHEDULER_NODE_GET (   _gport)    (((_gport) >> _SHR_GPORT_SCHEDULER_NODE_SHIFT) & _SHR_GPORT_SCHEDULER_NODE_MASK)

Definition at line 183 of file gport.h.

#define _SHR_GPORT_SCHEDULER_NODE_MASK   0xfffff

Definition at line 100 of file gport.h.

#define _SHR_GPORT_SCHEDULER_NODE_SET (   _gport,
  _level,
  _node 
)
Value:
(((_level) & _SHR_GPORT_SCHEDULER_LEVEL_MASK) << _SHR_GPORT_SCHEDULER_LEVEL_SHIFT) | \

Definition at line 178 of file gport.h.

#define _SHR_GPORT_SCHEDULER_NODE_SHIFT   0

Definition at line 99 of file gport.h.

#define _SHR_GPORT_SCHEDULER_SET (   _gport,
  _id 
)    _SHR_GPORT_SCHEDULER_CORE_SET(_gport, _id, _SHR_CORE_ALL)

Definition at line 164 of file gport.h.

#define _SHR_GPORT_SCHEDULER_SHIFT   0

Definition at line 95 of file gport.h.

#define _SHR_GPORT_SYSTEM_PORT_ID_GET (   _gport)    (((_gport) >> _SHR_GPORT_SYSTEM_PORT_SHIFT) & _SHR_GPORT_SYSTEM_PORT_MASK)

Definition at line 276 of file gport.h.

#define _SHR_GPORT_SYSTEM_PORT_ID_SET (   _gport,
  _id 
)
Value:

Definition at line 278 of file gport.h.

#define _SHR_GPORT_SYSTEM_PORT_MASK   0xffffff

Definition at line 106 of file gport.h.

#define _SHR_GPORT_SYSTEM_PORT_SHIFT   0

Definition at line 105 of file gport.h.

#define _SHR_GPORT_TRAP_GET_ID (   _gport)    (((_gport) >> _SHR_GPORT_TRAP_ID_SHIFT) & _SHR_GPORT_TRAP_ID_MASK)

Definition at line 291 of file gport.h.

#define _SHR_GPORT_TRAP_GET_SNOOP_STRENGTH (   _gport)    (((_gport) >> _SHR_GPORT_TRAP_SNOOP_STRENGTH_SHIFT & _SHR_GPORT_TRAP_SNOOP_STRENGTH_MASK))

Definition at line 297 of file gport.h.

#define _SHR_GPORT_TRAP_GET_STRENGTH (   _gport)    (((_gport) >> _SHR_GPORT_TRAP_STRENGTH_SHIFT & _SHR_GPORT_TRAP_STRENGTH_MASK))

Definition at line 294 of file gport.h.

#define _SHR_GPORT_TRAP_ID_MASK   0xfff

Definition at line 112 of file gport.h.

#define _SHR_GPORT_TRAP_ID_SHIFT   0

Definition at line 111 of file gport.h.

#define _SHR_GPORT_TRAP_SET (   _gport,
  _trap_id,
  _trap_strength,
  _snoop_strength 
)
#define _SHR_GPORT_TRAP_SNOOP_STRENGTH_MASK   0xf

Definition at line 116 of file gport.h.

#define _SHR_GPORT_TRAP_SNOOP_STRENGTH_SHIFT   16

Definition at line 115 of file gport.h.

#define _SHR_GPORT_TRAP_STRENGTH_MASK   0xf

Definition at line 114 of file gport.h.

#define _SHR_GPORT_TRAP_STRENGTH_SHIFT   12

Definition at line 113 of file gport.h.

#define _SHR_GPORT_TRUNK_GET (   _gport)    (((_gport) >> _SHR_GPORT_TRUNK_SHIFT) & _SHR_GPORT_TRUNK_MASK)

Definition at line 158 of file gport.h.

#define _SHR_GPORT_TRUNK_MASK   0x3ffffff

Definition at line 84 of file gport.h.

#define _SHR_GPORT_TRUNK_SET (   _gport,
  _trunk_id 
)
Value:

Definition at line 154 of file gport.h.

#define _SHR_GPORT_TRUNK_SHIFT   0

Definition at line 83 of file gport.h.

#define _SHR_GPORT_TUNNEL_ID_GET (   _gport)    (((_gport) >> _SHR_GPORT_TUNNEL_SHIFT) & _SHR_GPORT_TUNNEL_MASK)

Definition at line 271 of file gport.h.

#define _SHR_GPORT_TUNNEL_ID_SET (   _gport,
  _tunnel_id 
)
Value:

Definition at line 267 of file gport.h.

#define _SHR_GPORT_TUNNEL_MASK   0x3ffffff

Definition at line 104 of file gport.h.

#define _SHR_GPORT_TUNNEL_SHIFT   0

Definition at line 103 of file gport.h.

#define _SHR_GPORT_TYPE_BLACK_HOLE   4 /* Black hole destination */

Definition at line 43 of file gport.h.

#define _SHR_GPORT_TYPE_CHILD   20 /* Child port */

Definition at line 51 of file gport.h.

#define _SHR_GPORT_TYPE_COSQ   30 /* cosq gport */

Definition at line 58 of file gport.h.

#define _SHR_GPORT_TYPE_DESTMOD_QUEUE_GROUP   41 /* DMVOQ gport */

Definition at line 60 of file gport.h.

#define _SHR_GPORT_TYPE_EGRESS_CHILD   22 /* Egress child port */

Definition at line 53 of file gport.h.

#define _SHR_GPORT_TYPE_EGRESS_GROUP   21 /* Egress group port */

Definition at line 52 of file gport.h.

#define _SHR_GPORT_TYPE_EGRESS_MODPORT   23 /* Egress Mod and port */

Definition at line 54 of file gport.h.

#define _SHR_GPORT_TYPE_LOCAL   1 /* Port on local unit */

Definition at line 40 of file gport.h.

#define _SHR_GPORT_TYPE_LOCAL_CPU   5 /* CPU destination */

Definition at line 44 of file gport.h.

#define _SHR_GPORT_TYPE_MASK   0x3f

Definition at line 78 of file gport.h.

#define _SHR_GPORT_TYPE_MCAST   11 /* Multicast Set */

Definition at line 46 of file gport.h.

#define _SHR_GPORT_TYPE_MCAST_QUEUE_GROUP   12 /* Multicast Queue Group */

Definition at line 47 of file gport.h.

#define _SHR_GPORT_TYPE_MCAST_SUBSCRIBER_QUEUE_GROUP   25 /* Local Multicast Queue Group */

Definition at line 56 of file gport.h.

#define _SHR_GPORT_TYPE_MIRROR   15 /* Mirror destination. */

Definition at line 49 of file gport.h.

#define _SHR_GPORT_TYPE_MODPORT   2 /* Module ID and port */

Definition at line 41 of file gport.h.

#define _SHR_GPORT_TYPE_PROFILE   40

Definition at line 59 of file gport.h.

#define _SHR_GPORT_TYPE_SCHEDULER   13 /* Scheduler */

Definition at line 48 of file gport.h.

#define _SHR_GPORT_TYPE_SHIFT   26

Definition at line 77 of file gport.h.

#define _SHR_GPORT_TYPE_SYSTEM_PORT   27 /* DPP System-Port */

Definition at line 57 of file gport.h.

#define _SHR_GPORT_TYPE_TRAP
Value:
((_SHR_GPORT_TYPE_LOCAL_CPU << 1) | 1) /* This will mark the CPU type, and
the 1st bit in the value to indicate trap */

Definition at line 108 of file gport.h.

#define _SHR_GPORT_TYPE_TRAP_MASK   (_SHR_GPORT_TYPE_MASK<<1|1) /* 0x4f */

Definition at line 110 of file gport.h.

#define _SHR_GPORT_TYPE_TRAP_SHIFT   (_SHR_GPORT_TYPE_SHIFT-1) /* 25 */

Definition at line 109 of file gport.h.

#define _SHR_GPORT_TYPE_TRUNK   3 /* Trunk ID */

Definition at line 42 of file gport.h.

#define _SHR_GPORT_TYPE_TUNNEL   19 /* Tunnel ID */

Definition at line 50 of file gport.h.

#define _SHR_GPORT_TYPE_UCAST_QUEUE_GROUP   9 /* Queue Group */

Definition at line 45 of file gport.h.

#define _SHR_GPORT_TYPE_UCAST_SUBSCRIBER_QUEUE_GROUP   24 /* Local Queue Group */

Definition at line 55 of file gport.h.

#define _SHR_GPORT_UCAST_QUEUE_GROUP_MASK   0x3ffffff

Definition at line 86 of file gport.h.

#define _SHR_GPORT_UCAST_QUEUE_GROUP_QID_GET (   _gport)    (((_gport) >> _SHR_GPORT_UCAST_QUEUE_GROUP_QID_SHIFT) & _SHR_GPORT_UCAST_QUEUE_GROUP_QID_MASK)

Definition at line 210 of file gport.h.

#define _SHR_GPORT_UCAST_QUEUE_GROUP_QID_MASK   0x3fff

Definition at line 88 of file gport.h.

#define _SHR_GPORT_UCAST_QUEUE_GROUP_QID_SHIFT   0

Definition at line 87 of file gport.h.

#define _SHR_GPORT_UCAST_QUEUE_GROUP_SET (   _gport,
  _qid 
)
#define _SHR_GPORT_UCAST_QUEUE_GROUP_SHIFT   0

Definition at line 85 of file gport.h.

#define _SHR_GPORT_UCAST_QUEUE_GROUP_SYSPORTID_GET (   _gport)    (((_gport) >> _SHR_GPORT_UCAST_QUEUE_GROUP_SYSPORTID_SHIFT) & _SHR_GPORT_UCAST_QUEUE_GROUP_SYSPORTID_MASK)

Definition at line 207 of file gport.h.

#define _SHR_GPORT_UCAST_QUEUE_GROUP_SYSPORTID_MASK   0xfff

Definition at line 90 of file gport.h.

#define _SHR_GPORT_UCAST_QUEUE_GROUP_SYSPORTID_SHIFT   14

Definition at line 89 of file gport.h.

#define _SHR_GPORT_UCAST_QUEUE_GROUP_SYSQID_SET (   _gport,
  _sysport_id,
  _qid 
)