ptable.h (1427B)
1 /* 2 * 3 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 4 * 5 * Copyright 2007-2019 Broadcom Inc. All rights reserved. 6 */ 7 8 #ifndef _SOC_PTABLE_H 9 #define _SOC_PTABLE_H 10 11 /* 12 * PTABLE bit definitions 13 */ 14 15 /* Values for SP_ST */ 16 17 #define PVP_STP_DISABLED 0 /* Disabled */ 18 #define PVP_STP_BLOCKING 1 /* Blocking/Listening */ 19 #define PVP_STP_LEARNING 2 /* Learning */ 20 #define PVP_STP_FORWARDING 3 /* Forwarding */ 21 22 /* 23 * Values for CML (control what happens on Source Lookup Failure packet). 24 * The last two are for Draco only; on StrataSwitch CML is only 2 bits. 25 */ 26 27 #define PVP_CML_SWITCH 0 /* Learn ARL, !CPU, Forward */ 28 #define PVP_CML_CPU 1 /* !Learn ARL, CPU, !Forward */ 29 #define PVP_CML_FORWARD 2 /* !Learn ARL, !CPU, Forward */ 30 #define PVP_CML_DROP 3 /* !Learn ARL, !CPU, !Forward */ 31 #define PVP_CML_CPU_SWITCH 4 /* Learn ARL, CPU, Forward */ 32 #define PVP_CML_CPU_FORWARD 5 /* !Learn ARL, CPU, Forward */ 33 34 /* Egress port table redirection types */ 35 #define SOC_EPT_REDIRECT_NOOP 0 /* NOOP - do not redirect */ 36 #define SOC_EPT_REDIRECT_MIRROR 4 /* Mirror bitmap */ 37 #define SOC_EPT_REDIRECT_SYS_PORT 5 /* System port */ 38 #define SOC_EPT_REDIRECT_TRUNK 6 /* Trunk group */ 39 #define SOC_EPT_REDIRECT_L2MC 7 /* L2MC group */ 40 41 #endif /* !_SOC_PTABLE_H */