diff --git a/drivers/net/dsa/pasw/Makefile b/drivers/net/dsa/pasw/Makefile index 9de5695..c83e2b1 100644 --- a/drivers/net/dsa/pasw/Makefile +++ b/drivers/net/dsa/pasw/Makefile @@ -5,6 +5,7 @@ ccflags-y := -I$(src)/include CFLAGS_tag_pasw.o += -I$(srctree)/net/dsa pasw-objs += pasw-abi.o +pasw-objs += pasw-acl.o pasw-objs += pasw-clk.o pasw-objs += pasw-core.o pasw-objs += pasw-dcb.o diff --git a/drivers/net/dsa/pasw/dev-saline/saline-conf.yml b/drivers/net/dsa/pasw/dev-saline/saline-conf.yml index 9261535..6e6486e 100644 --- a/drivers/net/dsa/pasw/dev-saline/saline-conf.yml +++ b/drivers/net/dsa/pasw/dev-saline/saline-conf.yml @@ -11,20 +11,42 @@ defines: _BPDU: 1 _COLORING: 1 _COLORING_W: 1 + _CONF_ACL_PRE_LOOKUP_SPORT: 1 + _CONF_ACL_PRE_LOOKUP_SPORT_W: 1 _CONF_INGRESS_ACL: 1 _CONF_INGRESS_ACL_ACTION_DROP: 1 _CONF_INGRESS_ACL_ACTION_DROP_W: 1 + _CONF_INGRESS_ACL_ACTION_FORCE_COLOR: 1 + _CONF_INGRESS_ACL_ACTION_FORCE_COLOR_W: 1 + _CONF_INGRESS_ACL_ACTION_FORCE_MMP: 1 + _CONF_INGRESS_ACL_ACTION_FORCE_MMP_W: 1 _CONF_INGRESS_ACL_ACTION_FORCE_QUEUE: 1 _CONF_INGRESS_ACL_ACTION_FORCE_QUEUE_W: 1 + _CONF_INGRESS_ACL_ACTION_SEND2CPU: 1 + _CONF_INGRESS_ACL_ACTION_SEND2CPU_W: 1 + _CONF_INGRESS_ACL_ACTION_SEND2PORT: 1 + _CONF_INGRESS_ACL_ACTION_SEND2PORT_W: 1 _CONF_INGRESS_ACL_ACTION_STREAM_ID: 1 _CONF_INGRESS_ACL_ACTION_STREAM_ID_W: 1 + _CONF_INGRESS_ACL_ACTION_UPDATE_STAT_CNT: 1 + _CONF_INGRESS_ACL_ACTION_UPDATE_STAT_CNT_W: 1 + _CONF_INGRESS_ACL_PRE_LOOKUP_L2: + - 1 + _CONF_INGRESS_ACL_PRE_LOOKUP_L3: + - 1 + _CONF_INGRESS_ACL_PRE_LOOKUP_L4: + - 1 + _CONF_INGRESS_ACL_PRE_LOOKUP_SPORT: + - 1 + _CONF_INGRESS_ACL_PRE_LOOKUP_VLAN: + - 1 _CONF_INGRESS_ACL_W: 1 _DECODE_AVTP: 1 _DECODE_AVTP_W: 1 + _DEFAULT_PORT_ACL_ACTION: 1 + _DEFAULT_PORT_ACL_ACTION_W: 1 _DERIVED_EOP_FILTER: 1 _DERIVED_EOP_FILTER_W: 1 - _DERIVED_IGNORE_IP_CHECKSUM: 1 - _DERIVED_IGNORE_IP_CHECKSUM_W: 1 _DERIVED_IINFO: 1 _DERIVED_IINFO_W: 1 _DERIVED_INGRESS_PORT_MIB: 1 @@ -37,10 +59,16 @@ defines: _DERIVED_L2_TABLE_W: 1 _DERIVED_LEARNING: 1 _DERIVED_LEARNING_W: 1 - _DERIVED_MC_HANDLING: 1 - _DERIVED_MC_HANDLING_W: 1 + _DERIVED_OINFO: 1 + _DERIVED_OINFO_W: 1 + _DERIVED_PTP_2_STEP: 1 + _DERIVED_PTP_2_STEP_W: 1 + _DERIVED_PTP_IF: 1 + _DERIVED_PTP_IF_W: 1 _DERIVED_SA_LOOKUP: 1 _DERIVED_SA_LOOKUP_W: 1 + _DERIVED_STATISTICS_ACL: 1 + _DERIVED_STATISTICS_ACL_W: 1 _DERIVED_TOS_TO_QUEUE: 1 _DERIVED_TOS_TO_QUEUE_W: 1 _DERIVED_UPDATE_IP: 1 @@ -61,6 +89,8 @@ defines: _FRER_W: 1 _FROM_CPU_TAG: 1 _FROM_CPU_TAG_W: 1 + _HAS_MEM_TABLE: 1 + _HAS_MEM_TABLE_W: 1 _HAS_SPECIAL_DECODE: 1 _HAS_SPECIAL_DECODE_W: 1 _HW_CONF_APB: 1 @@ -73,14 +103,14 @@ defines: _HW_MBF_W: 1 _HW_PKT_LENGTH: 1 _HW_PKT_LENGTH_W: 1 + _HW_RX_PTP_IF: 1 + _HW_RX_PTP_IF_W: 1 _HW_SOURCE_MBSC: 1 _HW_SOURCE_MBSC_W: 1 _IGNORE_CELL_SIZE_CHECK: 1 _IGNORE_CELL_SIZE_CHECK_W: 1 _INGRESS_ADMISSION_CONTROL: 1 _INGRESS_ADMISSION_CONTROL_W: 1 - _INGRESS_RATE_CONTROL: 1 - _INGRESS_RATE_CONTROL_W: 1 _L2EGRESSVLAN: 1 _L2EGRESSVLAN_W: 1 _L2INGRESSVLAN: 1 @@ -89,24 +119,33 @@ defines: _L2__W: 1 _L3_: 1 _L3__W: 1 + _L4_: 1 + _L4__W: 1 _LEARNING_SA_LOOKUP: 1 _LEARNING_SA_LOOKUP_W: 1 _LEGACY_INTERFACES: 0 _LEGACY_INTERFACES_W: 0 + _MEM_TABLE_NAME: doc/memory_function.csv _PORT_BASED_LEARNING: 1 _PORT_BASED_LEARNING_W: 1 _PSFP: 1 _PSFP_W: 1 + _PTP: 1 + _PTP_W: 1 _SLICES_IDENTICAL: 1 _SLICES_IDENTICAL_W: 1 _SLICE_MMP: true _SLICE_MMP_W: 1 _SPANNING_TREE: 1 _SPANNING_TREE_W: 1 + _STATISTICS_ACL: 1 + _STATISTICS_ACL_W: 1 _STATISTICS_FWD: 1 _STATISTICS_FWD_W: 1 _STATISTICS_SA_CHANGE: 1 _STATISTICS_SA_CHANGE_W: 1 + _STATISTICS_SMON: 1 + _STATISTICS_SMON_W: 1 _SVLAN_IGNORE: 1 _SVLAN_IGNORE_W: 1 _TO_CPU_TAG: 1 @@ -134,6 +173,66 @@ defines: c_AH802_SERVICE_TAG_ID: 0xe788 c_AH_PROTO: 0x33 c_ARP_ID: 0x806 + c_B3_A0_LIMIT: 0x15d + c_B3_A0_LIMIT_W: 9 + c_B3_A0_STYLE: 2 + c_B3_A0_STYLE_W: 1 + c_B3_A0_WIDTH: 9 + c_B3_A0_WIDTH_W: 4 + c_B3_A1_LIMIT: 0x29 + c_B3_A1_LIMIT_W: 6 + c_B3_A1_STYLE: 1 + c_B3_A1_STYLE_W: 1 + c_B3_A1_WIDTH: 6 + c_B3_A1_WIDTH_W: 3 + c_B3_A2_LIMIT: 0xa6 + c_B3_A2_LIMIT_W: 8 + c_B3_A2_STYLE: 1 + c_B3_A2_STYLE_W: 1 + c_B3_A2_WIDTH: 8 + c_B3_A2_WIDTH_W: 3 + c_B3_A3_LIMIT: 0xae + c_B3_A3_LIMIT_W: 8 + c_B3_A3_STYLE: 0 + c_B3_A3_STYLE_W: 0 + c_B3_A3_WIDTH: 8 + c_B3_A3_WIDTH_W: 3 + c_B3_A4_LIMIT: 0x2be + c_B3_A4_LIMIT_W: 10 + c_B3_A4_STYLE: 0 + c_B3_A4_STYLE_W: 0 + c_B3_A4_WIDTH: 10 + c_B3_A4_WIDTH_W: 4 + c_B3_B0_LIMIT: 0x27 + c_B3_B0_LIMIT_W: 6 + c_B3_B0_STYLE: 0 + c_B3_B0_STYLE_W: 0 + c_B3_B0_WIDTH: 6 + c_B3_B0_WIDTH_W: 3 + c_B3_B1_LIMIT: 0x287 + c_B3_B1_LIMIT_W: 10 + c_B3_B1_STYLE: 1 + c_B3_B1_STYLE_W: 1 + c_B3_B1_WIDTH: 10 + c_B3_B1_WIDTH_W: 4 + c_B3_B2_LIMIT: 0x51 + c_B3_B2_LIMIT_W: 7 + c_B3_B2_STYLE: 2 + c_B3_B2_STYLE_W: 1 + c_B3_B2_WIDTH: 7 + c_B3_B2_WIDTH_W: 3 + c_B3_B3_LIMIT: 0x149 + c_B3_B3_LIMIT_W: 9 + c_B3_B3_STYLE: 0 + c_B3_B3_STYLE_W: 0 + c_B3_B3_WIDTH: 9 + c_B3_B3_WIDTH_W: 4 + c_B3_B4_LIMIT: 0x189 + c_B3_B4_LIMIT_W: 9 + c_B3_B4_STYLE: 2 + c_B3_B4_STYLE_W: 1 + c_B3_B4_WIDTH: 9 + c_B3_B4_WIDTH_W: 4 c_BGP_PORT: 0xb3 c_BOOTP_UDP_PORT1: 0x43 c_BOOTP_UDP_PORT2: 0x44 @@ -144,15 +243,16 @@ defines: c_BUCKET_W: 2 c_CAPWAP_UDP_DP1: 0x147e c_CAPWAP_UDP_DP2: 0x147f - c_CARRY_PULL: 13 - c_CARRY_PULL_W: 4 - c_CARRY_WIDTH: 0x10 - c_CARRY_WIDTH_W: 4 + c_CARRY_PULL: 0x14 + c_CARRY_PULL_W: 5 + c_CARRY_WIDTH: 0x1b + c_CARRY_WIDTH_W: 5 c_CFM_ID: 0x289 c_COLOR: 3 - c_CONF_ACL_LARGE_REASON_CODE: 14 - c_CONF_ACL_SMALL_REASON_CODE: 6 - c_CONF_ACL_TCAM_REASON_CODE: 4 + c_CONF_ACL_LARGE_REASON_CODE: 0x2d + c_CONF_ACL_PORT_REASON_CODE: 4 + c_CONF_ACL_SMALL_REASON_CODE: 13 + c_CONF_ACL_TCAM_REASON_CODE: 9 c_CONF_ADDR_WIDTH: 0x10 c_CONF_ADDR_WIDTH_W: 4 c_CONF_DATA_WIDTH: 0x20 @@ -160,22 +260,24 @@ defines: c_CONF_INGRESS_ACL_DROPID: 0x24 c_CONF_INGRESS_ACL_MULTI_NR_OF_TABLES: 0 c_CONF_INGRESS_ACL_MULTI_NR_OF_TABLES_W: 0 - c_CONF_INGRESS_ACL_RULES_W: 1 - c_CONF_INGRESS_ACL_SEARCH_SIZE: 0x40 - c_CONF_INGRESS_ACL_SEARCH_SIZE_W: 6 - c_CONF_INGRESS_ACL_TOTAL_ENTRIES: 0x4a - c_CONF_INGRESS_ACL_TOTAL_ENTRIES_W: 7 + c_CONF_INGRESS_ACL_RULES_W: 4 + c_CONF_INGRESS_ACL_SEARCH_SIZE: 0x100 + c_CONF_INGRESS_ACL_SEARCH_SIZE_W: 8 + c_CONF_INGRESS_ACL_STAT_CNT: 4 + c_CONF_INGRESS_ACL_STAT_CNT_W: 2 + c_CONF_INGRESS_ACL_TOTAL_ENTRIES: 0x124 + c_CONF_INGRESS_ACL_TOTAL_ENTRIES_W: 9 c_CPU_PHYPORT: 4 c_CPU_PHYPORT_W: 2 c_CPU_PORT: 4 c_CPU_PORT_W: 2 - c_CPU_REASON_BYTES: 1 - c_CPU_REASON_RANGE: 4 - c_CPU_REASON_RANGE_W: 2 - c_CPU_TAG_BITS: 0x10 - c_CPU_TAG_BITS_W: 4 - c_CPU_TAG_BYTES: 2 - c_CPU_TAG_BYTES_W: 1 + c_CPU_REASON_BYTES: 2 + c_CPU_REASON_RANGE: 0x10 + c_CPU_REASON_RANGE_W: 4 + c_CPU_TAG_BITS: 0x68 + c_CPU_TAG_BITS_W: 7 + c_CPU_TAG_BYTES: 13 + c_CPU_TAG_BYTES_W: 4 c_CPU_TAG_QUEUE_BYTE: 1 c_CPU_TAG_QUEUE_BYTE_W: 1 c_CUSTOMER_VLAN_ID: 0x81 @@ -198,12 +300,24 @@ defines: c_EGRESS_VLAN_TRANSLATION_PAR_TABLES_W: 1 c_EGRESS_VLAN_TRANSLATION_SMALL_TABLE: 0x10 c_EGRESS_VLAN_TRANSLATION_SMALL_TABLE_W: 4 - c_EGRESS_VLAN_TRANSLATION_TCAM_ENTRIES: 3 + c_EGRESS_VLAN_TRANSLATION_TCAM_ENTRIES: 4 c_EGRESS_VLAN_TRANSLATION_TCAM_ENTRIES_W: 2 c_EGR_PORT_DISABLED: 0x7e c_EIGRP_PROTO: 0x58 c_EMPTY_DEST_DROPID: 0x7f c_ESP_PROTO: 0x32 + c_EVAL_INIT_PORT_0: 0 + c_EVAL_INIT_PORT_0_W: 0 + c_EVAL_SAMPLE_DIV: 1 + c_EVAL_SAMPLE_DIV_INIT: 0 + c_EVAL_SAMPLE_DIV_INIT_W: 0 + c_EVAL_SAMPLE_DIV_W: 1 + c_EVAL_SAMPLE_DIV_WIDTH: 3 + c_EVAL_SAMPLE_DIV_WIDTH_W: 2 + c_EVAL_SAMPLE_PORTS: 1 + c_EVAL_SAMPLE_PORTS_W: 1 + c_EVAL_SAMPLE_PORT_0: 4 + c_EVAL_SAMPLE_PORT_0_W: 2 c_FCOE_ID: 0x689 c_FOLD_CNT: 9 c_FOLD_CNT_W: 4 @@ -212,6 +326,12 @@ defines: c_FRER_MAX_HISTORY_LENGTH: 4 c_FRER_MAX_HISTORY_LENGTH_W: 3 c_FROM_CPU_ID: 0x9899 + c_FROM_CPU_TIMESTAMP_CMD_BYTE: 2 + c_FROM_CPU_TIMESTAMP_CMD_BYTE_W: 1 + c_FROM_CPU_TIMESTAMP_END: 12 + c_FROM_CPU_TIMESTAMP_END_W: 4 + c_FROM_CPU_TIMESTAMP_START: 3 + c_FROM_CPU_TIMESTAMP_START_W: 2 c_FROM_NORMAL_PKT_PROC: 0 c_FULL_PORT: 5 c_FULL_PORT_W: 3 @@ -229,6 +349,14 @@ defines: c_HASHKEY_W: 6 c_HIT_INDEX_W: 8 c_HOPOPT_PROTO: 0 + c_I2E_PORT_AUX: 5 + c_I2E_PORT_AUX_W: 3 + c_I2E_SRCPORT: 6 + c_I2E_SRCPORT_W: 3 + c_I2E_VLAN_AUX: 3 + c_I2E_VLAN_AUX_W: 2 + c_I2E_VLAN_COUNT: 3 + c_I2E_VLAN_COUNT_W: 2 c_ICMP_PROTO: 1 c_IEEE_1588_DA_MAC1: 0x11b19000000 c_IEEE_1588_DA_MAC2: 0x180c200000e @@ -248,10 +376,9 @@ defines: c_INGRESS_GATE_LIST_DEPTH: 0x10 c_INGRESS_GATE_LIST_DEPTH_W: 4 c_INGRESS_MBSC_DROPID: 3 - c_INGRESS_MMP_DEPTH: 4 - c_INGRESS_MMP_DEPTH_W: 2 + c_INGRESS_MMP_DEPTH: 8 + c_INGRESS_MMP_DEPTH_W: 3 c_INGRESS_PORT_RATE_LIMITER_DROPID: 2 - c_INGRESS_RATE_CONTROL_DROPID: 5 c_IPV4_ID: 8 c_IPV4_L3MC_ADDR_ID_24: 0x5e0001 c_IPV6_ID: 0xdd86 @@ -272,8 +399,8 @@ defines: c_ISIS_ID: 0x7088 c_KEY_SIZE: 0x31 c_KEY_SIZE_W: 6 - c_L2MCADDR: 8 - c_L2MCADDR_W: 3 + c_L2MCADDR: 0x20 + c_L2MCADDR_W: 5 c_L2TABLE_BUCKETS: 4 c_L2TABLE_BUCKETS_W: 2 c_L2TABLE_HASHKEY: 0x100 @@ -319,27 +446,30 @@ defines: c_MPLS_UC_ID: 0x4788 c_MULTICAST_BIT: 0x28 c_NON_VLAN_MEMBER_DROPID: 10 - c_NR_OF_CPU_REASONS: 0x4e - c_NR_OF_CPU_REASONS_BITS: 7 - c_NR_OF_CPU_REASONS_W: 8 + c_NR_OF_CPU_REASONS: 0x12d + c_NR_OF_CPU_REASONS_BITS: 9 + c_NR_OF_CPU_REASONS_W: 0x10 c_NR_OF_CUSTOM_HEADERS_SUPPORTED: 2 c_NR_OF_CUSTOM_HEADERS_SUPPORTED_W: 1 c_NR_OF_INTERNAL_PORTS: 0 c_NR_OF_INTERNAL_PORTS_W: 0 c_NR_OF_MPLS: 4 c_NR_OF_MPLS_W: 3 + c_NR_OF_SMON_SET: 1 + c_NR_OF_SMON_SET_W: 1 c_NR_OF_TOTAL_CONF_ACL: 1 c_NR_OF_TOTAL_CONF_ACL_W: 1 c_NR_OF_TOTAL_TAGS_SUPPORTED_W: 1 c_NR_OF_TOTAL_VOP: 3 c_NR_OF_TOTAL_VOP_W: 2 - c_OBS_LEVEL: 1 + c_OBS_LEVEL: 0 c_OSPF_PROTO: 0x59 c_PHYPORT: 5 c_PHYPORT_W: 3 c_PKT_LENGTH_W: 14 c_PORT_ACL_ACTION: 0 c_PORT_ACL_ACTION_W: 0 + c_PORT_DEFAULT_ACL_DROPID: 0x3d c_PPPOED_ID: 0x6388 c_PPPOE_ID: 0x6488 c_PPPOE_IPV4_ID: 0x2100 @@ -349,8 +479,8 @@ defines: c_PRIO: 8 c_PRIO_W: 3 c_PTP_ID: 0xf788 - c_PortAndQueue_DEPTH: 0x20 - c_PortAndQueue_DEPTH_W: 5 + c_PortAndQueue_DEPTH: 0x40 + c_PortAndQueue_DEPTH_W: 6 c_QUEUES: 8 c_QUEUES_W: 3 c_RARP_ID: 0x8035 @@ -369,15 +499,18 @@ defines: c_SLICE_MMP: 1 c_SLICE_MMP_W: 1 c_SLICE_W: 1 + c_SMON_MAP_ENTRIES: 0x5000 c_SNAP_802_1_KEY: 0xf8000003aaaa c_SNAP_LLC_KEY: 0x3aaaa c_SPANNING_TREE_BLOCKING_DROPID: 9 c_SPANNING_TREE_LEARNING_DROPID: 8 c_SPANNING_TREE_LISTEN_DROPID: 7 c_SRCPORT: 5 + c_SRCPORT_PRE_LOOKUP_BITS: 2 + c_SRCPORT_PRE_LOOKUP_BITS_W: 1 c_SRCPORT_W: 3 - c_STREAM_FILTER_ENTRIES: 8 - c_STREAM_FILTER_ENTRIES_W: 3 + c_STREAM_FILTER_ENTRIES: 0x10 + c_STREAM_FILTER_ENTRIES_W: 4 c_STREAM_HANDLE: 0x20 c_STREAM_HANDLE_W: 5 c_TAG_PM_BITS: 8 @@ -386,17 +519,19 @@ defines: c_TAG_PM_BYTES_W: 1 c_TCP_LARGER_THAN_1024_PACKETTYPE_ID: 2 c_TCP_PROTO: 6 + c_TIMESTAMP_SIZE: 10 + c_TIMESTAMP_SIZE_W: 4 c_TOP_MMP: 0 c_TOP_MMP_W: 0 c_TOTAL_NEW_VLAN_BITS: 0x60 c_TOTAL_NEW_VLAN_BITS_W: 7 c_TO_CPU_ID: 0x9999 - c_TO_CPU_TAG_BYTES: 6 + c_TO_CPU_TAG_BYTES: 0x10 c_TRILL_ID: 0xf322 c_UDP_LARGER_THAN_1024_PACKETTYPE_ID: 1 c_UDP_PROTO: 0x11 c_UNIQUE_CPU_MAC: 3 - c_UNIT_WIDTH: 0x1e + c_UNIT_WIDTH: 0x17 c_UNIT_WIDTH_W: 5 c_UNKNOWN_EGRESS_DROPID: 2 c_UNKNOWN_INGRESS_DROPID: 0 @@ -405,14 +540,16 @@ defines: c_VLANS_EGRESS_W: 3 c_VLANS_INGRESS: 2 c_VLANS_INGRESS_W: 2 - c_VLAN_SUPPORTED: 0x20 - c_VLAN_SUPPORTED_MINUS_ONE: 0x1f - c_VLAN_SUPPORTED_MINUS_ONE_W: 5 - c_VLAN_SUPPORTED_W: 6 - c_cellBits: 0x200 - c_cellBits_W: 9 - c_cellBytes: 0x40 - c_cellBytes_W: 6 + c_VLAN_SUPPORTED: 0x1000 + c_VLAN_SUPPORTED_MINUS_ONE: 0xfff + c_VLAN_SUPPORTED_MINUS_ONE_W: 12 + c_VLAN_SUPPORTED_W: 13 + c_WRED_DEPTH: 1 + c_WRED_DEPTH_W: 1 + c_cellBits: 0x400 + c_cellBits_W: 10 + c_cellBytes: 0x80 + c_cellBytes_W: 7 c_default_PACKETTYPE_ID: 0x3f c_dropRef_Size: 0x20 c_dropRef_Size_W: 5 @@ -426,68 +563,123 @@ defines: c_iHeader_VLAN_W: 5 c_iHeader_vType: 4 c_iHeader_vType_W: 2 - c_use_mux_512: 1 - c_use_mux_512_W: 1 + c_use_mux_1024: 1 + c_use_mux_1024_W: 1 conf_CONF_INGRESS_Acl_actions: 0: + - _ACL_ACTION_SEND2CPU - _ACL_ACTION_DROP + - _ACL_ACTION_SEND2PORT - _ACL_ACTION_STREAM_ID + - _ACL_ACTION_UPDATE_STAT_CNT + - _ACL_ACTION_FORCE_COLOR + - _ACL_ACTION_FORCE_MMP - _ACL_ACTION_FORCE_QUEUE conf_CONF_INGRESS_Acl_fields: 0: - - id: 2 + - id: 15 name: Source Port size: 3 - - id: 1 + - id: 14 + name: Ethernet Type + size: 0x10 + - id: 13 + name: L4 Protocol + size: 8 + - id: 12 + name: L4 Destination Port + size: 0x10 + - id: 11 + name: L4 Source Port + size: 0x10 + - id: 10 + name: TOS + size: 8 + - id: 9 + name: IPv6 DA + size: 0x80 + - id: 8 + name: IPv6 SA + size: 0x80 + - id: 7 + name: IPv4 DA + size: 0x20 + - id: 6 + name: IPv4 SA + size: 0x20 + - id: 5 + name: Outer PCP + size: 3 + - id: 4 + name: Has VLANs + size: 1 + - id: 3 name: Outer VID size: 12 - - id: 0 + - id: 2 + name: MAC SA + size: 0x30 + - id: 1 name: MAC DA size: 0x30 + - id: 0 + name: Rule Pointer + size: 4 conf_CONF_INGRESS_Acl_sizes: 0: + - 4 - 0x30 - 12 + - 1 - 3 + - 0x20 + - 0x80 + - 8 + - 0x10 conf_CONF_INGRESS_large_table: 0: - - 0x40 + - 0x100 conf_CONF_INGRESS_nr_fields: 0: - - 3 + - 0x10 conf_CONF_INGRESS_par_buckets: 0: - 2 conf_CONF_INGRESS_pre_lookup: 0: - - 0 + - 1 conf_CONF_INGRESS_pre_lookup_fields: - 0: [] + 0: + - SPORT + - VLAN + - L2 + - L3 + - L4 conf_CONF_INGRESS_rules: 0: - - 2 + - 10 conf_CONF_INGRESS_rules_per_entry: 0: - - 3 + - 10 conf_CONF_INGRESS_search_bits: 0: - - 0x40 + - 0x100 conf_CONF_INGRESS_small_table: 0: - - 8 + - 0x20 conf_CONF_INGRESS_tcam_entries: 0: - - 2 + - 4 debug_level: 1 debug_level_W: 1 - debug_read_comb: true - debug_read_comb_W: 1 - debug_read_depth_w: 9 - debug_read_depth_w_W: 4 + debug_read_comb: false + debug_read_comb_W: 0 + debug_read_depth_w: 8 + debug_read_depth_w_W: 3 debug_read_width: 0x20 debug_read_width_W: 5 ppp_latencies: - eopFilter: 5 + eopFilter: 6 ram_to_reg: - r_l2McTable - r_prio2Queue @@ -518,17 +710,19 @@ hwconf: _erm_config: accumulated: false guarantees: true - margin: 0x69 - max_threshold_bytes: 0x1a04 + margin: 0x37 + max_cells: true + max_threshold_bytes: 0x1b04 mode: - eql per_queue_counter: true port_limit: true - port_set: 0x14 - xon_cells: 0x25a + port_set: 0 + qguarantee_cells: 0x18 + xon_cells: 0x42c _mesh_cells_required: null _mesh_max_pkt: 0x641 - _pb_depth: 0x400 + _pb_depth: 0x800 _throw_fifo_depth: default aclPrefixList: - _CONF_INGRESS @@ -543,21 +737,23 @@ hwconf: - 3 - 4 all_ports_same_queues: true - allow_2c_flopmem: false + allow_2c_flopmem: true apb_timeout_width: 11 assert_override: [] assert_reset_flops: 0 + async_clocks: true axis_mode: - true barrel_mux_depth: 2 - barrel_mux_width: 0x80 + barrel_mux_width: 0x100 barrel_post_flops: 0 barrel_pre_flops: 0 base_dir: ../.. - base_tick_cnt_w: 0x3b + base_tick_cnt_w: 0x50 block_ccheck_flops: 0 block_conf_flops: 0 block_debug_flops: 0 + block_debug_read_flops: 0 block_input_flops: 0 block_output_flops: 0 bm_cell_multiplier: 1 @@ -596,37 +792,38 @@ hwconf: - 8 buffer_matrix_config: - almost_full_margin: 5 - bank_depth: 0x200 + bank_depth: 0x400 nr_of_banks: 2 bufferloop_ports: [] + calc_pkt_length: true cam_model: default cell_mode: - false cell_rate_mhz: - - 122.02380952380952 - - 122.02380952380952 - - 122.02380952380952 - - 122.02380952380952 - - 122.02380952380952 - cell_size: 0x200 + - 17.857142857142858 + - 17.857142857142858 + - 17.857142857142858 + - 17.857142857142858 + - 1.7857142857142858 + cell_size: 0x400 cells_per_core_cycle: - - 0.9761904761904762 - - 0.9761904761904762 - - 0.9761904761904762 - - 0.9761904761904762 - - 0.9761904761904762 + - 0.5857142857142857 + - 0.5857142857142857 + - 0.5857142857142857 + - 0.5857142857142857 + - 0.5857142857142857 cells_per_minpkt: - - 2 - - 2 - - 2 - - 2 - - 2 + - 1 + - 1 + - 1 + - 1 + - 1 cells_per_qos_max_pkt: - - 0x1a - - 0x1a - - 0x1a - - 0x1a - - 0x1a + - 13 + - 13 + - 13 + - 13 + - 13 check_alignment: false chunk_group_schedule: - - 0 @@ -684,76 +881,196 @@ hwconf: combined_yml: config.yml confAclActions: _CONF_INGRESS: - - - _ACL_ACTION_DROP + - - _ACL_ACTION_SEND2CPU + - _ACL_ACTION_DROP + - _ACL_ACTION_SEND2PORT - _ACL_ACTION_STREAM_ID + - _ACL_ACTION_UPDATE_STAT_CNT + - _ACL_ACTION_FORCE_COLOR + - _ACL_ACTION_FORCE_MMP - _ACL_ACTION_FORCE_QUEUE confAclEngines: _CONF_INGRESS: 1 confAclFieldSizes: _CONF_INGRESS: 0: + - 4 - 0x30 - 12 + - 1 - 3 + - 0x20 + - 0x80 + - 8 + - 0x10 confAclFieldTypes: _CONF_INGRESS: - - - MAC DA + - - Rule Pointer + - MAC DA + - MAC SA - Outer VID + - Has VLANs + - Outer PCP + - IPv4 SA + - IPv4 DA + - IPv6 SA + - IPv6 DA + - TOS + - L4 Source Port + - L4 Destination Port + - L4 Protocol + - Ethernet Type - Source Port confAclFields: _CONF_INGRESS: - - - const_name: DA_MAC - descr: The packets destination MAC address. + - - const_name: RULE + descr: The rule pointer (index in the \confAclRegister{Rules Setup}). id: 0 + name: Rule Pointer + prefix: _CONF_INGRESS + size: 4 + valid: Always valid + - const_name: DA_MAC + descr: The packets destination MAC address. + id: 1 name: MAC DA prefix: _CONF_INGRESS size: 0x30 valid: Always valid + - const_name: SA_MAC + descr: The packet's source MAC address + id: 2 + name: MAC SA + prefix: _CONF_INGRESS + size: 0x30 + valid: Always valid - const_name: OUTER_VID descr: The packets outermost VLAN Identifier (VID) - id: 1 + id: 3 name: Outer VID prefix: _CONF_INGRESS size: 12 valid: When packet has a VLAN. + - const_name: HAS_VLANS + descr: Does the packet have any VLAN tags \tabTwo{No VLAN in packet}{One or more VLANs in packet}. + id: 4 + name: Has VLANs + prefix: _CONF_INGRESS + size: 1 + valid: Always valid + - const_name: OUTER_PCP + descr: The packets outermost VLAN PCP field. + id: 5 + name: Outer PCP + prefix: _CONF_INGRESS + size: 3 + valid: When packet has a VLAN. + - const_name: IPv4_SA + descr: IPv4 Source Address. + id: 6 + name: IPv4 SA + prefix: _CONF_INGRESS + size: 0x20 + valid: When L2 frame holds a IPv4 packet. + - const_name: IPv4_DA + descr: IPv4 Destination Address. + id: 7 + name: IPv4 DA + prefix: _CONF_INGRESS + size: 0x20 + valid: When L2 frame holds a IPv4 packet. + - const_name: IPv6_SA + descr: IPv6 Source Address. + id: 8 + name: IPv6 SA + prefix: _CONF_INGRESS + size: 0x80 + valid: When L2 frame holds a IPv6 packet. + - const_name: IPv6_DA + descr: IPv6 Destination Address. + id: 9 + name: IPv6 DA + prefix: _CONF_INGRESS + size: 0x80 + valid: When L2 frame holds a IPv6 packet. + - const_name: TOS + descr: IPv4 Type-Of-Service (TOS) or IPv6 Traffic Class byte. + id: 10 + name: TOS + prefix: _CONF_INGRESS + size: 8 + valid: When packet is an IPv4 or IPv6 + - const_name: L4_SP + descr: L4 TCP or UDP packets source port. + id: 11 + name: L4 Source Port + prefix: _CONF_INGRESS + size: 0x10 + valid: When packet is an IPv4 or IPv6 and UDP or TCP L4 protocol is present + - const_name: L4_DP + descr: L4 TCP or UDP packets destination port. + id: 12 + name: L4 Destination Port + prefix: _CONF_INGRESS + size: 0x10 + valid: When packet is an IPv4 or IPv6 and UDP or TCP L4 protocol is present + - const_name: L3_PROTO + descr: IPv4, IPv6 L4 protocol type byte. + id: 13 + name: L4 Protocol + prefix: _CONF_INGRESS + size: 8 + valid: When packet is an IPv4 or IPv6 + - const_name: ETH_TYPE + descr: The packet's Ethernet Type after VLANs. + id: 14 + name: Ethernet Type + prefix: _CONF_INGRESS + size: 0x10 + valid: Always valid - const_name: SOURCE_PORT descr: The source port of the packet. - id: 2 + id: 15 name: Source Port prefix: _CONF_INGRESS size: 3 valid: Always valid confAclLargeTable: _CONF_INGRESS: - - 0x40 + - 0x100 confAclMaxBits: 0 confAclNrFields: _CONF_INGRESS: - - 3 + - 0x10 confAclParTables: _CONF_INGRESS: - 2 confAclPreLookup: _CONF_INGRESS: - - 0 + - 1 confAclPreLookupFields: _CONF_INGRESS: - 0: [] + 0: + - SPORT + - VLAN + - L2 + - L3 + - L4 confAclRules: _CONF_INGRESS: - - 2 + - 10 confAclRulesPerEntry: _CONF_INGRESS: - - 3 + - 10 confAclSearchSize: _CONF_INGRESS: - - 0x40 + - 0x100 confAclSmallTable: _CONF_INGRESS: - - 8 + - 0x20 confAclTcamEntries: _CONF_INGRESS: - - 2 + - 4 conf_addr_width: 0x10 conf_bus_collector_output_flops: - - pa.top.switch.ipp\d+.ippp.ippp.collector @@ -773,11 +1090,11 @@ hwconf: core_tick_debug_pin: 0 cpu_cmd_fields: [] cpu_port: 4 - create_memory_function_table: null + create_memory_function_table: doc/memory_function.csv credit_interface: false crypto_config: null crypto_packet_limit: 0x641 - customer_name: JLSemi + customer_name: Sailfish cut_through: false datapath_fragments: 1 datapath_type_db: @@ -787,6 +1104,9 @@ hwconf: bool: name: bool width: 1 + byte: + name: byte + width: 8 e_vType: enum: cVlan: 0 @@ -804,83 +1124,80 @@ hwconf: swap: 1 name: e_vlanSingleOp width: 3 - t_color: - name: t_color - width: 2 - t_datapath: + short: + name: short + width: 0x10 + t_acl_counter: members: - doc: null hi: 0 lo: 0 - name: dummy + name: valid width: 1 - doc: null - hi: 2 + hi: 7 lo: 1 - name: ipp_out_if - structure: - members: - - doc: null - hi: 1 - lo: 0 - name: color - width: 2 - name: t_ipp_out_if - width: 2 - width: 2 - - doc: null - hi: 4 - lo: 3 - name: erm_out_if + name: data structure: members: - doc: null - hi: 1 + hi: 3 lo: 0 - name: color - width: 2 - name: t_erm_out_if - width: 2 - width: 2 - - doc: null - hi: 0x14 - lo: 5 - name: pb_out_if - structure: - members: + name: pkt_if + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: pktId + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: fullPort + width: 3 + name: t_pktId + width: 3 + width: 3 + - doc: null + hi: 3 + lo: 3 + name: update + width: 1 + name: t_pktInfo + width: 4 + width: 4 - doc: null - hi: 1 - lo: 0 - name: trans + hi: 6 + lo: 4 + name: index structure: members: - doc: null - hi: 1 + hi: 0 lo: 0 - name: color + name: updateCounter0 + width: 1 + - doc: null + hi: 2 + lo: 1 + name: counter0 width: 2 - name: t_erm_out_if - width: 2 - width: 2 - - doc: null - hi: 15 - lo: 2 - name: pktLen - width: 14 - name: t_pb_out_if - width: 0x10 - width: 0x10 - name: t_datapath - width: 0x15 - t_dei: - name: t_dei - width: 1 - t_egressDrop: + name: t_confIngressAclStat + width: 3 + width: 3 + name: t_acl_counter_data + width: 7 + width: 7 + name: t_acl_counter + width: 8 + t_acl_counter_data: members: - doc: null hi: 3 lo: 0 - name: pktInfo + name: pkt_if structure: members: - doc: null @@ -906,52 +1223,374 @@ hwconf: width: 4 width: 4 - doc: null - hi: 8 + hi: 6 lo: 4 - name: queueOff - width: 5 + name: index + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: updateCounter0 + width: 1 + - doc: null + hi: 2 + lo: 1 + name: counter0 + width: 2 + name: t_confIngressAclStat + width: 3 + width: 3 + name: t_acl_counter_data + width: 7 + t_color: + name: t_color + width: 2 + t_confIngressAclStat: + members: - doc: null - hi: 13 - lo: 9 - name: egressSpt - width: 5 - name: t_egressDrop - width: 14 - t_egressDropStatistics: + hi: 0 + lo: 0 + name: updateCounter0 + width: 1 + - doc: null + hi: 2 + lo: 1 + name: counter0 + width: 2 + name: t_confIngressAclStat + width: 3 + t_datapath: members: - doc: null hi: 0 lo: 0 - name: valid + name: dummy width: 1 - doc: null - hi: 14 + hi: 0x58 lo: 1 - name: data + name: ipp_out_if structure: members: - doc: null - hi: 3 + hi: 0x50 lo: 0 - name: pktInfo + name: eopTs structure: members: - doc: null - hi: 2 + hi: 0 lo: 0 - name: pktId - structure: - members: - - doc: null - hi: 2 - lo: 0 - name: fullPort - width: 3 - name: t_pktId - width: 3 - width: 3 + name: valid_ts + width: 1 - doc: null - hi: 3 + hi: 0x50 + lo: 1 + name: ts + width: 0x50 + name: t_eopTs + width: 0x51 + width: 0x51 + - doc: null + hi: 0x52 + lo: 0x51 + name: color + width: 2 + - doc: null + hi: 0x57 + lo: 0x53 + name: eop_drop_mask + width: 5 + name: t_ipp_out_if + width: 0x58 + width: 0x58 + - doc: null + hi: 0xab + lo: 0x59 + name: erm_out_if + structure: + members: + - doc: null + hi: 0x50 + lo: 0 + name: eopTs + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: valid_ts + width: 1 + - doc: null + hi: 0x50 + lo: 1 + name: ts + width: 0x50 + name: t_eopTs + width: 0x51 + width: 0x51 + - doc: null + hi: 0x52 + lo: 0x51 + name: color + width: 2 + name: t_erm_out_if + width: 0x53 + width: 0x53 + - doc: null + hi: 0x10c + lo: 0xac + name: pb_out_if + structure: + members: + - doc: null + hi: 0x52 + lo: 0 + name: trans + structure: + members: + - doc: null + hi: 0x50 + lo: 0 + name: eopTs + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: valid_ts + width: 1 + - doc: null + hi: 0x50 + lo: 1 + name: ts + width: 0x50 + name: t_eopTs + width: 0x51 + width: 0x51 + - doc: null + hi: 0x52 + lo: 0x51 + name: color + width: 2 + name: t_erm_out_if + width: 0x53 + width: 0x53 + - doc: null + hi: 0x60 + lo: 0x53 + name: pktLen + width: 14 + name: t_pb_out_if + width: 0x61 + width: 0x61 + - doc: null + hi: 0x10d + lo: 0x10d + name: epp_out_if + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: ptp_to_mac + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: ptp_ctrl + structure: + members: + - doc: Take a timestamp in the TX MAC and send it to software. The packet is not modified. + hi: 0 + lo: 0 + name: upd_ts + width: 1 + name: t_ptp_ctrl + width: 1 + width: 1 + name: t_ptp_to_mac + width: 1 + width: 1 + name: t_epp_out_if + width: 1 + width: 1 + - doc: null + hi: 0x135 + lo: 0x10e + name: from_cpu_tag + structure: + members: + - doc: Ethernet Type of the From CPU tag. + hi: 15 + lo: 0 + name: ethType + width: 0x10 + - doc: Destination port mask. Each set bit selects one destination port. + hi: 0x17 + lo: 0x10 + name: dstPortmask + width: 8 + - doc: Destination queue for the packet. + hi: 0x1a + lo: 0x18 + name: queue + width: 3 + - doc: Reserved. Set to zero. + hi: 0x1f + lo: 0x1b + name: pad_queue + width: 5 + - doc: PTP transmit control. + hi: 0x20 + lo: 0x20 + name: ptp_ctrl + structure: + members: + - doc: Take a timestamp in the TX MAC and send it to software. The packet is not modified. + hi: 0 + lo: 0 + name: upd_ts + width: 1 + name: t_ptp_ctrl + width: 1 + width: 1 + - doc: Reserved. Set to zero. + hi: 0x27 + lo: 0x21 + name: pad_ctrl + width: 7 + name: t_fromCpuTag + width: 0x28 + width: 0x28 + - doc: null + hi: 0x1b5 + lo: 0x136 + name: to_cpu_tag + structure: + members: + - doc: Ethernet Type of the To CPU tag. + hi: 15 + lo: 0 + name: type + width: 0x10 + - doc: Source port number. + hi: 0x17 + lo: 0x10 + name: srcPort + width: 8 + - doc: Reason code indicating why the packet was sent to the CPU. See table \ref{tab:toCpuReasonTable}. + hi: 0x27 + lo: 0x18 + name: reason + width: 0x10 + - doc: If set, the packet is a PTP packet. + hi: 0x28 + lo: 0x28 + name: ptp + width: 1 + - doc: If set, the timestamp field is valid. + hi: 0x29 + lo: 0x29 + name: validTs + width: 1 + - doc: Reserved. Set to zero. + hi: 0x2f + lo: 0x2a + name: rsv + width: 6 + - doc: Timestamp associated with the packet. The lowest numbered byte contains the most significant byte of the timestamp value. + hi: 0x7f + lo: 0x30 + name: timestamp + width: 0x50 + name: t_toCpuTag + width: 0x80 + width: 0x80 + name: t_datapath + width: 0x1b6 + t_dei: + name: t_dei + width: 1 + t_egressDrop: + members: + - doc: null + hi: 3 + lo: 0 + name: pktInfo + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: pktId + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: fullPort + width: 3 + name: t_pktId + width: 3 + width: 3 + - doc: null + hi: 3 + lo: 3 + name: update + width: 1 + name: t_pktInfo + width: 4 + width: 4 + - doc: null + hi: 8 + lo: 4 + name: queueOff + width: 5 + - doc: null + hi: 13 + lo: 9 + name: egressSpt + width: 5 + name: t_egressDrop + width: 14 + t_egressDropStatistics: + members: + - doc: null + hi: 0 + lo: 0 + name: valid + width: 1 + - doc: null + hi: 14 + lo: 1 + name: data + structure: + members: + - doc: null + hi: 3 + lo: 0 + name: pktInfo + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: pktId + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: fullPort + width: 3 + name: t_pktId + width: 3 + width: 3 + - doc: null + hi: 3 lo: 3 name: update width: 1 @@ -982,6 +1621,20 @@ hwconf: width: 1 name: t_emptyBlock width: 1 + t_eopTs: + members: + - doc: null + hi: 0 + lo: 0 + name: valid_ts + width: 1 + - doc: null + hi: 0x50 + lo: 1 + name: ts + width: 0x50 + name: t_eopTs + width: 0x51 t_eop_ptr: members: - doc: null @@ -990,13 +1643,13 @@ hwconf: name: ingressValid width: 1 - doc: null - hi: 2 + hi: 3 lo: 1 name: ingressPtr - width: 2 + width: 3 - doc: null - hi: 0x21 - lo: 3 + hi: 0x22 + lo: 4 name: frer structure: members: @@ -1039,16 +1692,62 @@ hwconf: width: 0x1f width: 0x1f name: t_eop_ptr - width: 0x22 + width: 0x23 + t_epp_out_if: + members: + - doc: null + hi: 0 + lo: 0 + name: ptp_to_mac + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: ptp_ctrl + structure: + members: + - doc: Take a timestamp in the TX MAC and send it to software. The packet is not modified. + hi: 0 + lo: 0 + name: upd_ts + width: 1 + name: t_ptp_ctrl + width: 1 + width: 1 + name: t_ptp_to_mac + width: 1 + width: 1 + name: t_epp_out_if + width: 1 t_erm_out_if: members: - doc: null - hi: 1 + hi: 0x50 lo: 0 + name: eopTs + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: valid_ts + width: 1 + - doc: null + hi: 0x50 + lo: 1 + name: ts + width: 0x50 + name: t_eopTs + width: 0x51 + width: 0x51 + - doc: null + hi: 0x52 + lo: 0x51 name: color width: 2 name: t_erm_out_if - width: 2 + width: 0x53 t_frer_ptr: members: - doc: null @@ -1088,18 +1787,61 @@ hwconf: width: 3 name: t_frer_ptr width: 0x1f - t_full_port: - name: t_full_port - width: 3 - t_hashKey: - name: t_hashKey - width: 6 - t_i2eHeader: + t_fromCpuTag: members: - - doc: null - hi: 0x5f + - doc: Ethernet Type of the From CPU tag. + hi: 15 lo: 0 - name: l2Hdr + name: ethType + width: 0x10 + - doc: Destination port mask. Each set bit selects one destination port. + hi: 0x17 + lo: 0x10 + name: dstPortmask + width: 8 + - doc: Destination queue for the packet. + hi: 0x1a + lo: 0x18 + name: queue + width: 3 + - doc: Reserved. Set to zero. + hi: 0x1f + lo: 0x1b + name: pad_queue + width: 5 + - doc: PTP transmit control. + hi: 0x20 + lo: 0x20 + name: ptp_ctrl + structure: + members: + - doc: Take a timestamp in the TX MAC and send it to software. The packet is not modified. + hi: 0 + lo: 0 + name: upd_ts + width: 1 + name: t_ptp_ctrl + width: 1 + width: 1 + - doc: Reserved. Set to zero. + hi: 0x27 + lo: 0x21 + name: pad_ctrl + width: 7 + name: t_fromCpuTag + width: 0x28 + t_full_port: + name: t_full_port + width: 3 + t_hashKey: + name: t_hashKey + width: 6 + t_i2eHeader: + members: + - doc: null + hi: 0x63 + lo: 0 + name: l2Hdr structure: members: - doc: null @@ -1278,30 +2020,41 @@ hwconf: width: 0x15 width: 0x15 - doc: null - hi: 0x5b + hi: 0x5d lo: 0x55 name: toCpuReason - width: 7 + width: 9 + - doc: null + hi: 0x5e + lo: 0x5e + name: isPTP + width: 1 - doc: null - hi: 0x5c - lo: 0x5c + hi: 0x5f + lo: 0x5f name: delFromCpuTag width: 1 - doc: null - hi: 0x5d - lo: 0x5d + hi: 0x60 + lo: 0x60 name: mmpValid width: 1 - doc: null - hi: 0x5f - lo: 0x5e + hi: 0x63 + lo: 0x61 name: mmpPtr - width: 2 + width: 3 name: t_iHeaderL2 - width: 0x60 - width: 0x60 + width: 0x64 + width: 0x64 name: t_i2eHeader - width: 0x60 + width: 0x64 + t_i2eNrOfVlans: + name: t_i2eNrOfVlans + width: 2 + t_i2ePort: + name: t_i2ePort + width: 3 t_iHeaderL2: members: - doc: null @@ -1480,82 +2233,32 @@ hwconf: width: 0x15 width: 0x15 - doc: null - hi: 0x5b + hi: 0x5d lo: 0x55 name: toCpuReason - width: 7 + width: 9 - doc: null - hi: 0x5c - lo: 0x5c + hi: 0x5e + lo: 0x5e + name: isPTP + width: 1 + - doc: null + hi: 0x5f + lo: 0x5f name: delFromCpuTag width: 1 - doc: null - hi: 0x5d - lo: 0x5d + hi: 0x60 + lo: 0x60 name: mmpValid width: 1 - doc: null - hi: 0x5f - lo: 0x5e + hi: 0x63 + lo: 0x61 name: mmpPtr - width: 2 + width: 3 name: t_iHeaderL2 - width: 0x60 - t_iRateCtrlAns: - members: - - doc: null - hi: 0x13 - lo: 0 - name: data - width: 0x14 - name: t_iRateCtrlAns - width: 0x14 - t_iRateCtrlMask: - name: t_iRateCtrlMask - width: 0x14 - t_iRateCtrlReq: - members: - - doc: null - hi: 0 - lo: 0 - name: valid - width: 1 - - doc: null - hi: 14 - lo: 1 - name: data - structure: - members: - - doc: null - hi: 0 - lo: 0 - name: isHeader - width: 1 - - doc: null - hi: 1 - lo: 1 - name: enable - width: 1 - - doc: null - hi: 8 - lo: 2 - name: srcBytes - width: 7 - - doc: null - hi: 11 - lo: 9 - name: srcSlicePort - width: 3 - - doc: null - hi: 13 - lo: 12 - name: srcQueue - width: 2 - name: t_toIrcInfo - width: 14 - width: 14 - name: t_iRateCtrlReq - width: 15 + width: 0x64 t_igrPortMib: members: - doc: null @@ -1684,12 +2387,36 @@ hwconf: t_ipp_out_if: members: - doc: null - hi: 1 + hi: 0x50 lo: 0 + name: eopTs + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: valid_ts + width: 1 + - doc: null + hi: 0x50 + lo: 1 + name: ts + width: 0x50 + name: t_eopTs + width: 0x51 + width: 0x51 + - doc: null + hi: 0x52 + lo: 0x51 name: color width: 2 + - doc: null + hi: 0x57 + lo: 0x53 + name: eop_drop_mask + width: 5 name: t_ipp_out_if - width: 2 + width: 0x58 t_irl_status: members: - doc: null @@ -1755,27 +2482,27 @@ hwconf: name: valid width: 1 - doc: null - hi: 12 + hi: 13 lo: 6 name: valid_bytes - width: 7 - - doc: null - hi: 13 - lo: 13 - name: is_bc - width: 1 + width: 8 - doc: null hi: 14 lo: 14 - name: is_mc + name: is_bc width: 1 - doc: null hi: 15 lo: 15 + name: is_mc + width: 1 + - doc: null + hi: 0x10 + lo: 0x10 name: is_uc_fd width: 1 name: t_irl_update - width: 0x10 + width: 0x11 t_learn: members: - doc: null @@ -2042,7 +2769,7 @@ hwconf: name: isConnected width: 1 - doc: null - hi: 0x14 + hi: 0x15 lo: 1 name: data structure: @@ -2053,45 +2780,45 @@ hwconf: name: portMask width: 5 - doc: null - hi: 11 + hi: 12 lo: 5 name: srcBytes - width: 7 + width: 8 - doc: null - hi: 14 - lo: 12 + hi: 15 + lo: 13 name: srcPort width: 3 - - doc: null - hi: 15 - lo: 15 - name: isFloodingMc - width: 1 - doc: null hi: 0x10 lo: 0x10 - name: isFloodingUc + name: isFloodingMc width: 1 - doc: null hi: 0x11 lo: 0x11 - name: isL2Multicast + name: isFloodingUc width: 1 - doc: null hi: 0x12 lo: 0x12 - name: isL2Broadcast + name: isL2Multicast width: 1 - doc: null hi: 0x13 lo: 0x13 + name: isL2Broadcast + width: 1 + - doc: null + hi: 0x14 + lo: 0x14 name: isHeader width: 1 name: t_toMbscInfo - width: 0x14 - width: 0x14 + width: 0x15 + width: 0x15 name: t_mbscToken - width: 0x15 + width: 0x16 t_mmp: members: - doc: null @@ -2100,7 +2827,7 @@ hwconf: name: valid width: 1 - doc: null - hi: 0x65 + hi: 0x78 lo: 1 name: data structure: @@ -2130,23 +2857,23 @@ hwconf: name: isTail width: 1 - doc: null - hi: 11 + hi: 12 lo: 5 name: srcBytes - width: 7 + width: 8 - doc: null - hi: 0x10 - lo: 12 + hi: 0x11 + lo: 13 name: dropMask width: 5 - doc: null - hi: 0x12 - lo: 0x11 + hi: 0x13 + lo: 0x12 name: color width: 2 - doc: null - hi: 0x34 - lo: 0x13 + hi: 0x36 + lo: 0x14 name: eopPtr structure: members: @@ -2156,13 +2883,13 @@ hwconf: name: ingressValid width: 1 - doc: null - hi: 2 + hi: 3 lo: 1 name: ingressPtr - width: 2 + width: 3 - doc: null - hi: 0x21 - lo: 3 + hi: 0x22 + lo: 4 name: frer structure: members: @@ -2205,11 +2932,11 @@ hwconf: width: 0x1f width: 0x1f name: t_eop_ptr - width: 0x22 - width: 0x22 + width: 0x23 + width: 0x23 - doc: null - hi: 0x64 - lo: 0x35 + hi: 0x77 + lo: 0x37 name: psfpInfo structure: members: @@ -2219,64 +2946,90 @@ hwconf: name: psfpEn width: 1 - doc: null - hi: 3 + hi: 4 lo: 1 name: filterId - width: 3 + width: 4 - doc: null - hi: 7 - lo: 4 + hi: 8 + lo: 5 name: gateId width: 4 - doc: null - hi: 8 - lo: 8 + hi: 9 + lo: 9 name: gateClosed width: 1 - doc: null - hi: 15 - lo: 9 - name: l2Bytes - width: 7 + hi: 0x11 + lo: 10 + name: msduHeaderBytes + width: 8 - doc: null - hi: 0x2f - lo: 0x10 + hi: 0x31 + lo: 0x12 name: maxMSDU width: 0x20 + - doc: null + hi: 0x3f + lo: 0x32 + name: maxSDU + width: 14 + - doc: null + hi: 0x40 + lo: 0x40 + name: blockingEn + width: 1 name: t_psfp_info - width: 0x30 - width: 0x30 + width: 0x41 + width: 0x41 name: t_to_eop_filter - width: 0x65 - width: 0x65 + width: 0x78 + width: 0x78 name: t_mmp - width: 0x66 - t_nrOfIngressVlans: - name: t_nrOfIngressVlans - width: 2 + width: 0x79 t_pb_out_if: members: - doc: null - hi: 1 + hi: 0x52 lo: 0 name: trans structure: members: - doc: null - hi: 1 + hi: 0x50 lo: 0 + name: eopTs + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: valid_ts + width: 1 + - doc: null + hi: 0x50 + lo: 1 + name: ts + width: 0x50 + name: t_eopTs + width: 0x51 + width: 0x51 + - doc: null + hi: 0x52 + lo: 0x51 name: color width: 2 name: t_erm_out_if - width: 2 - width: 2 + width: 0x53 + width: 0x53 - doc: null - hi: 15 - lo: 2 + hi: 0x60 + lo: 0x53 name: pktLen width: 14 name: t_pb_out_if - width: 0x10 + width: 0x61 t_pcp: name: t_pcp width: 3 @@ -2312,6 +3065,9 @@ hwconf: width: 1 name: t_pktInfo width: 4 + t_pktSize: + name: t_pktSize + width: 14 t_port: name: t_port width: 3 @@ -2323,73 +3079,241 @@ hwconf: name: psfpEn width: 1 - doc: null - hi: 3 + hi: 4 lo: 1 name: filterId - width: 3 + width: 4 - doc: null - hi: 7 - lo: 4 + hi: 8 + lo: 5 name: gateId width: 4 - doc: null - hi: 8 - lo: 8 + hi: 9 + lo: 9 name: gateClosed width: 1 - doc: null - hi: 15 - lo: 9 - name: l2Bytes - width: 7 + hi: 0x11 + lo: 10 + name: msduHeaderBytes + width: 8 - doc: null - hi: 0x2f - lo: 0x10 + hi: 0x31 + lo: 0x12 name: maxMSDU width: 0x20 - name: t_psfp_info - width: 0x30 - t_queue: - name: t_queue - width: 2 - t_slicePort: - name: t_slicePort - width: 3 - t_srcSize: - name: t_srcSize - width: 7 - t_toCpuReason: - name: t_toCpuReason - width: 7 - t_toIrcInfo: + - doc: null + hi: 0x3f + lo: 0x32 + name: maxSDU + width: 14 + - doc: null + hi: 0x40 + lo: 0x40 + name: blockingEn + width: 1 + name: t_psfp_info + width: 0x41 + t_ptp_ctrl: + members: + - doc: Take a timestamp in the TX MAC and send it to software. The packet is not modified. + hi: 0 + lo: 0 + name: upd_ts + width: 1 + name: t_ptp_ctrl + width: 1 + t_ptp_to_mac: members: - doc: null hi: 0 lo: 0 - name: isHeader + name: ptp_ctrl + structure: + members: + - doc: Take a timestamp in the TX MAC and send it to software. The packet is not modified. + hi: 0 + lo: 0 + name: upd_ts + width: 1 + name: t_ptp_ctrl + width: 1 width: 1 + name: t_ptp_to_mac + width: 1 + t_queue: + name: t_queue + width: 3 + t_smon: + members: - doc: null - hi: 1 - lo: 1 - name: enable + hi: 3 + lo: 0 + name: pktInfo + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: pktId + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: fullPort + width: 3 + name: t_pktId + width: 3 + width: 3 + - doc: null + hi: 3 + lo: 3 + name: update + width: 1 + name: t_pktInfo + width: 4 + width: 4 + - doc: null + hi: 4 + lo: 4 + name: hit + width: 1 + - doc: null + hi: 5 + lo: 5 + name: setNr width: 1 - doc: null hi: 8 - lo: 2 - name: srcBytes - width: 7 + lo: 6 + name: pcp + width: 3 - doc: null - hi: 11 + hi: 0x10 lo: 9 - name: srcSlicePort - width: 3 + name: srcBytes + width: 8 + name: t_smon + width: 0x11 + t_smonStatistics: + members: - doc: null - hi: 13 - lo: 12 - name: srcQueue - width: 2 - name: t_toIrcInfo - width: 14 + hi: 0 + lo: 0 + name: valid + width: 1 + - doc: null + hi: 0x11 + lo: 1 + name: data + structure: + members: + - doc: null + hi: 3 + lo: 0 + name: pktInfo + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: pktId + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: fullPort + width: 3 + name: t_pktId + width: 3 + width: 3 + - doc: null + hi: 3 + lo: 3 + name: update + width: 1 + name: t_pktInfo + width: 4 + width: 4 + - doc: null + hi: 4 + lo: 4 + name: hit + width: 1 + - doc: null + hi: 5 + lo: 5 + name: setNr + width: 1 + - doc: null + hi: 8 + lo: 6 + name: pcp + width: 3 + - doc: null + hi: 0x10 + lo: 9 + name: srcBytes + width: 8 + name: t_smon + width: 0x11 + width: 0x11 + name: t_smonStatistics + width: 0x12 + t_srcSize: + name: t_srcSize + width: 8 + t_timestamp: + name: t_timestamp + width: 0x50 + t_toCpuReason: + name: t_toCpuReason + width: 9 + t_toCpuReason_field: + name: t_toCpuReason_field + width: 0x10 + t_toCpuTag: + members: + - doc: Ethernet Type of the To CPU tag. + hi: 15 + lo: 0 + name: type + width: 0x10 + - doc: Source port number. + hi: 0x17 + lo: 0x10 + name: srcPort + width: 8 + - doc: Reason code indicating why the packet was sent to the CPU. See table \ref{tab:toCpuReasonTable}. + hi: 0x27 + lo: 0x18 + name: reason + width: 0x10 + - doc: If set, the packet is a PTP packet. + hi: 0x28 + lo: 0x28 + name: ptp + width: 1 + - doc: If set, the timestamp field is valid. + hi: 0x29 + lo: 0x29 + name: validTs + width: 1 + - doc: Reserved. Set to zero. + hi: 0x2f + lo: 0x2a + name: rsv + width: 6 + - doc: Timestamp associated with the packet. The lowest numbered byte contains the most significant byte of the timestamp value. + hi: 0x7f + lo: 0x30 + name: timestamp + width: 0x50 + name: t_toCpuTag + width: 0x80 t_toMbscInfo: members: - doc: null @@ -2398,42 +3322,42 @@ hwconf: name: portMask width: 5 - doc: null - hi: 11 + hi: 12 lo: 5 name: srcBytes - width: 7 + width: 8 - doc: null - hi: 14 - lo: 12 + hi: 15 + lo: 13 name: srcPort width: 3 - - doc: null - hi: 15 - lo: 15 - name: isFloodingMc - width: 1 - doc: null hi: 0x10 lo: 0x10 - name: isFloodingUc + name: isFloodingMc width: 1 - doc: null hi: 0x11 lo: 0x11 - name: isL2Multicast + name: isFloodingUc width: 1 - doc: null hi: 0x12 lo: 0x12 - name: isL2Broadcast + name: isL2Multicast width: 1 - doc: null hi: 0x13 lo: 0x13 + name: isL2Broadcast + width: 1 + - doc: null + hi: 0x14 + lo: 0x14 name: isHeader width: 1 name: t_toMbscInfo - width: 0x14 + width: 0x15 t_to_eop_filter: members: - doc: null @@ -2461,23 +3385,23 @@ hwconf: name: isTail width: 1 - doc: null - hi: 11 + hi: 12 lo: 5 name: srcBytes - width: 7 + width: 8 - doc: null - hi: 0x10 - lo: 12 + hi: 0x11 + lo: 13 name: dropMask width: 5 - doc: null - hi: 0x12 - lo: 0x11 + hi: 0x13 + lo: 0x12 name: color width: 2 - doc: null - hi: 0x34 - lo: 0x13 + hi: 0x36 + lo: 0x14 name: eopPtr structure: members: @@ -2487,13 +3411,13 @@ hwconf: name: ingressValid width: 1 - doc: null - hi: 2 + hi: 3 lo: 1 name: ingressPtr - width: 2 + width: 3 - doc: null - hi: 0x21 - lo: 3 + hi: 0x22 + lo: 4 name: frer structure: members: @@ -2536,11 +3460,11 @@ hwconf: width: 0x1f width: 0x1f name: t_eop_ptr - width: 0x22 - width: 0x22 + width: 0x23 + width: 0x23 - doc: null - hi: 0x64 - lo: 0x35 + hi: 0x77 + lo: 0x37 name: psfpInfo structure: members: @@ -2550,35 +3474,45 @@ hwconf: name: psfpEn width: 1 - doc: null - hi: 3 + hi: 4 lo: 1 name: filterId - width: 3 + width: 4 - doc: null - hi: 7 - lo: 4 + hi: 8 + lo: 5 name: gateId width: 4 - doc: null - hi: 8 - lo: 8 + hi: 9 + lo: 9 name: gateClosed width: 1 - doc: null - hi: 15 - lo: 9 - name: l2Bytes - width: 7 + hi: 0x11 + lo: 10 + name: msduHeaderBytes + width: 8 - doc: null - hi: 0x2f - lo: 0x10 + hi: 0x31 + lo: 0x12 name: maxMSDU width: 0x20 - name: t_psfp_info - width: 0x30 - width: 0x30 - name: t_to_eop_filter - width: 0x65 + - doc: null + hi: 0x3f + lo: 0x32 + name: maxSDU + width: 14 + - doc: null + hi: 0x40 + lo: 0x40 + name: blockingEn + width: 1 + name: t_psfp_info + width: 0x41 + width: 0x41 + name: t_to_eop_filter + width: 0x78 t_vid: name: t_vid width: 12 @@ -2661,15 +3595,15 @@ hwconf: debug_cnt_width: 8 debug_consts: false debug_level: 1 - debug_read_comb: true - debug_read_depth_w: 9 + debug_read_comb: false + debug_read_depth_w: 8 debug_read_width: 0x20 debug_write_depth_w: 8 - debug_write_width: 2 + debug_write_width: 1 default_patches: true default_yaml: pktprog/new/lib/default.yml defines: - CUSTOMER_NAME: JLSemi + CUSTOMER_NAME: Sailfish DECODE_HIGHER_PROTOCOL: 1 DECODE_HIGHER_PROTOCOL_W: 1 DESIGN_ID: saline_TSN_4x10G_1x1G @@ -2682,20 +3616,42 @@ hwconf: _BPDU: 1 _COLORING: 1 _COLORING_W: 1 + _CONF_ACL_PRE_LOOKUP_SPORT: 1 + _CONF_ACL_PRE_LOOKUP_SPORT_W: 1 _CONF_INGRESS_ACL: 1 _CONF_INGRESS_ACL_ACTION_DROP: 1 _CONF_INGRESS_ACL_ACTION_DROP_W: 1 + _CONF_INGRESS_ACL_ACTION_FORCE_COLOR: 1 + _CONF_INGRESS_ACL_ACTION_FORCE_COLOR_W: 1 + _CONF_INGRESS_ACL_ACTION_FORCE_MMP: 1 + _CONF_INGRESS_ACL_ACTION_FORCE_MMP_W: 1 _CONF_INGRESS_ACL_ACTION_FORCE_QUEUE: 1 _CONF_INGRESS_ACL_ACTION_FORCE_QUEUE_W: 1 + _CONF_INGRESS_ACL_ACTION_SEND2CPU: 1 + _CONF_INGRESS_ACL_ACTION_SEND2CPU_W: 1 + _CONF_INGRESS_ACL_ACTION_SEND2PORT: 1 + _CONF_INGRESS_ACL_ACTION_SEND2PORT_W: 1 _CONF_INGRESS_ACL_ACTION_STREAM_ID: 1 _CONF_INGRESS_ACL_ACTION_STREAM_ID_W: 1 + _CONF_INGRESS_ACL_ACTION_UPDATE_STAT_CNT: 1 + _CONF_INGRESS_ACL_ACTION_UPDATE_STAT_CNT_W: 1 + _CONF_INGRESS_ACL_PRE_LOOKUP_L2: + - 1 + _CONF_INGRESS_ACL_PRE_LOOKUP_L3: + - 1 + _CONF_INGRESS_ACL_PRE_LOOKUP_L4: + - 1 + _CONF_INGRESS_ACL_PRE_LOOKUP_SPORT: + - 1 + _CONF_INGRESS_ACL_PRE_LOOKUP_VLAN: + - 1 _CONF_INGRESS_ACL_W: 1 _DECODE_AVTP: 1 _DECODE_AVTP_W: 1 + _DEFAULT_PORT_ACL_ACTION: 1 + _DEFAULT_PORT_ACL_ACTION_W: 1 _DERIVED_EOP_FILTER: 1 _DERIVED_EOP_FILTER_W: 1 - _DERIVED_IGNORE_IP_CHECKSUM: 1 - _DERIVED_IGNORE_IP_CHECKSUM_W: 1 _DERIVED_IINFO: 1 _DERIVED_IINFO_W: 1 _DERIVED_INGRESS_PORT_MIB: 1 @@ -2708,10 +3664,16 @@ hwconf: _DERIVED_L2_TABLE_W: 1 _DERIVED_LEARNING: 1 _DERIVED_LEARNING_W: 1 - _DERIVED_MC_HANDLING: 1 - _DERIVED_MC_HANDLING_W: 1 + _DERIVED_OINFO: 1 + _DERIVED_OINFO_W: 1 + _DERIVED_PTP_2_STEP: 1 + _DERIVED_PTP_2_STEP_W: 1 + _DERIVED_PTP_IF: 1 + _DERIVED_PTP_IF_W: 1 _DERIVED_SA_LOOKUP: 1 _DERIVED_SA_LOOKUP_W: 1 + _DERIVED_STATISTICS_ACL: 1 + _DERIVED_STATISTICS_ACL_W: 1 _DERIVED_TOS_TO_QUEUE: 1 _DERIVED_TOS_TO_QUEUE_W: 1 _DERIVED_UPDATE_IP: 1 @@ -2732,6 +3694,8 @@ hwconf: _FRER_W: 1 _FROM_CPU_TAG: 1 _FROM_CPU_TAG_W: 1 + _HAS_MEM_TABLE: 1 + _HAS_MEM_TABLE_W: 1 _HAS_SPECIAL_DECODE: 1 _HAS_SPECIAL_DECODE_W: 1 _HW_CONF_APB: 1 @@ -2744,14 +3708,14 @@ hwconf: _HW_MBF_W: 1 _HW_PKT_LENGTH: 1 _HW_PKT_LENGTH_W: 1 + _HW_RX_PTP_IF: 1 + _HW_RX_PTP_IF_W: 1 _HW_SOURCE_MBSC: 1 _HW_SOURCE_MBSC_W: 1 _IGNORE_CELL_SIZE_CHECK: 1 _IGNORE_CELL_SIZE_CHECK_W: 1 _INGRESS_ADMISSION_CONTROL: 1 _INGRESS_ADMISSION_CONTROL_W: 1 - _INGRESS_RATE_CONTROL: 1 - _INGRESS_RATE_CONTROL_W: 1 _L2EGRESSVLAN: 1 _L2EGRESSVLAN_W: 1 _L2INGRESSVLAN: 1 @@ -2760,24 +3724,33 @@ hwconf: _L2__W: 1 _L3_: 1 _L3__W: 1 + _L4_: 1 + _L4__W: 1 _LEARNING_SA_LOOKUP: 1 _LEARNING_SA_LOOKUP_W: 1 _LEGACY_INTERFACES: 0 _LEGACY_INTERFACES_W: 0 + _MEM_TABLE_NAME: doc/memory_function.csv _PORT_BASED_LEARNING: 1 _PORT_BASED_LEARNING_W: 1 _PSFP: 1 _PSFP_W: 1 + _PTP: 1 + _PTP_W: 1 _SLICES_IDENTICAL: 1 _SLICES_IDENTICAL_W: 1 _SLICE_MMP: true _SLICE_MMP_W: 1 _SPANNING_TREE: 1 _SPANNING_TREE_W: 1 + _STATISTICS_ACL: 1 + _STATISTICS_ACL_W: 1 _STATISTICS_FWD: 1 _STATISTICS_FWD_W: 1 _STATISTICS_SA_CHANGE: 1 _STATISTICS_SA_CHANGE_W: 1 + _STATISTICS_SMON: 1 + _STATISTICS_SMON_W: 1 _SVLAN_IGNORE: 1 _SVLAN_IGNORE_W: 1 _TO_CPU_TAG: 1 @@ -2805,6 +3778,66 @@ hwconf: c_AH802_SERVICE_TAG_ID: 0xe788 c_AH_PROTO: 0x33 c_ARP_ID: 0x806 + c_B3_A0_LIMIT: 0x15d + c_B3_A0_LIMIT_W: 9 + c_B3_A0_STYLE: 2 + c_B3_A0_STYLE_W: 1 + c_B3_A0_WIDTH: 9 + c_B3_A0_WIDTH_W: 4 + c_B3_A1_LIMIT: 0x29 + c_B3_A1_LIMIT_W: 6 + c_B3_A1_STYLE: 1 + c_B3_A1_STYLE_W: 1 + c_B3_A1_WIDTH: 6 + c_B3_A1_WIDTH_W: 3 + c_B3_A2_LIMIT: 0xa6 + c_B3_A2_LIMIT_W: 8 + c_B3_A2_STYLE: 1 + c_B3_A2_STYLE_W: 1 + c_B3_A2_WIDTH: 8 + c_B3_A2_WIDTH_W: 3 + c_B3_A3_LIMIT: 0xae + c_B3_A3_LIMIT_W: 8 + c_B3_A3_STYLE: 0 + c_B3_A3_STYLE_W: 0 + c_B3_A3_WIDTH: 8 + c_B3_A3_WIDTH_W: 3 + c_B3_A4_LIMIT: 0x2be + c_B3_A4_LIMIT_W: 10 + c_B3_A4_STYLE: 0 + c_B3_A4_STYLE_W: 0 + c_B3_A4_WIDTH: 10 + c_B3_A4_WIDTH_W: 4 + c_B3_B0_LIMIT: 0x27 + c_B3_B0_LIMIT_W: 6 + c_B3_B0_STYLE: 0 + c_B3_B0_STYLE_W: 0 + c_B3_B0_WIDTH: 6 + c_B3_B0_WIDTH_W: 3 + c_B3_B1_LIMIT: 0x287 + c_B3_B1_LIMIT_W: 10 + c_B3_B1_STYLE: 1 + c_B3_B1_STYLE_W: 1 + c_B3_B1_WIDTH: 10 + c_B3_B1_WIDTH_W: 4 + c_B3_B2_LIMIT: 0x51 + c_B3_B2_LIMIT_W: 7 + c_B3_B2_STYLE: 2 + c_B3_B2_STYLE_W: 1 + c_B3_B2_WIDTH: 7 + c_B3_B2_WIDTH_W: 3 + c_B3_B3_LIMIT: 0x149 + c_B3_B3_LIMIT_W: 9 + c_B3_B3_STYLE: 0 + c_B3_B3_STYLE_W: 0 + c_B3_B3_WIDTH: 9 + c_B3_B3_WIDTH_W: 4 + c_B3_B4_LIMIT: 0x189 + c_B3_B4_LIMIT_W: 9 + c_B3_B4_STYLE: 2 + c_B3_B4_STYLE_W: 1 + c_B3_B4_WIDTH: 9 + c_B3_B4_WIDTH_W: 4 c_BGP_PORT: 0xb3 c_BOOTP_UDP_PORT1: 0x43 c_BOOTP_UDP_PORT2: 0x44 @@ -2815,15 +3848,16 @@ hwconf: c_BUCKET_W: 2 c_CAPWAP_UDP_DP1: 0x147e c_CAPWAP_UDP_DP2: 0x147f - c_CARRY_PULL: 13 - c_CARRY_PULL_W: 4 - c_CARRY_WIDTH: 0x10 - c_CARRY_WIDTH_W: 4 + c_CARRY_PULL: 0x14 + c_CARRY_PULL_W: 5 + c_CARRY_WIDTH: 0x1b + c_CARRY_WIDTH_W: 5 c_CFM_ID: 0x289 c_COLOR: 3 - c_CONF_ACL_LARGE_REASON_CODE: 14 - c_CONF_ACL_SMALL_REASON_CODE: 6 - c_CONF_ACL_TCAM_REASON_CODE: 4 + c_CONF_ACL_LARGE_REASON_CODE: 0x2d + c_CONF_ACL_PORT_REASON_CODE: 4 + c_CONF_ACL_SMALL_REASON_CODE: 13 + c_CONF_ACL_TCAM_REASON_CODE: 9 c_CONF_ADDR_WIDTH: 0x10 c_CONF_ADDR_WIDTH_W: 4 c_CONF_DATA_WIDTH: 0x20 @@ -2831,22 +3865,24 @@ hwconf: c_CONF_INGRESS_ACL_DROPID: 0x24 c_CONF_INGRESS_ACL_MULTI_NR_OF_TABLES: 0 c_CONF_INGRESS_ACL_MULTI_NR_OF_TABLES_W: 0 - c_CONF_INGRESS_ACL_RULES_W: 1 - c_CONF_INGRESS_ACL_SEARCH_SIZE: 0x40 - c_CONF_INGRESS_ACL_SEARCH_SIZE_W: 6 - c_CONF_INGRESS_ACL_TOTAL_ENTRIES: 0x4a - c_CONF_INGRESS_ACL_TOTAL_ENTRIES_W: 7 + c_CONF_INGRESS_ACL_RULES_W: 4 + c_CONF_INGRESS_ACL_SEARCH_SIZE: 0x100 + c_CONF_INGRESS_ACL_SEARCH_SIZE_W: 8 + c_CONF_INGRESS_ACL_STAT_CNT: 4 + c_CONF_INGRESS_ACL_STAT_CNT_W: 2 + c_CONF_INGRESS_ACL_TOTAL_ENTRIES: 0x124 + c_CONF_INGRESS_ACL_TOTAL_ENTRIES_W: 9 c_CPU_PHYPORT: 4 c_CPU_PHYPORT_W: 2 c_CPU_PORT: 4 c_CPU_PORT_W: 2 - c_CPU_REASON_BYTES: 1 - c_CPU_REASON_RANGE: 4 - c_CPU_REASON_RANGE_W: 2 - c_CPU_TAG_BITS: 0x10 - c_CPU_TAG_BITS_W: 4 - c_CPU_TAG_BYTES: 2 - c_CPU_TAG_BYTES_W: 1 + c_CPU_REASON_BYTES: 2 + c_CPU_REASON_RANGE: 0x10 + c_CPU_REASON_RANGE_W: 4 + c_CPU_TAG_BITS: 0x68 + c_CPU_TAG_BITS_W: 7 + c_CPU_TAG_BYTES: 13 + c_CPU_TAG_BYTES_W: 4 c_CPU_TAG_QUEUE_BYTE: 1 c_CPU_TAG_QUEUE_BYTE_W: 1 c_CUSTOMER_VLAN_ID: 0x81 @@ -2869,12 +3905,24 @@ hwconf: c_EGRESS_VLAN_TRANSLATION_PAR_TABLES_W: 1 c_EGRESS_VLAN_TRANSLATION_SMALL_TABLE: 0x10 c_EGRESS_VLAN_TRANSLATION_SMALL_TABLE_W: 4 - c_EGRESS_VLAN_TRANSLATION_TCAM_ENTRIES: 3 + c_EGRESS_VLAN_TRANSLATION_TCAM_ENTRIES: 4 c_EGRESS_VLAN_TRANSLATION_TCAM_ENTRIES_W: 2 c_EGR_PORT_DISABLED: 0x7e c_EIGRP_PROTO: 0x58 c_EMPTY_DEST_DROPID: 0x7f c_ESP_PROTO: 0x32 + c_EVAL_INIT_PORT_0: 0 + c_EVAL_INIT_PORT_0_W: 0 + c_EVAL_SAMPLE_DIV: 1 + c_EVAL_SAMPLE_DIV_INIT: 0 + c_EVAL_SAMPLE_DIV_INIT_W: 0 + c_EVAL_SAMPLE_DIV_W: 1 + c_EVAL_SAMPLE_DIV_WIDTH: 3 + c_EVAL_SAMPLE_DIV_WIDTH_W: 2 + c_EVAL_SAMPLE_PORTS: 1 + c_EVAL_SAMPLE_PORTS_W: 1 + c_EVAL_SAMPLE_PORT_0: 4 + c_EVAL_SAMPLE_PORT_0_W: 2 c_FCOE_ID: 0x689 c_FOLD_CNT: 9 c_FOLD_CNT_W: 4 @@ -2883,6 +3931,12 @@ hwconf: c_FRER_MAX_HISTORY_LENGTH: 4 c_FRER_MAX_HISTORY_LENGTH_W: 3 c_FROM_CPU_ID: 0x9899 + c_FROM_CPU_TIMESTAMP_CMD_BYTE: 2 + c_FROM_CPU_TIMESTAMP_CMD_BYTE_W: 1 + c_FROM_CPU_TIMESTAMP_END: 12 + c_FROM_CPU_TIMESTAMP_END_W: 4 + c_FROM_CPU_TIMESTAMP_START: 3 + c_FROM_CPU_TIMESTAMP_START_W: 2 c_FROM_NORMAL_PKT_PROC: 0 c_FULL_PORT: 5 c_FULL_PORT_W: 3 @@ -2900,6 +3954,14 @@ hwconf: c_HASHKEY_W: 6 c_HIT_INDEX_W: 8 c_HOPOPT_PROTO: 0 + c_I2E_PORT_AUX: 5 + c_I2E_PORT_AUX_W: 3 + c_I2E_SRCPORT: 6 + c_I2E_SRCPORT_W: 3 + c_I2E_VLAN_AUX: 3 + c_I2E_VLAN_AUX_W: 2 + c_I2E_VLAN_COUNT: 3 + c_I2E_VLAN_COUNT_W: 2 c_ICMP_PROTO: 1 c_IEEE_1588_DA_MAC1: 0x11b19000000 c_IEEE_1588_DA_MAC2: 0x180c200000e @@ -2919,10 +3981,9 @@ hwconf: c_INGRESS_GATE_LIST_DEPTH: 0x10 c_INGRESS_GATE_LIST_DEPTH_W: 4 c_INGRESS_MBSC_DROPID: 3 - c_INGRESS_MMP_DEPTH: 4 - c_INGRESS_MMP_DEPTH_W: 2 + c_INGRESS_MMP_DEPTH: 8 + c_INGRESS_MMP_DEPTH_W: 3 c_INGRESS_PORT_RATE_LIMITER_DROPID: 2 - c_INGRESS_RATE_CONTROL_DROPID: 5 c_IPV4_ID: 8 c_IPV4_L3MC_ADDR_ID_24: 0x5e0001 c_IPV6_ID: 0xdd86 @@ -2943,8 +4004,8 @@ hwconf: c_ISIS_ID: 0x7088 c_KEY_SIZE: 0x31 c_KEY_SIZE_W: 6 - c_L2MCADDR: 8 - c_L2MCADDR_W: 3 + c_L2MCADDR: 0x20 + c_L2MCADDR_W: 5 c_L2TABLE_BUCKETS: 4 c_L2TABLE_BUCKETS_W: 2 c_L2TABLE_HASHKEY: 0x100 @@ -2990,27 +4051,30 @@ hwconf: c_MPLS_UC_ID: 0x4788 c_MULTICAST_BIT: 0x28 c_NON_VLAN_MEMBER_DROPID: 10 - c_NR_OF_CPU_REASONS: 0x4e - c_NR_OF_CPU_REASONS_BITS: 7 - c_NR_OF_CPU_REASONS_W: 8 + c_NR_OF_CPU_REASONS: 0x12d + c_NR_OF_CPU_REASONS_BITS: 9 + c_NR_OF_CPU_REASONS_W: 0x10 c_NR_OF_CUSTOM_HEADERS_SUPPORTED: 2 c_NR_OF_CUSTOM_HEADERS_SUPPORTED_W: 1 c_NR_OF_INTERNAL_PORTS: 0 c_NR_OF_INTERNAL_PORTS_W: 0 c_NR_OF_MPLS: 4 c_NR_OF_MPLS_W: 3 + c_NR_OF_SMON_SET: 1 + c_NR_OF_SMON_SET_W: 1 c_NR_OF_TOTAL_CONF_ACL: 1 c_NR_OF_TOTAL_CONF_ACL_W: 1 c_NR_OF_TOTAL_TAGS_SUPPORTED_W: 1 c_NR_OF_TOTAL_VOP: 3 c_NR_OF_TOTAL_VOP_W: 2 - c_OBS_LEVEL: 1 + c_OBS_LEVEL: 0 c_OSPF_PROTO: 0x59 c_PHYPORT: 5 c_PHYPORT_W: 3 c_PKT_LENGTH_W: 14 c_PORT_ACL_ACTION: 0 c_PORT_ACL_ACTION_W: 0 + c_PORT_DEFAULT_ACL_DROPID: 0x3d c_PPPOED_ID: 0x6388 c_PPPOE_ID: 0x6488 c_PPPOE_IPV4_ID: 0x2100 @@ -3020,8 +4084,8 @@ hwconf: c_PRIO: 8 c_PRIO_W: 3 c_PTP_ID: 0xf788 - c_PortAndQueue_DEPTH: 0x20 - c_PortAndQueue_DEPTH_W: 5 + c_PortAndQueue_DEPTH: 0x40 + c_PortAndQueue_DEPTH_W: 6 c_QUEUES: 8 c_QUEUES_W: 3 c_RARP_ID: 0x8035 @@ -3040,15 +4104,18 @@ hwconf: c_SLICE_MMP: 1 c_SLICE_MMP_W: 1 c_SLICE_W: 1 + c_SMON_MAP_ENTRIES: 0x5000 c_SNAP_802_1_KEY: 0xf8000003aaaa c_SNAP_LLC_KEY: 0x3aaaa c_SPANNING_TREE_BLOCKING_DROPID: 9 c_SPANNING_TREE_LEARNING_DROPID: 8 c_SPANNING_TREE_LISTEN_DROPID: 7 c_SRCPORT: 5 + c_SRCPORT_PRE_LOOKUP_BITS: 2 + c_SRCPORT_PRE_LOOKUP_BITS_W: 1 c_SRCPORT_W: 3 - c_STREAM_FILTER_ENTRIES: 8 - c_STREAM_FILTER_ENTRIES_W: 3 + c_STREAM_FILTER_ENTRIES: 0x10 + c_STREAM_FILTER_ENTRIES_W: 4 c_STREAM_HANDLE: 0x20 c_STREAM_HANDLE_W: 5 c_TAG_PM_BITS: 8 @@ -3057,17 +4124,19 @@ hwconf: c_TAG_PM_BYTES_W: 1 c_TCP_LARGER_THAN_1024_PACKETTYPE_ID: 2 c_TCP_PROTO: 6 + c_TIMESTAMP_SIZE: 10 + c_TIMESTAMP_SIZE_W: 4 c_TOP_MMP: 0 c_TOP_MMP_W: 0 c_TOTAL_NEW_VLAN_BITS: 0x60 c_TOTAL_NEW_VLAN_BITS_W: 7 c_TO_CPU_ID: 0x9999 - c_TO_CPU_TAG_BYTES: 6 + c_TO_CPU_TAG_BYTES: 0x10 c_TRILL_ID: 0xf322 c_UDP_LARGER_THAN_1024_PACKETTYPE_ID: 1 c_UDP_PROTO: 0x11 c_UNIQUE_CPU_MAC: 3 - c_UNIT_WIDTH: 0x1e + c_UNIT_WIDTH: 0x17 c_UNIT_WIDTH_W: 5 c_UNKNOWN_EGRESS_DROPID: 2 c_UNKNOWN_INGRESS_DROPID: 0 @@ -3076,14 +4145,16 @@ hwconf: c_VLANS_EGRESS_W: 3 c_VLANS_INGRESS: 2 c_VLANS_INGRESS_W: 2 - c_VLAN_SUPPORTED: 0x20 - c_VLAN_SUPPORTED_MINUS_ONE: 0x1f - c_VLAN_SUPPORTED_MINUS_ONE_W: 5 - c_VLAN_SUPPORTED_W: 6 - c_cellBits: 0x200 - c_cellBits_W: 9 - c_cellBytes: 0x40 - c_cellBytes_W: 6 + c_VLAN_SUPPORTED: 0x1000 + c_VLAN_SUPPORTED_MINUS_ONE: 0xfff + c_VLAN_SUPPORTED_MINUS_ONE_W: 12 + c_VLAN_SUPPORTED_W: 13 + c_WRED_DEPTH: 1 + c_WRED_DEPTH_W: 1 + c_cellBits: 0x400 + c_cellBits_W: 10 + c_cellBytes: 0x80 + c_cellBytes_W: 7 c_default_PACKETTYPE_ID: 0x3f c_dropRef_Size: 0x20 c_dropRef_Size_W: 5 @@ -3097,68 +4168,123 @@ hwconf: c_iHeader_VLAN_W: 5 c_iHeader_vType: 4 c_iHeader_vType_W: 2 - c_use_mux_512: 1 - c_use_mux_512_W: 1 + c_use_mux_1024: 1 + c_use_mux_1024_W: 1 conf_CONF_INGRESS_Acl_actions: 0: + - _ACL_ACTION_SEND2CPU - _ACL_ACTION_DROP + - _ACL_ACTION_SEND2PORT - _ACL_ACTION_STREAM_ID + - _ACL_ACTION_UPDATE_STAT_CNT + - _ACL_ACTION_FORCE_COLOR + - _ACL_ACTION_FORCE_MMP - _ACL_ACTION_FORCE_QUEUE conf_CONF_INGRESS_Acl_fields: 0: - - id: 2 + - id: 15 name: Source Port size: 3 - - id: 1 + - id: 14 + name: Ethernet Type + size: 0x10 + - id: 13 + name: L4 Protocol + size: 8 + - id: 12 + name: L4 Destination Port + size: 0x10 + - id: 11 + name: L4 Source Port + size: 0x10 + - id: 10 + name: TOS + size: 8 + - id: 9 + name: IPv6 DA + size: 0x80 + - id: 8 + name: IPv6 SA + size: 0x80 + - id: 7 + name: IPv4 DA + size: 0x20 + - id: 6 + name: IPv4 SA + size: 0x20 + - id: 5 + name: Outer PCP + size: 3 + - id: 4 + name: Has VLANs + size: 1 + - id: 3 name: Outer VID size: 12 - - id: 0 + - id: 2 + name: MAC SA + size: 0x30 + - id: 1 name: MAC DA size: 0x30 + - id: 0 + name: Rule Pointer + size: 4 conf_CONF_INGRESS_Acl_sizes: 0: + - 4 - 0x30 - 12 + - 1 - 3 + - 0x20 + - 0x80 + - 8 + - 0x10 conf_CONF_INGRESS_large_table: 0: - - 0x40 + - 0x100 conf_CONF_INGRESS_nr_fields: 0: - - 3 + - 0x10 conf_CONF_INGRESS_par_buckets: 0: - 2 conf_CONF_INGRESS_pre_lookup: 0: - - 0 + - 1 conf_CONF_INGRESS_pre_lookup_fields: - 0: [] + 0: + - SPORT + - VLAN + - L2 + - L3 + - L4 conf_CONF_INGRESS_rules: 0: - - 2 + - 10 conf_CONF_INGRESS_rules_per_entry: 0: - - 3 + - 10 conf_CONF_INGRESS_search_bits: 0: - - 0x40 + - 0x100 conf_CONF_INGRESS_small_table: 0: - - 8 + - 0x20 conf_CONF_INGRESS_tcam_entries: 0: - - 2 + - 4 debug_level: 1 debug_level_W: 1 - debug_read_comb: true - debug_read_comb_W: 1 - debug_read_depth_w: 9 - debug_read_depth_w_W: 4 + debug_read_comb: false + debug_read_comb_W: 0 + debug_read_depth_w: 8 + debug_read_depth_w_W: 3 debug_read_width: 0x20 debug_read_width_W: 5 ppp_latencies: - eopFilter: 5 + eopFilter: 6 ram_to_reg: - r_l2McTable - r_prio2Queue @@ -3187,7 +4313,7 @@ hwconf: design_name: Saline TSN 4x10G + 1x1G dest_queue_vector: false dft: 0 - diff_interface: only_port + diff_interface: port_and_queue disable_mactop_counters: false dma_config: null docInclude: @@ -3207,7 +4333,7 @@ hwconf: doc: Egress processing exceeds cell size. doc_group: Statistics id: 0x44 - regName: Egress Cell Size Drop + regName: Egress Packet Decoder Cell Size Drop c_EGRESS_FUNCTION_CTRL_DROPID: doc: Number of packets dropped due to egress functional control. doc_group: Statistics @@ -3267,11 +4393,6 @@ hwconf: doc_group: Statistics id: 0x16 regName: L3 Multicast Drop - c_MIN_MAX_PKT_SIZE_DROPID: - doc: \ifdef{\texMaxPktSizeReg}{Number of packets dropped due to packets sizes are above the size of the ports maximum setting described in \register{Maximum And Minimum Packet Size}.}{The number of packets dropped due to larger than \texCMaxPktSize or smalled that \texCMinPktSize and being sent to the crypto block.} - doc_group: Statistics - id: 0x42 - regName: Minimum and Maximum Packet Size Drops c_MTU_EXCEEDED_DROPID: attr: - drop_counter_check @@ -3833,12 +4954,128 @@ hwconf: t_L4_second: name: t_L4_second width: 0x60 + t_acl_counter: + members: + - doc: null + hi: 0 + lo: 0 + name: valid + width: 1 + - doc: null + hi: 7 + lo: 1 + name: data + structure: + members: + - doc: null + hi: 3 + lo: 0 + name: pkt_if + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: pktId + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: fullPort + width: 3 + name: t_pktId + width: 3 + width: 3 + - doc: null + hi: 3 + lo: 3 + name: update + width: 1 + name: t_pktInfo + width: 4 + width: 4 + - doc: null + hi: 6 + lo: 4 + name: index + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: updateCounter0 + width: 1 + - doc: null + hi: 2 + lo: 1 + name: counter0 + width: 2 + name: t_confIngressAclStat + width: 3 + width: 3 + name: t_acl_counter_data + width: 7 + width: 7 + name: t_acl_counter + width: 8 + t_acl_counter_data: + members: + - doc: null + hi: 3 + lo: 0 + name: pkt_if + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: pktId + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: fullPort + width: 3 + name: t_pktId + width: 3 + width: 3 + - doc: null + hi: 3 + lo: 3 + name: update + width: 1 + name: t_pktInfo + width: 4 + width: 4 + - doc: null + hi: 6 + lo: 4 + name: index + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: updateCounter0 + width: 1 + - doc: null + hi: 2 + lo: 1 + name: counter0 + width: 2 + name: t_confIngressAclStat + width: 3 + width: 3 + name: t_acl_counter_data + width: 7 t_cell_bits: name: t_cell_bits - width: 10 + width: 11 t_cell_bytes: name: t_cell_bytes - width: 9 + width: 10 t_color: name: t_color width: 2 @@ -3866,6 +5103,20 @@ hwconf: width: 8 name: t_colorRemap width: 0x13 + t_confIngressAclStat: + members: + - doc: null + hi: 0 + lo: 0 + name: updateCounter0 + width: 1 + - doc: null + hi: 2 + lo: 1 + name: counter0 + width: 2 + name: t_confIngressAclStat + width: 3 t_dei: name: t_dei width: 1 @@ -4081,7 +5332,7 @@ hwconf: t_egressInInfo: members: - doc: null - hi: 0x18 + hi: 0x1a lo: 0 name: trans structure: @@ -4102,43 +5353,62 @@ hwconf: name: pktLen width: 14 - doc: null - hi: 0x11 + hi: 0x12 lo: 0x10 name: dstQueue - width: 2 + width: 3 - doc: null - hi: 0x18 - lo: 0x12 + hi: 0x1a + lo: 0x13 name: srcBytes - width: 7 + width: 8 name: t_egressTrans - width: 0x19 - width: 0x19 + width: 0x1b + width: 0x1b - doc: null - hi: 0x1b - lo: 0x19 + hi: 0x1d + lo: 0x1b name: dstPortId width: 3 - doc: null - hi: 0x1d - lo: 0x1c + hi: 0x1f + lo: 0x1e name: color width: 2 + - doc: null + hi: 0x70 + lo: 0x20 + name: eopTs + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: valid_ts + width: 1 + - doc: null + hi: 0x50 + lo: 1 + name: ts + width: 0x50 + name: t_eopTs + width: 0x51 + width: 0x51 name: t_egressInInfo - width: 0x1e + width: 0x71 t_egressOutCell: name: t_egressOutCell - width: 0x230 + width: 0x478 t_egressOutCell_minus256: name: t_egressOutCell_minus256 - width: 0x130 + width: 0x378 t_egressOutCell_minus96: name: t_egressOutCell_minus96 - width: 0x1d0 + width: 0x418 t_egressOutInfo: members: - doc: null - hi: 0x18 + hi: 0x1a lo: 0 name: trans structure: @@ -4159,20 +5429,43 @@ hwconf: name: pktLen width: 14 - doc: null - hi: 0x11 + hi: 0x12 lo: 0x10 name: dstQueue - width: 2 + width: 3 - doc: null - hi: 0x18 - lo: 0x12 + hi: 0x1a + lo: 0x13 name: srcBytes - width: 7 + width: 8 name: t_egressTrans - width: 0x19 - width: 0x19 + width: 0x1b + width: 0x1b + - doc: null + hi: 0x1b + lo: 0x1b + name: ptp_to_mac + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: ptp_ctrl + structure: + members: + - doc: Take a timestamp in the TX MAC and send it to software. The packet is not modified. + hi: 0 + lo: 0 + name: upd_ts + width: 1 + name: t_ptp_ctrl + width: 1 + width: 1 + name: t_ptp_to_mac + width: 1 + width: 1 name: t_egressOutInfo - width: 0x19 + width: 0x1c t_egressPortMem: members: - doc: null @@ -4197,20 +5490,20 @@ hwconf: - doc: null hi: 5 lo: 4 - name: typeSel + name: vidSel structure: enum: - cVlan: 0 - none: 3 - sVlan: 1 - user: 2 - name: e_vType + useNew: 1 + useOther: 2 + usePkt: 0 + usePrev: 3 + name: e_vlanSel width: 2 width: 2 - doc: null hi: 7 lo: 6 - name: vidSel + name: cfiDeiSel structure: enum: useNew: 1 @@ -4223,7 +5516,7 @@ hwconf: - doc: null hi: 9 lo: 8 - name: cfiDeiSel + name: pcpSel structure: enum: useNew: 1 @@ -4236,14 +5529,14 @@ hwconf: - doc: null hi: 11 lo: 10 - name: pcpSel + name: typeSel structure: enum: - useNew: 1 - useOther: 2 - usePkt: 0 - usePrev: 3 - name: e_vlanSel + cVlan: 0 + none: 3 + sVlan: 1 + user: 2 + name: e_vType width: 2 width: 2 - doc: null @@ -4275,7 +5568,7 @@ hwconf: width: 0x1e t_egressResultSize: name: t_egressResultSize - width: 7 + width: 8 t_egressTag: members: - doc: null @@ -4284,37 +5577,52 @@ hwconf: name: addToCpuTag width: 1 - doc: null - hi: 0x30 + hi: 0x80 lo: 1 name: toCpuTag structure: members: - - doc: null + - doc: Ethernet Type of the To CPU tag. hi: 15 lo: 0 name: type width: 0x10 - - doc: null + - doc: Source port number. hi: 0x17 lo: 0x10 name: srcPort width: 8 - - doc: null - hi: 0x1f + - doc: Reason code indicating why the packet was sent to the CPU. See table \ref{tab:toCpuReasonTable}. + hi: 0x27 lo: 0x18 name: reason - width: 8 - - doc: null - hi: 0x2f - lo: 0x20 - name: zero width: 0x10 + - doc: If set, the packet is a PTP packet. + hi: 0x28 + lo: 0x28 + name: ptp + width: 1 + - doc: If set, the timestamp field is valid. + hi: 0x29 + lo: 0x29 + name: validTs + width: 1 + - doc: Reserved. Set to zero. + hi: 0x2f + lo: 0x2a + name: rsv + width: 6 + - doc: Timestamp associated with the packet. The lowest numbered byte contains the most significant byte of the timestamp value. + hi: 0x7f + lo: 0x30 + name: timestamp + width: 0x50 name: t_toCpuTag - width: 0x30 - width: 0x30 + width: 0x80 + width: 0x80 - doc: null - hi: 0x60 - lo: 0x31 + hi: 0xb0 + lo: 0x81 name: rtag structure: members: @@ -4337,7 +5645,7 @@ hwconf: width: 0x30 width: 0x30 name: t_egressTag - width: 0x61 + width: 0xb1 t_egressTrans: members: - doc: null @@ -4356,17 +5664,17 @@ hwconf: name: pktLen width: 14 - doc: null - hi: 0x11 + hi: 0x12 lo: 0x10 name: dstQueue - width: 2 + width: 3 - doc: null - hi: 0x18 - lo: 0x12 + hi: 0x1a + lo: 0x13 name: srcBytes - width: 7 + width: 8 name: t_egressTrans - width: 0x19 + width: 0x1b t_egressVlanEthernetTypes: members: - doc: null @@ -4568,6 +5876,20 @@ hwconf: width: 1 name: t_emptyBlock width: 1 + t_eopTs: + members: + - doc: null + hi: 0 + lo: 0 + name: valid_ts + width: 1 + - doc: null + hi: 0x50 + lo: 1 + name: ts + width: 0x50 + name: t_eopTs + width: 0x51 t_eop_ptr: members: - doc: null @@ -4576,13 +5898,13 @@ hwconf: name: ingressValid width: 1 - doc: null - hi: 2 + hi: 3 lo: 1 name: ingressPtr - width: 2 + width: 3 - doc: null - hi: 0x21 - lo: 3 + hi: 0x22 + lo: 4 name: frer structure: members: @@ -4625,7 +5947,7 @@ hwconf: width: 0x1f width: 0x1f name: t_eop_ptr - width: 0x22 + width: 0x23 t_frer_ptr: members: - doc: null @@ -4667,28 +5989,47 @@ hwconf: width: 0x1f t_fromCpuTag: members: - - doc: null + - doc: Ethernet Type of the From CPU tag. hi: 15 lo: 0 name: ethType width: 0x10 - - doc: null + - doc: Destination port mask. Each set bit selects one destination port. hi: 0x17 lo: 0x10 name: dstPortmask width: 8 - - doc: null - hi: 0x19 + - doc: Destination queue for the packet. + hi: 0x1a lo: 0x18 name: queue - width: 2 - - doc: null + width: 3 + - doc: Reserved. Set to zero. hi: 0x1f - lo: 0x1a + lo: 0x1b name: pad_queue - width: 6 + width: 5 + - doc: PTP transmit control. + hi: 0x20 + lo: 0x20 + name: ptp_ctrl + structure: + members: + - doc: Take a timestamp in the TX MAC and send it to software. The packet is not modified. + hi: 0 + lo: 0 + name: upd_ts + width: 1 + name: t_ptp_ctrl + width: 1 + width: 1 + - doc: Reserved. Set to zero. + hi: 0x27 + lo: 0x21 + name: pad_ctrl + width: 7 name: t_fromCpuTag - width: 0x20 + width: 0x28 t_full_port: name: t_full_port width: 3 @@ -4698,7 +6039,7 @@ hwconf: t_i2eHeader: members: - doc: null - hi: 0x5f + hi: 0x63 lo: 0 name: l2Hdr structure: @@ -4879,30 +6220,41 @@ hwconf: width: 0x15 width: 0x15 - doc: null - hi: 0x5b + hi: 0x5d lo: 0x55 name: toCpuReason - width: 7 + width: 9 - doc: null - hi: 0x5c - lo: 0x5c + hi: 0x5e + lo: 0x5e + name: isPTP + width: 1 + - doc: null + hi: 0x5f + lo: 0x5f name: delFromCpuTag width: 1 - doc: null - hi: 0x5d - lo: 0x5d + hi: 0x60 + lo: 0x60 name: mmpValid width: 1 - doc: null - hi: 0x5f - lo: 0x5e + hi: 0x63 + lo: 0x61 name: mmpPtr - width: 2 + width: 3 name: t_iHeaderL2 - width: 0x60 - width: 0x60 + width: 0x64 + width: 0x64 name: t_i2eHeader - width: 0x60 + width: 0x64 + t_i2eNrOfVlans: + name: t_i2eNrOfVlans + width: 2 + t_i2ePort: + name: t_i2ePort + width: 3 t_iHeaderL2: members: - doc: null @@ -5081,82 +6433,32 @@ hwconf: width: 0x15 width: 0x15 - doc: null - hi: 0x5b + hi: 0x5d lo: 0x55 name: toCpuReason - width: 7 + width: 9 - doc: null - hi: 0x5c - lo: 0x5c + hi: 0x5e + lo: 0x5e + name: isPTP + width: 1 + - doc: null + hi: 0x5f + lo: 0x5f name: delFromCpuTag width: 1 - doc: null - hi: 0x5d - lo: 0x5d + hi: 0x60 + lo: 0x60 name: mmpValid width: 1 - doc: null - hi: 0x5f - lo: 0x5e + hi: 0x63 + lo: 0x61 name: mmpPtr - width: 2 + width: 3 name: t_iHeaderL2 - width: 0x60 - t_iRateCtrlAns: - members: - - doc: null - hi: 0x13 - lo: 0 - name: data - width: 0x14 - name: t_iRateCtrlAns - width: 0x14 - t_iRateCtrlMask: - name: t_iRateCtrlMask - width: 0x14 - t_iRateCtrlReq: - members: - - doc: null - hi: 0 - lo: 0 - name: valid - width: 1 - - doc: null - hi: 14 - lo: 1 - name: data - structure: - members: - - doc: null - hi: 0 - lo: 0 - name: isHeader - width: 1 - - doc: null - hi: 1 - lo: 1 - name: enable - width: 1 - - doc: null - hi: 8 - lo: 2 - name: srcBytes - width: 7 - - doc: null - hi: 11 - lo: 9 - name: srcSlicePort - width: 3 - - doc: null - hi: 13 - lo: 12 - name: srcQueue - width: 2 - name: t_toIrcInfo - width: 14 - width: 14 - name: t_iRateCtrlReq - width: 15 + width: 0x64 t_igrPortMib: members: - doc: null @@ -5267,22 +6569,19 @@ hwconf: width: 0x36 t_inCell: name: t_inCell - width: 0x200 + width: 0x400 t_inCell_minus256: name: t_inCell_minus256 - width: 0x100 + width: 0x300 t_inCell_minus320: name: t_inCell_minus320 - width: 0xc0 + width: 0x2c0 t_inCell_minus416: name: t_inCell_minus416 - width: 0x60 + width: 0x260 t_inCell_minus96: name: t_inCell_minus96 - width: 0x1a0 - t_inCell_plus64: - name: t_inCell_plus64 - width: 0x240 + width: 0x3a0 t_ingressGateCtrl: members: - doc: null @@ -5299,7 +6598,7 @@ hwconf: width: 5 t_ingressResultSize: name: t_ingressResultSize - width: 7 + width: 8 t_ingressVlans: name: t_ingressVlans width: 2 @@ -5368,27 +6667,27 @@ hwconf: name: valid width: 1 - doc: null - hi: 12 + hi: 13 lo: 6 name: valid_bytes - width: 7 - - doc: null - hi: 13 - lo: 13 - name: is_bc - width: 1 + width: 8 - doc: null hi: 14 lo: 14 - name: is_mc + name: is_bc width: 1 - doc: null hi: 15 lo: 15 + name: is_mc + width: 1 + - doc: null + hi: 0x10 + lo: 0x10 name: is_uc_fd width: 1 name: t_irl_update - width: 0x10 + width: 0x11 t_keySize: name: t_keySize width: 0x31 @@ -5661,7 +6960,7 @@ hwconf: name: isConnected width: 1 - doc: null - hi: 0x14 + hi: 0x15 lo: 1 name: data structure: @@ -5672,45 +6971,45 @@ hwconf: name: portMask width: 5 - doc: null - hi: 11 + hi: 12 lo: 5 name: srcBytes - width: 7 + width: 8 - doc: null - hi: 14 - lo: 12 + hi: 15 + lo: 13 name: srcPort width: 3 - - doc: null - hi: 15 - lo: 15 - name: isFloodingMc - width: 1 - doc: null hi: 0x10 lo: 0x10 - name: isFloodingUc + name: isFloodingMc width: 1 - doc: null hi: 0x11 lo: 0x11 - name: isL2Multicast + name: isFloodingUc width: 1 - doc: null hi: 0x12 lo: 0x12 - name: isL2Broadcast + name: isL2Multicast width: 1 - doc: null hi: 0x13 lo: 0x13 + name: isL2Broadcast + width: 1 + - doc: null + hi: 0x14 + lo: 0x14 name: isHeader width: 1 name: t_toMbscInfo - width: 0x14 - width: 0x14 + width: 0x15 + width: 0x15 name: t_mbscToken - width: 0x15 + width: 0x16 t_mmp: members: - doc: null @@ -5719,7 +7018,7 @@ hwconf: name: valid width: 1 - doc: null - hi: 0x65 + hi: 0x78 lo: 1 name: data structure: @@ -5749,23 +7048,23 @@ hwconf: name: isTail width: 1 - doc: null - hi: 11 + hi: 12 lo: 5 name: srcBytes - width: 7 + width: 8 - doc: null - hi: 0x10 - lo: 12 + hi: 0x11 + lo: 13 name: dropMask width: 5 - doc: null - hi: 0x12 - lo: 0x11 + hi: 0x13 + lo: 0x12 name: color width: 2 - doc: null - hi: 0x34 - lo: 0x13 + hi: 0x36 + lo: 0x14 name: eopPtr structure: members: @@ -5775,13 +7074,13 @@ hwconf: name: ingressValid width: 1 - doc: null - hi: 2 + hi: 3 lo: 1 name: ingressPtr - width: 2 + width: 3 - doc: null - hi: 0x21 - lo: 3 + hi: 0x22 + lo: 4 name: frer structure: members: @@ -5824,11 +7123,11 @@ hwconf: width: 0x1f width: 0x1f name: t_eop_ptr - width: 0x22 - width: 0x22 + width: 0x23 + width: 0x23 - doc: null - hi: 0x64 - lo: 0x35 + hi: 0x77 + lo: 0x37 name: psfpInfo structure: members: @@ -5838,38 +7137,48 @@ hwconf: name: psfpEn width: 1 - doc: null - hi: 3 + hi: 4 lo: 1 name: filterId - width: 3 + width: 4 - doc: null - hi: 7 - lo: 4 + hi: 8 + lo: 5 name: gateId width: 4 - doc: null - hi: 8 - lo: 8 + hi: 9 + lo: 9 name: gateClosed width: 1 - doc: null - hi: 15 - lo: 9 - name: l2Bytes - width: 7 + hi: 0x11 + lo: 10 + name: msduHeaderBytes + width: 8 - doc: null - hi: 0x2f - lo: 0x10 + hi: 0x31 + lo: 0x12 name: maxMSDU width: 0x20 + - doc: null + hi: 0x3f + lo: 0x32 + name: maxSDU + width: 14 + - doc: null + hi: 0x40 + lo: 0x40 + name: blockingEn + width: 1 name: t_psfp_info - width: 0x30 - width: 0x30 + width: 0x41 + width: 0x41 name: t_to_eop_filter - width: 0x65 - width: 0x65 + width: 0x78 + width: 0x78 name: t_mmp - width: 0x66 + width: 0x79 t_mmpColorRemap: members: - doc: null @@ -5962,62 +7271,67 @@ hwconf: name: Ether width: 0x60 - doc: null - hi: 0xff + hi: 0xaf lo: 0x60 + name: timestamp + width: 0x50 + - doc: null + hi: 0x14f + lo: 0xb0 name: L2Field width: 0xa0 - doc: null - hi: 0x10f - lo: 0x100 + hi: 0x15f + lo: 0x150 name: L3Type width: 0x10 - doc: null - hi: 0x13f - lo: 0x110 + hi: 0x18f + lo: 0x160 name: PPPoE width: 0x30 - doc: null - hi: 0x14f - lo: 0x140 + hi: 0x19f + lo: 0x190 name: PPP width: 0x10 - doc: null - hi: 0x28f - lo: 0x150 + hi: 0x2df + lo: 0x1a0 name: IP width: 0x140 - doc: null - hi: 0x30f - lo: 0x290 + hi: 0x35f + lo: 0x2e0 name: MPLS width: 0x80 - doc: null - hi: 0x34f - lo: 0x310 + hi: 0x39f + lo: 0x360 name: L4_first width: 0x40 - doc: null - hi: 0x3af - lo: 0x350 + hi: 0x3ff + lo: 0x3a0 name: L4_second width: 0x60 - doc: null - hi: 0x3cf - lo: 0x3b0 + hi: 0x41f + lo: 0x400 name: newMplsTag width: 0x20 - doc: null - hi: 0x3d7 - lo: 0x3d0 + hi: 0x427 + lo: 0x420 name: new_ttl width: 8 - doc: null - hi: 0x437 - lo: 0x3d8 + hi: 0x687 + lo: 0x428 name: payload - width: 0x60 + width: 0x260 name: t_pktField - width: 0x438 + width: 0x688 t_pktFlag: members: - doc: null @@ -6124,6 +7438,9 @@ hwconf: width: 1 name: t_pktInfo width: 4 + t_pktSize: + name: t_pktSize + width: 14 t_port: name: t_port width: 3 @@ -6159,35 +7476,72 @@ hwconf: name: psfpEn width: 1 - doc: null - hi: 3 + hi: 4 lo: 1 name: filterId - width: 3 + width: 4 - doc: null - hi: 7 - lo: 4 + hi: 8 + lo: 5 name: gateId width: 4 - doc: null - hi: 8 - lo: 8 + hi: 9 + lo: 9 name: gateClosed width: 1 - doc: null - hi: 15 - lo: 9 - name: l2Bytes - width: 7 + hi: 0x11 + lo: 10 + name: msduHeaderBytes + width: 8 - doc: null - hi: 0x2f - lo: 0x10 + hi: 0x31 + lo: 0x12 name: maxMSDU width: 0x20 + - doc: null + hi: 0x3f + lo: 0x32 + name: maxSDU + width: 14 + - doc: null + hi: 0x40 + lo: 0x40 + name: blockingEn + width: 1 name: t_psfp_info - width: 0x30 + width: 0x41 + t_ptp_ctrl: + members: + - doc: Take a timestamp in the TX MAC and send it to software. The packet is not modified. + hi: 0 + lo: 0 + name: upd_ts + width: 1 + name: t_ptp_ctrl + width: 1 + t_ptp_to_mac: + members: + - doc: null + hi: 0 + lo: 0 + name: ptp_ctrl + structure: + members: + - doc: Take a timestamp in the TX MAC and send it to software. The packet is not modified. + hi: 0 + lo: 0 + name: upd_ts + width: 1 + name: t_ptp_ctrl + width: 1 + width: 1 + name: t_ptp_to_mac + width: 1 t_queue: name: t_queue - width: 2 + width: 3 t_queue2PcpCfiDei: members: - doc: null @@ -6272,68 +7626,175 @@ hwconf: t_slicePort: name: t_slicePort width: 3 + t_smon: + members: + - doc: null + hi: 3 + lo: 0 + name: pktInfo + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: pktId + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: fullPort + width: 3 + name: t_pktId + width: 3 + width: 3 + - doc: null + hi: 3 + lo: 3 + name: update + width: 1 + name: t_pktInfo + width: 4 + width: 4 + - doc: null + hi: 4 + lo: 4 + name: hit + width: 1 + - doc: null + hi: 5 + lo: 5 + name: setNr + width: 1 + - doc: null + hi: 8 + lo: 6 + name: pcp + width: 3 + - doc: null + hi: 0x10 + lo: 9 + name: srcBytes + width: 8 + name: t_smon + width: 0x11 + t_smonStatistics: + members: + - doc: null + hi: 0 + lo: 0 + name: valid + width: 1 + - doc: null + hi: 0x11 + lo: 1 + name: data + structure: + members: + - doc: null + hi: 3 + lo: 0 + name: pktInfo + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: pktId + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: fullPort + width: 3 + name: t_pktId + width: 3 + width: 3 + - doc: null + hi: 3 + lo: 3 + name: update + width: 1 + name: t_pktInfo + width: 4 + width: 4 + - doc: null + hi: 4 + lo: 4 + name: hit + width: 1 + - doc: null + hi: 5 + lo: 5 + name: setNr + width: 1 + - doc: null + hi: 8 + lo: 6 + name: pcp + width: 3 + - doc: null + hi: 0x10 + lo: 9 + name: srcBytes + width: 8 + name: t_smon + width: 0x11 + width: 0x11 + name: t_smonStatistics + width: 0x12 t_srcSize: name: t_srcSize - width: 7 + width: 8 + t_timestamp: + name: t_timestamp + width: 0x50 t_toCpuReason: name: t_toCpuReason - width: 7 + width: 9 t_toCpuReason_field: name: t_toCpuReason_field - width: 8 + width: 0x10 t_toCpuTag: members: - - doc: null + - doc: Ethernet Type of the To CPU tag. hi: 15 lo: 0 name: type width: 0x10 - - doc: null + - doc: Source port number. hi: 0x17 lo: 0x10 name: srcPort width: 8 - - doc: null - hi: 0x1f + - doc: Reason code indicating why the packet was sent to the CPU. See table \ref{tab:toCpuReasonTable}. + hi: 0x27 lo: 0x18 name: reason - width: 8 - - doc: null - hi: 0x2f - lo: 0x20 - name: zero width: 0x10 - name: t_toCpuTag - width: 0x30 - t_toIrcInfo: - members: - - doc: null - hi: 0 - lo: 0 - name: isHeader + - doc: If set, the packet is a PTP packet. + hi: 0x28 + lo: 0x28 + name: ptp width: 1 - - doc: null - hi: 1 - lo: 1 - name: enable + - doc: If set, the timestamp field is valid. + hi: 0x29 + lo: 0x29 + name: validTs width: 1 - - doc: null - hi: 8 - lo: 2 - name: srcBytes - width: 7 - - doc: null - hi: 11 - lo: 9 - name: srcSlicePort - width: 3 - - doc: null - hi: 13 - lo: 12 - name: srcQueue - width: 2 - name: t_toIrcInfo - width: 14 + - doc: Reserved. Set to zero. + hi: 0x2f + lo: 0x2a + name: rsv + width: 6 + - doc: Timestamp associated with the packet. The lowest numbered byte contains the most significant byte of the timestamp value. + hi: 0x7f + lo: 0x30 + name: timestamp + width: 0x50 + name: t_toCpuTag + width: 0x80 t_toMbscInfo: members: - doc: null @@ -6342,42 +7803,42 @@ hwconf: name: portMask width: 5 - doc: null - hi: 11 + hi: 12 lo: 5 name: srcBytes - width: 7 + width: 8 - doc: null - hi: 14 - lo: 12 + hi: 15 + lo: 13 name: srcPort width: 3 - - doc: null - hi: 15 - lo: 15 - name: isFloodingMc - width: 1 - doc: null hi: 0x10 lo: 0x10 - name: isFloodingUc + name: isFloodingMc width: 1 - doc: null hi: 0x11 lo: 0x11 - name: isL2Multicast + name: isFloodingUc width: 1 - doc: null hi: 0x12 lo: 0x12 - name: isL2Broadcast + name: isL2Multicast width: 1 - doc: null hi: 0x13 lo: 0x13 + name: isL2Broadcast + width: 1 + - doc: null + hi: 0x14 + lo: 0x14 name: isHeader width: 1 name: t_toMbscInfo - width: 0x14 + width: 0x15 t_to_eop_filter: members: - doc: null @@ -6405,23 +7866,23 @@ hwconf: name: isTail width: 1 - doc: null - hi: 11 + hi: 12 lo: 5 name: srcBytes - width: 7 + width: 8 - doc: null - hi: 0x10 - lo: 12 + hi: 0x11 + lo: 13 name: dropMask width: 5 - doc: null - hi: 0x12 - lo: 0x11 + hi: 0x13 + lo: 0x12 name: color width: 2 - doc: null - hi: 0x34 - lo: 0x13 + hi: 0x36 + lo: 0x14 name: eopPtr structure: members: @@ -6431,13 +7892,13 @@ hwconf: name: ingressValid width: 1 - doc: null - hi: 2 + hi: 3 lo: 1 name: ingressPtr - width: 2 + width: 3 - doc: null - hi: 0x21 - lo: 3 + hi: 0x22 + lo: 4 name: frer structure: members: @@ -6480,11 +7941,11 @@ hwconf: width: 0x1f width: 0x1f name: t_eop_ptr - width: 0x22 - width: 0x22 + width: 0x23 + width: 0x23 - doc: null - hi: 0x64 - lo: 0x35 + hi: 0x77 + lo: 0x37 name: psfpInfo structure: members: @@ -6494,35 +7955,45 @@ hwconf: name: psfpEn width: 1 - doc: null - hi: 3 + hi: 4 lo: 1 name: filterId - width: 3 + width: 4 - doc: null - hi: 7 - lo: 4 + hi: 8 + lo: 5 name: gateId width: 4 - doc: null - hi: 8 - lo: 8 + hi: 9 + lo: 9 name: gateClosed width: 1 - doc: null - hi: 15 - lo: 9 - name: l2Bytes - width: 7 + hi: 0x11 + lo: 10 + name: msduHeaderBytes + width: 8 - doc: null - hi: 0x2f - lo: 0x10 + hi: 0x31 + lo: 0x12 name: maxMSDU width: 0x20 + - doc: null + hi: 0x3f + lo: 0x32 + name: maxSDU + width: 14 + - doc: null + hi: 0x40 + lo: 0x40 + name: blockingEn + width: 1 name: t_psfp_info - width: 0x30 - width: 0x30 + width: 0x41 + width: 0x41 name: t_to_eop_filter - width: 0x65 + width: 0x78 t_totalNrOfVlans: name: t_totalNrOfVlans width: 3 @@ -6673,6 +8144,7 @@ hwconf: eppStart: afterHeader epp_conf_input_flop: 0 epp_conf_output_flop: 0 + epp_gated_flops: null epp_halt_delay: - 6 epp_implicit_valid: true @@ -6717,14 +8189,16 @@ hwconf: erm_config: accumulated: false guarantees: true - margin: 0x69 - max_threshold_bytes: 0x1a04 + margin: 0x37 + max_cells: true + max_threshold_bytes: 0x1b04 mode: - eql per_queue_counter: true port_limit: true - port_set: 0x14 - xon_cells: 0x25a + port_set: 0 + qguarantee_cells: 0x18 + xon_cells: 0x42c erm_latency: 2 esch_cycles_between_visits: 3 esch_ff_selected: @@ -6732,6 +8206,9 @@ hwconf: esch_fixed_order: true esch_work_conserving: false evaluation_hours: 0x18 + evaluation_sample_port: default + evaluation_sample_ports: + - 4 evaluation_test: null evaluation_timeout_cnt: 10800000000000.0 exist_extra_address_space: false @@ -6762,7 +8239,7 @@ hwconf: full_doc: true fwdloop_cell_ports: [] fwdloop_spps_ports: [] - gate_tick_cnt_w: 0x1e + gate_tick_cnt_w: 0x50 group_bw: - - 0x2710 - 0x3e8 @@ -6820,9 +8297,10 @@ hwconf: topregs: 3 wrr: 4 hrr_config: null + hw_eval: true hw_learning: true hw_yml: settings/hw.yml - i2e_bytes: 12 + i2e_bytes: 13 ifg: - 0xc0 - 0xc0 @@ -6830,13 +8308,13 @@ hwconf: - 0xc0 - 0xc0 iinfo_slice_max_w: - - 0 + - 0x51 iinfo_w: - - 0 - - 0 - - 0 - - 0 - - 0 + - 0x51 + - 0x51 + - 0x51 + - 0x51 + - 0x51 ingress_common_flops: 1 ingress_drop_id: - c_UNKNOWN_INGRESS_DROPID @@ -6844,7 +8322,6 @@ hwconf: - c_SPANNING_TREE_LEARNING_DROPID - c_SPANNING_TREE_BLOCKING_DROPID - c_L2_LOOKUP_DROPID - - c_INGRESS_RATE_CONTROL_DROPID - c_INGRESS_PORT_RATE_LIMITER_DROPID - c_INGRESS_MBSC_DROPID - c_NON_VLAN_MEMBER_DROPID @@ -6852,6 +8329,7 @@ hwconf: - c_MAX_ALLOWED_NR_OF_VLANS_DROPID - c_IP_CHECKSUM_DROPID - c_CONF_INGRESS_ACL_DROPID + - c_PORT_DEFAULT_ACL_DROPID - c_EMPTY_DEST_DROPID ingress_type_db: bit: @@ -6894,24 +8372,6 @@ hwconf: int: name: int width: 0x20 - rg_obs_dstPortmask_t: - members: - - doc: null - hi: 4 - lo: 0 - name: value - width: 5 - name: rg_obs_dstPortmask_t - width: 5 - rg_obs_srcPort_t: - members: - - doc: null - hi: 0x1f - lo: 0 - name: value - width: 0x20 - name: rg_obs_srcPort_t - width: 0x20 t_L4_first: name: t_L4_first width: 0x40 @@ -6931,121 +8391,363 @@ hwconf: name: toCpu width: 1 - doc: null - hi: 8 + hi: 10 lo: 2 name: toCpuReason - width: 7 + width: 9 - doc: null - hi: 13 - lo: 9 + hi: 15 + lo: 11 name: portMask width: 5 - doc: null - hi: 14 - lo: 14 + hi: 0x10 + lo: 0x10 name: drop width: 1 - doc: null - hi: 15 - lo: 15 + hi: 0x11 + lo: 0x11 name: forceVidValid width: 1 - doc: null - hi: 0x15 - lo: 0x10 + hi: 0x1e + lo: 0x12 name: forceVid - width: 6 + width: 13 - doc: null - hi: 0x16 - lo: 0x16 + hi: 0x1f + lo: 0x1f name: forceQueue width: 1 - doc: null - hi: 0x18 - lo: 0x17 + hi: 0x22 + lo: 0x20 name: newQueue - width: 2 + width: 3 - doc: null - hi: 0x19 - lo: 0x19 + hi: 0x23 + lo: 0x23 name: forceColor width: 1 - doc: null - hi: 0x1b - lo: 0x1a + hi: 0x25 + lo: 0x24 name: color width: 2 - doc: null - hi: 0x1c - lo: 0x1c + hi: 0x26 + lo: 0x26 name: streamValid width: 1 - doc: null - hi: 0x21 - lo: 0x1d + hi: 0x2b + lo: 0x27 name: streamHandle width: 5 + - doc: null + hi: 0x2e + lo: 0x2c + name: aclStat + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: updateCounter0 + width: 1 + - doc: null + hi: 2 + lo: 1 + name: counter0 + width: 2 + name: t_confIngressAclStat + width: 3 + width: 3 + - doc: null + hi: 0x2f + lo: 0x2f + name: ptp + width: 1 name: t_acl - width: 0x22 + width: 0x30 + t_aclInfo: + members: + - doc: null + hi: 0 + lo: 0 + name: useAcl + width: 1 + - doc: null + hi: 4 + lo: 1 + name: aclRule + width: 4 + - doc: null + hi: 5 + lo: 5 + name: enableDefaultPortAcl + width: 1 + - doc: null + hi: 6 + lo: 6 + name: forcePortAclAction + width: 1 + - doc: null + hi: 8 + lo: 7 + name: preLookupAclBits + width: 2 + name: t_aclInfo + width: 9 + t_acl_counter: + members: + - doc: null + hi: 0 + lo: 0 + name: valid + width: 1 + - doc: null + hi: 7 + lo: 1 + name: data + structure: + members: + - doc: null + hi: 3 + lo: 0 + name: pkt_if + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: pktId + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: fullPort + width: 3 + name: t_pktId + width: 3 + width: 3 + - doc: null + hi: 3 + lo: 3 + name: update + width: 1 + name: t_pktInfo + width: 4 + width: 4 + - doc: null + hi: 6 + lo: 4 + name: index + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: updateCounter0 + width: 1 + - doc: null + hi: 2 + lo: 1 + name: counter0 + width: 2 + name: t_confIngressAclStat + width: 3 + width: 3 + name: t_acl_counter_data + width: 7 + width: 7 + name: t_acl_counter + width: 8 + t_acl_counter_data: + members: + - doc: null + hi: 3 + lo: 0 + name: pkt_if + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: pktId + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: fullPort + width: 3 + name: t_pktId + width: 3 + width: 3 + - doc: null + hi: 3 + lo: 3 + name: update + width: 1 + name: t_pktInfo + width: 4 + width: 4 + - doc: null + hi: 6 + lo: 4 + name: index + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: updateCounter0 + width: 1 + - doc: null + hi: 2 + lo: 1 + name: counter0 + width: 2 + name: t_confIngressAclStat + width: 3 + width: 3 + name: t_acl_counter_data + width: 7 t_carry_cnt: members: - doc: null - hi: 0x13 + hi: 0x1a lo: 0 name: data - width: 0x14 + width: 0x1b name: t_carry_cnt - width: 0x14 + width: 0x1b t_cell_bits: name: t_cell_bits - width: 10 + width: 11 t_cell_bytes: name: t_cell_bytes - width: 9 + width: 10 t_color: name: t_color width: 2 + t_color_profile_select: + members: + - doc: null + hi: 6 + lo: 0 + name: data + width: 7 + name: t_color_profile_select + width: 7 t_confAcl: name: t_confAcl - width: 0x40 + width: 0x100 t_confAclAnswer: members: - doc: null hi: 0 lo: 0 - name: dropEnable + name: sendToCpu width: 1 - doc: null hi: 1 lo: 1 - name: streamValid + name: dropEnable width: 1 - doc: null - hi: 6 + hi: 2 lo: 2 - name: streamHandle - width: 5 - - doc: null - hi: 7 - lo: 7 - name: forceQueue + name: sendToPort width: 1 - doc: null - hi: 9 - lo: 8 - name: eQueue - width: 2 - name: t_confAclAnswer - width: 10 + hi: 5 + lo: 3 + name: destPort + width: 3 + - doc: null + hi: 6 + lo: 6 + name: streamValid + width: 1 + - doc: null + hi: 11 + lo: 7 + name: streamHandle + width: 5 + - doc: null + hi: 12 + lo: 12 + name: updateCounter + width: 1 + - doc: null + hi: 14 + lo: 13 + name: counter + width: 2 + - doc: null + hi: 15 + lo: 15 + name: forceColor + width: 1 + - doc: null + hi: 0x11 + lo: 0x10 + name: color + width: 2 + - doc: null + hi: 0x12 + lo: 0x12 + name: mmpValid + width: 1 + - doc: null + hi: 0x15 + lo: 0x13 + name: mmpPtr + width: 3 + - doc: null + hi: 0x16 + lo: 0x16 + name: mmpOrder + width: 1 + - doc: null + hi: 0x17 + lo: 0x17 + name: forceQueue + width: 1 + - doc: null + hi: 0x1a + lo: 0x18 + name: eQueue + width: 3 + name: t_confAclAnswer + width: 0x1b + t_confAclPreLookup: + members: + - doc: null + hi: 0 + lo: 0 + name: valid + width: 1 + - doc: null + hi: 4 + lo: 1 + name: rulePtr + width: 4 + name: t_confAclPreLookup + width: 5 t_confAclRule: members: - doc: null - hi: 2 + hi: 15 lo: 0 name: fieldSelectBitmask - width: 3 + width: 0x10 name: t_confAclRule - width: 3 + width: 0x10 t_confAcl_large: members: - doc: null @@ -7054,51 +8756,101 @@ hwconf: name: valid width: 1 - doc: null - hi: 0x40 + hi: 0x100 lo: 1 name: compareData - width: 0x40 + width: 0x100 - doc: null - hi: 0x41 - lo: 0x41 + hi: 0x101 + lo: 0x101 + name: sendToCpu + width: 1 + - doc: null + hi: 0x102 + lo: 0x102 name: dropEnable width: 1 - doc: null - hi: 0x42 - lo: 0x42 + hi: 0x103 + lo: 0x103 + name: sendToPort + width: 1 + - doc: null + hi: 0x106 + lo: 0x104 + name: destPort + width: 3 + - doc: null + hi: 0x107 + lo: 0x107 name: streamValid width: 1 - doc: null - hi: 0x47 - lo: 0x43 + hi: 0x10c + lo: 0x108 name: streamHandle width: 5 - doc: null - hi: 0x48 - lo: 0x48 + hi: 0x10d + lo: 0x10d + name: updateCounter + width: 1 + - doc: null + hi: 0x10f + lo: 0x10e + name: counter + width: 2 + - doc: null + hi: 0x110 + lo: 0x110 + name: forceColor + width: 1 + - doc: null + hi: 0x112 + lo: 0x111 + name: color + width: 2 + - doc: null + hi: 0x113 + lo: 0x113 + name: mmpValid + width: 1 + - doc: null + hi: 0x116 + lo: 0x114 + name: mmpPtr + width: 3 + - doc: null + hi: 0x117 + lo: 0x117 + name: mmpOrder + width: 1 + - doc: null + hi: 0x118 + lo: 0x118 name: forceQueue width: 1 - doc: null - hi: 0x4a - lo: 0x49 + hi: 0x11b + lo: 0x119 name: eQueue - width: 2 + width: 3 name: t_confAcl_large - width: 0x4b + width: 0x11c t_confAcl_mask: members: - doc: null - hi: 0x3f + hi: 0xff lo: 0 name: mask_small - width: 0x40 + width: 0x100 - doc: null - hi: 0x7f - lo: 0x40 + hi: 0x1ff + lo: 0x100 name: mask_large - width: 0x40 + width: 0x100 name: t_confAcl_mask - width: 0x80 + width: 0x200 t_confAcl_selection: members: - doc: null @@ -7121,37 +8873,87 @@ hwconf: name: valid width: 1 - doc: null - hi: 0x40 + hi: 0x100 lo: 1 name: compareData - width: 0x40 + width: 0x100 - doc: null - hi: 0x41 - lo: 0x41 + hi: 0x101 + lo: 0x101 + name: sendToCpu + width: 1 + - doc: null + hi: 0x102 + lo: 0x102 name: dropEnable width: 1 - doc: null - hi: 0x42 - lo: 0x42 + hi: 0x103 + lo: 0x103 + name: sendToPort + width: 1 + - doc: null + hi: 0x106 + lo: 0x104 + name: destPort + width: 3 + - doc: null + hi: 0x107 + lo: 0x107 name: streamValid width: 1 - doc: null - hi: 0x47 - lo: 0x43 + hi: 0x10c + lo: 0x108 name: streamHandle width: 5 - doc: null - hi: 0x48 - lo: 0x48 + hi: 0x10d + lo: 0x10d + name: updateCounter + width: 1 + - doc: null + hi: 0x10f + lo: 0x10e + name: counter + width: 2 + - doc: null + hi: 0x110 + lo: 0x110 + name: forceColor + width: 1 + - doc: null + hi: 0x112 + lo: 0x111 + name: color + width: 2 + - doc: null + hi: 0x113 + lo: 0x113 + name: mmpValid + width: 1 + - doc: null + hi: 0x116 + lo: 0x114 + name: mmpPtr + width: 3 + - doc: null + hi: 0x117 + lo: 0x117 + name: mmpOrder + width: 1 + - doc: null + hi: 0x118 + lo: 0x118 name: forceQueue width: 1 - doc: null - hi: 0x4a - lo: 0x49 + hi: 0x11b + lo: 0x119 name: eQueue - width: 2 + width: 3 name: t_confAcl_small - width: 0x4b + width: 0x11c t_confAcl_tcam: members: - doc: null @@ -7160,79 +8962,222 @@ hwconf: name: valid width: 1 - doc: null - hi: 0x40 + hi: 0x100 lo: 1 name: mask - width: 0x40 + width: 0x100 - doc: null - hi: 0x80 - lo: 0x41 + hi: 0x200 + lo: 0x101 name: compareData - width: 0x40 + width: 0x100 name: t_confAcl_tcam - width: 0x81 + width: 0x201 t_confAcl_tcam_answer: members: - doc: null hi: 0 lo: 0 - name: dropEnable + name: sendToCpu width: 1 - doc: null hi: 1 lo: 1 - name: streamValid + name: dropEnable width: 1 - doc: null - hi: 6 + hi: 2 lo: 2 + name: sendToPort + width: 1 + - doc: null + hi: 5 + lo: 3 + name: destPort + width: 3 + - doc: null + hi: 6 + lo: 6 + name: streamValid + width: 1 + - doc: null + hi: 11 + lo: 7 name: streamHandle width: 5 - doc: null - hi: 7 - lo: 7 + hi: 12 + lo: 12 + name: updateCounter + width: 1 + - doc: null + hi: 14 + lo: 13 + name: counter + width: 2 + - doc: null + hi: 15 + lo: 15 + name: forceColor + width: 1 + - doc: null + hi: 0x11 + lo: 0x10 + name: color + width: 2 + - doc: null + hi: 0x12 + lo: 0x12 + name: mmpValid + width: 1 + - doc: null + hi: 0x15 + lo: 0x13 + name: mmpPtr + width: 3 + - doc: null + hi: 0x16 + lo: 0x16 + name: mmpOrder + width: 1 + - doc: null + hi: 0x17 + lo: 0x17 name: forceQueue width: 1 - doc: null - hi: 9 - lo: 8 + hi: 0x1a + lo: 0x18 name: eQueue - width: 2 + width: 3 name: t_confAcl_tcam_answer - width: 10 - t_dei: - name: t_dei - width: 1 - t_dot1q: - name: t_dot1q - width: 0x40 - t_dropOptions: + width: 0x1b + t_confIngressAclStat: members: - doc: null hi: 0 lo: 0 - name: learnL2DestDrop + name: updateCounter0 width: 1 - doc: null - hi: 1 + hi: 2 lo: 1 - name: learnL2FloodDrop - width: 1 + name: counter0 + width: 2 + name: t_confIngressAclStat + width: 3 + t_defaultPortAclAction: + members: - doc: null - hi: 2 - lo: 2 - name: learnL2DestVlanMemberDrop + hi: 0 + lo: 0 + name: streamValid width: 1 - doc: null - hi: 3 - lo: 3 - name: learnL2HairpinDrop - width: 1 - name: t_dropOptions + hi: 5 + lo: 1 + name: streamHandle + width: 5 + - doc: null + hi: 6 + lo: 6 + name: updateCounter + width: 1 + - doc: null + hi: 8 + lo: 7 + name: counter + width: 2 + - doc: null + hi: 9 + lo: 9 + name: dropEnable + width: 1 + - doc: null + hi: 10 + lo: 10 + name: sendToCpu + width: 1 + - doc: null + hi: 11 + lo: 11 + name: sendToPort + width: 1 + - doc: null + hi: 14 + lo: 12 + name: destPort + width: 3 + - doc: null + hi: 15 + lo: 15 + name: forceColor + width: 1 + - doc: null + hi: 0x11 + lo: 0x10 + name: color + width: 2 + - doc: null + hi: 0x12 + lo: 0x12 + name: mmpValid + width: 1 + - doc: null + hi: 0x15 + lo: 0x13 + name: mmpPtr + width: 3 + - doc: null + hi: 0x16 + lo: 0x16 + name: mmpOrder + width: 1 + - doc: null + hi: 0x17 + lo: 0x17 + name: forceQueue + width: 1 + - doc: null + hi: 0x1a + lo: 0x18 + name: eQueue + width: 3 + name: t_defaultPortAclAction + width: 0x1b + t_dei: + name: t_dei + width: 1 + t_dot1q: + name: t_dot1q + width: 0x40 + t_dropOptions: + members: + - doc: null + hi: 0 + lo: 0 + name: learnL2DestDrop + width: 1 + - doc: null + hi: 1 + lo: 1 + name: learnL2FloodDrop + width: 1 + - doc: null + hi: 2 + lo: 2 + name: learnL2DestVlanMemberDrop + width: 1 + - doc: null + hi: 3 + lo: 3 + name: learnL2HairpinDrop + width: 1 + name: t_dropOptions width: 4 t_dstQueue: name: t_dstQueue - width: 2 + width: 3 t_egrSpanningTree: members: - doc: null @@ -7340,6 +9285,42 @@ hwconf: width: 14 name: t_egressDropStatistics width: 15 + t_egress_profile_select: + members: + - doc: null + hi: 8 + lo: 0 + name: data + width: 9 + name: t_egress_profile_select + width: 9 + t_egress_profile_valid: + members: + - doc: null + hi: 0 + lo: 0 + name: data + width: 1 + name: t_egress_profile_valid + width: 1 + t_egress_queue_select: + members: + - doc: null + hi: 9 + lo: 0 + name: data + width: 10 + name: t_egress_queue_select + width: 10 + t_egress_queue_valid: + members: + - doc: null + hi: 0 + lo: 0 + name: data + width: 1 + name: t_egress_queue_valid + width: 1 t_emptyBlock: members: - doc: null @@ -7349,6 +9330,20 @@ hwconf: width: 1 name: t_emptyBlock width: 1 + t_eopTs: + members: + - doc: null + hi: 0 + lo: 0 + name: valid_ts + width: 1 + - doc: null + hi: 0x50 + lo: 1 + name: ts + width: 0x50 + name: t_eopTs + width: 0x51 t_eop_ptr: members: - doc: null @@ -7357,13 +9352,13 @@ hwconf: name: ingressValid width: 1 - doc: null - hi: 2 + hi: 3 lo: 1 name: ingressPtr - width: 2 + width: 3 - doc: null - hi: 0x21 - lo: 3 + hi: 0x22 + lo: 4 name: frer structure: members: @@ -7406,7 +9401,21 @@ hwconf: width: 0x1f width: 0x1f name: t_eop_ptr - width: 0x22 + width: 0x23 + t_floodingAction: + members: + - doc: null + hi: 0 + lo: 0 + name: enable + width: 1 + - doc: null + hi: 3 + lo: 1 + name: destPort + width: 3 + name: t_floodingAction + width: 4 t_flow_table_result: members: - doc: null @@ -7489,28 +9498,47 @@ hwconf: width: 0x1f t_fromCpuTag: members: - - doc: null + - doc: Ethernet Type of the From CPU tag. hi: 15 lo: 0 name: ethType width: 0x10 - - doc: null + - doc: Destination port mask. Each set bit selects one destination port. hi: 0x17 lo: 0x10 name: dstPortmask width: 8 - - doc: null - hi: 0x19 + - doc: Destination queue for the packet. + hi: 0x1a lo: 0x18 name: queue - width: 2 - - doc: null + width: 3 + - doc: Reserved. Set to zero. hi: 0x1f - lo: 0x1a + lo: 0x1b name: pad_queue - width: 6 + width: 5 + - doc: PTP transmit control. + hi: 0x20 + lo: 0x20 + name: ptp_ctrl + structure: + members: + - doc: Take a timestamp in the TX MAC and send it to software. The packet is not modified. + hi: 0 + lo: 0 + name: upd_ts + width: 1 + name: t_ptp_ctrl + width: 1 + width: 1 + - doc: Reserved. Set to zero. + hi: 0x27 + lo: 0x21 + name: pad_ctrl + width: 7 name: t_fromCpuTag - width: 0x20 + width: 0x28 t_from_eop_filter: members: - doc: null @@ -7556,7 +9584,7 @@ hwconf: t_i2eHeader: members: - doc: null - hi: 0x5f + hi: 0x63 lo: 0 name: l2Hdr structure: @@ -7737,30 +9765,41 @@ hwconf: width: 0x15 width: 0x15 - doc: null - hi: 0x5b + hi: 0x5d lo: 0x55 name: toCpuReason - width: 7 + width: 9 + - doc: null + hi: 0x5e + lo: 0x5e + name: isPTP + width: 1 - doc: null - hi: 0x5c - lo: 0x5c + hi: 0x5f + lo: 0x5f name: delFromCpuTag width: 1 - doc: null - hi: 0x5d - lo: 0x5d + hi: 0x60 + lo: 0x60 name: mmpValid width: 1 - doc: null - hi: 0x5f - lo: 0x5e + hi: 0x63 + lo: 0x61 name: mmpPtr - width: 2 + width: 3 name: t_iHeaderL2 - width: 0x60 - width: 0x60 + width: 0x64 + width: 0x64 name: t_i2eHeader - width: 0x60 + width: 0x64 + t_i2eNrOfVlans: + name: t_i2eNrOfVlans + width: 2 + t_i2ePort: + name: t_i2ePort + width: 3 t_iHeaderL2: members: - doc: null @@ -7939,40 +9978,33 @@ hwconf: width: 0x15 width: 0x15 - doc: null - hi: 0x5b + hi: 0x5d lo: 0x55 name: toCpuReason - width: 7 + width: 9 - doc: null - hi: 0x5c - lo: 0x5c + hi: 0x5e + lo: 0x5e + name: isPTP + width: 1 + - doc: null + hi: 0x5f + lo: 0x5f name: delFromCpuTag width: 1 - doc: null - hi: 0x5d - lo: 0x5d + hi: 0x60 + lo: 0x60 name: mmpValid width: 1 - doc: null - hi: 0x5f - lo: 0x5e + hi: 0x63 + lo: 0x61 name: mmpPtr - width: 2 + width: 3 name: t_iHeaderL2 - width: 0x60 - t_iRateCtrlAns: - members: - - doc: null - hi: 0x13 - lo: 0 - name: data - width: 0x14 - name: t_iRateCtrlAns - width: 0x14 - t_iRateCtrlMask: - name: t_iRateCtrlMask - width: 0x14 - t_iRateCtrlReq: + width: 0x64 + t_igrPortMib: members: - doc: null hi: 0 @@ -7980,142 +10012,43 @@ hwconf: name: valid width: 1 - doc: null - hi: 14 + hi: 0x36 lo: 1 name: data structure: members: - doc: null - hi: 0 + hi: 3 lo: 0 - name: isHeader - width: 1 - - doc: null - hi: 1 - lo: 1 - name: enable - width: 1 - - doc: null - hi: 8 - lo: 2 - name: srcBytes - width: 7 - - doc: null - hi: 11 - lo: 9 - name: srcSlicePort - width: 3 - - doc: null - hi: 13 - lo: 12 - name: srcQueue - width: 2 - name: t_toIrcInfo - width: 14 - width: 14 - name: t_iRateCtrlReq - width: 15 - t_iRateCtrlSliceMask: - name: t_iRateCtrlSliceMask - width: 0x14 - t_iRateCtrlType: - members: - - doc: null - hi: 0 - lo: 0 - name: ucHit - width: 1 - - doc: null - hi: 1 - lo: 1 - name: ucMiss - width: 1 - - doc: null - hi: 2 - lo: 2 - name: mcHit - width: 1 - - doc: null - hi: 3 - lo: 3 - name: mcMiss - width: 1 - - doc: null - hi: 4 - lo: 4 - name: bc - width: 1 - - doc: null - hi: 5 - lo: 5 - name: reservedDa - width: 1 - name: t_iRateCtrlType - width: 6 - t_ignoreChecksum: - members: - - doc: null - hi: 0 - lo: 0 - name: enabled - width: 1 - - doc: null - hi: 0x10 - lo: 1 - name: ignoreStart - width: 0x10 - - doc: null - hi: 0x20 - lo: 0x11 - name: ignoreEnd - width: 0x10 - name: t_ignoreChecksum - width: 0x21 - t_igrPortMib: - members: - - doc: null - hi: 0 - lo: 0 - name: valid - width: 1 - - doc: null - hi: 0x36 - lo: 1 - name: data - structure: - members: - - doc: null - hi: 3 - lo: 0 - name: pktInfo - structure: - members: - - doc: null - hi: 2 - lo: 0 - name: pktId - structure: - members: - - doc: null - hi: 2 - lo: 0 - name: fullPort - width: 3 - name: t_pktId - width: 3 - width: 3 - - doc: null - hi: 3 - lo: 3 - name: update - width: 1 - name: t_pktInfo - width: 4 - width: 4 - - doc: null - hi: 4 - lo: 4 - name: drop + name: pktInfo + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: pktId + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: fullPort + width: 3 + name: t_pktId + width: 3 + width: 3 + - doc: null + hi: 3 + lo: 3 + name: update + width: 1 + name: t_pktInfo + width: 4 + width: 4 + - doc: null + hi: 4 + lo: 4 + name: drop width: 1 - doc: null hi: 0x34 @@ -8187,23 +10120,23 @@ hwconf: name: valid width: 1 - doc: null - hi: 2 + hi: 3 lo: 1 name: ptr - width: 2 + width: 3 - doc: null - hi: 3 - lo: 3 + hi: 4 + lo: 4 name: order width: 1 name: t_immp - width: 4 + width: 5 t_inCell: name: t_inCell - width: 0x200 + width: 0x400 t_inCell_minus112: name: t_inCell_minus112 - width: 0x190 + width: 0x390 t_ingressControl: members: - doc: null @@ -8408,30 +10341,20 @@ hwconf: width: 1 name: t_ingressControl width: 0x28 - t_ingressGate: + t_ingressGateAction: members: - doc: null hi: 0 lo: 0 - name: gateClosed - width: 1 - - doc: null - hi: 1 - lo: 1 name: updateQueue width: 1 - doc: null hi: 3 - lo: 2 + lo: 1 name: eQueue - width: 2 - - doc: null - hi: 0x23 - lo: 4 - name: maxMSDU - width: 0x20 - name: t_ingressGate - width: 0x24 + width: 3 + name: t_ingressGateAction + width: 4 t_ingressGateCtrl: members: - doc: null @@ -8446,10 +10369,24 @@ hwconf: width: 4 name: t_ingressGateCtrl width: 5 + t_ingressGateState: + members: + - doc: null + hi: 0 + lo: 0 + name: gateClosed + width: 1 + - doc: null + hi: 0x20 + lo: 1 + name: maxMSDU + width: 0x20 + name: t_ingressGateState + width: 0x21 t_ingressInInfo: members: - doc: null - hi: 1 + hi: 0x52 lo: 0 name: trans structure: @@ -8464,18 +10401,37 @@ hwconf: lo: 1 name: last width: 1 + - doc: null + hi: 0x52 + lo: 2 + name: eopTs + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: valid_ts + width: 1 + - doc: null + hi: 0x50 + lo: 1 + name: ts + width: 0x50 + name: t_eopTs + width: 0x51 + width: 0x51 name: t_ingressTrans - width: 2 - width: 2 + width: 0x53 + width: 0x53 name: t_ingressInInfo - width: 2 + width: 0x53 t_ingressOutCell: name: t_ingressOutCell - width: 0x260 + width: 0x468 t_ingressOutInfo: members: - doc: null - hi: 1 + hi: 0x52 lo: 0 name: trans structure: @@ -8490,12 +10446,31 @@ hwconf: lo: 1 name: last width: 1 + - doc: null + hi: 0x52 + lo: 2 + name: eopTs + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: valid_ts + width: 1 + - doc: null + hi: 0x50 + lo: 1 + name: ts + width: 0x50 + name: t_eopTs + width: 0x51 + width: 0x51 name: t_ingressTrans - width: 2 - width: 2 + width: 0x53 + width: 0x53 - doc: null - hi: 8 - lo: 2 + hi: 0x59 + lo: 0x53 name: eop structure: members: @@ -8513,10 +10488,10 @@ hwconf: width: 7 width: 7 name: t_ingressOutInfo - width: 9 + width: 0x5a t_ingressResultSize: name: t_ingressResultSize - width: 7 + width: 8 t_ingressTrans: members: - doc: null @@ -8529,8 +10504,27 @@ hwconf: lo: 1 name: last width: 1 + - doc: null + hi: 0x52 + lo: 2 + name: eopTs + structure: + members: + - doc: null + hi: 0 + lo: 0 + name: valid_ts + width: 1 + - doc: null + hi: 0x50 + lo: 1 + name: ts + width: 0x50 + name: t_eopTs + width: 0x51 + width: 0x51 name: t_ingressTrans - width: 2 + width: 0x53 t_ingressVlanEthernetTypes: members: - doc: null @@ -8579,12 +10573,12 @@ hwconf: t_ipv4Tos2Queue: members: - doc: null - hi: 1 + hi: 2 lo: 0 name: pQueue - width: 2 + width: 3 name: t_ipv4Tos2Queue - width: 2 + width: 3 t_ipv6Tos2Color: members: - doc: null @@ -8597,12 +10591,12 @@ hwconf: t_ipv6Tos2Queue: members: - doc: null - hi: 1 + hi: 2 lo: 0 name: pQueue - width: 2 + width: 3 name: t_ipv6Tos2Queue - width: 2 + width: 3 t_irl_status: members: - doc: null @@ -8668,27 +10662,27 @@ hwconf: name: valid width: 1 - doc: null - hi: 12 + hi: 13 lo: 6 name: valid_bytes - width: 7 - - doc: null - hi: 13 - lo: 13 - name: is_bc - width: 1 + width: 8 - doc: null hi: 14 lo: 14 - name: is_mc + name: is_bc width: 1 - doc: null hi: 15 lo: 15 + name: is_mc + width: 1 + - doc: null + hi: 0x10 + lo: 0x10 name: is_uc_fd width: 1 name: t_irl_update - width: 0x10 + width: 0x11 t_keySize: name: t_keySize width: 0x31 @@ -8807,8 +10801,33 @@ hwconf: lo: 0xac name: secondByte width: 8 + - doc: null + hi: 0xb6 + lo: 0xb4 + name: ingressPortSel + width: 3 + - doc: null + hi: 0xb9 + lo: 0xb7 + name: ingressVlanSel + width: 3 + - doc: null + hi: 0xbc + lo: 0xba + name: qosColorSel + width: 3 + - doc: null + hi: 0xbf + lo: 0xbd + name: l2DestSel + width: 3 + - doc: null + hi: 0xc2 + lo: 0xc0 + name: egressQueueSel + width: 3 name: t_l2Data - width: 0xb4 + width: 0xc3 t_l2Dest: members: - doc: null @@ -8817,20 +10836,20 @@ hwconf: name: uc width: 1 - doc: null - hi: 3 + hi: 5 lo: 1 name: destPort_or_mcAddr - width: 3 + width: 5 - doc: null - hi: 4 - lo: 4 + hi: 6 + lo: 6 name: pktDrop width: 1 name: t_l2Dest - width: 5 + width: 7 t_l2DestAnswer: name: t_l2DestAnswer - width: 3 + width: 5 t_l2McTable: members: - doc: null @@ -8993,92 +11012,97 @@ hwconf: name: forceQueue width: 1 - doc: null - hi: 0x20 + hi: 0x21 lo: 0x1f name: newQueue - width: 2 + width: 3 - doc: null - hi: 0x21 - lo: 0x21 + hi: 0x22 + lo: 0x22 name: cpuPtp width: 1 - doc: null - hi: 0x22 - lo: 0x22 + hi: 0x23 + lo: 0x23 name: forceColor width: 1 - doc: null - hi: 0x24 - lo: 0x23 + hi: 0x25 + lo: 0x24 name: color width: 2 - doc: null - hi: 0x26 - lo: 0x25 + hi: 0x27 + lo: 0x26 name: stagMask width: 2 - doc: null - hi: 0x27 - lo: 0x27 + hi: 0x28 + lo: 0x28 name: sendToCpuForceOrigPkt width: 1 - doc: null - hi: 0x28 - lo: 0x28 + hi: 0x29 + lo: 0x29 name: isAvtp width: 1 - doc: null - hi: 0x48 - lo: 0x29 + hi: 0x49 + lo: 0x2a name: avtpData width: 0x20 - doc: null - hi: 0x4d - lo: 0x49 + hi: 0x4e + lo: 0x4a name: dstPortmask width: 5 - doc: null - hi: 0x4e - lo: 0x4e + hi: 0x4f + lo: 0x4f name: fromCpuFwd width: 1 - doc: null - hi: 0x4f - lo: 0x4f + hi: 0x50 + lo: 0x50 name: fromCpuTag width: 1 - doc: null - hi: 0x51 - lo: 0x50 + hi: 0x53 + lo: 0x51 name: cpuQueue - width: 2 + width: 3 - doc: null - hi: 0x58 - lo: 0x52 + hi: 0x5c + lo: 0x54 name: toCpuReason - width: 7 + width: 9 - doc: null - hi: 0x59 - lo: 0x59 + hi: 0x5d + lo: 0x5d name: hasSeqNum width: 1 - doc: null - hi: 0x69 - lo: 0x5a + hi: 0x6d + lo: 0x5e name: seqNum width: 0x10 - doc: null - hi: 0x6a - lo: 0x6a + hi: 0x6e + lo: 0x6e name: isCpuPort width: 1 - doc: null - hi: 0x71 - lo: 0x6b + hi: 0x76 + lo: 0x6f name: l2Bytes - width: 7 + width: 8 + - doc: null + hi: 0x7e + lo: 0x77 + name: msduHeaderBytes + width: 8 name: t_l2Result - width: 0x72 + width: 0x7f t_l2Table: members: - doc: null @@ -9093,6 +11117,24 @@ hwconf: width: 1 name: t_l2Table width: 0x31 + t_l2_attributes: + members: + - doc: null + hi: 8 + lo: 0 + name: data + width: 9 + name: t_l2_attributes + width: 9 + t_l2_destination: + members: + - doc: null + hi: 7 + lo: 0 + name: data + width: 8 + name: t_l2_destination + width: 8 t_l3Data: members: - doc: null @@ -9258,12 +11300,12 @@ hwconf: name: forceQueue width: 1 - doc: null - hi: 2 + hi: 3 lo: 1 name: eQueue - width: 2 + width: 3 name: t_l3Unknown2Queue - width: 3 + width: 4 t_l4Result: members: - doc: null @@ -9666,7 +11708,7 @@ hwconf: name: isConnected width: 1 - doc: null - hi: 0x14 + hi: 0x15 lo: 1 name: data structure: @@ -9677,72 +11719,48 @@ hwconf: name: portMask width: 5 - doc: null - hi: 11 + hi: 12 lo: 5 name: srcBytes - width: 7 + width: 8 - doc: null - hi: 14 - lo: 12 + hi: 15 + lo: 13 name: srcPort width: 3 - - doc: null - hi: 15 - lo: 15 - name: isFloodingMc - width: 1 - doc: null hi: 0x10 lo: 0x10 - name: isFloodingUc + name: isFloodingMc width: 1 - doc: null hi: 0x11 lo: 0x11 - name: isL2Multicast + name: isFloodingUc width: 1 - doc: null hi: 0x12 lo: 0x12 - name: isL2Broadcast + name: isL2Multicast width: 1 - doc: null hi: 0x13 lo: 0x13 + name: isL2Broadcast + width: 1 + - doc: null + hi: 0x14 + lo: 0x14 name: isHeader width: 1 name: t_toMbscInfo - width: 0x14 - width: 0x14 + width: 0x15 + width: 0x15 name: t_mbscToken - width: 0x15 - t_mcHandling: - members: - - doc: null - hi: 0 - lo: 0 - name: exclIPv4Mc - width: 1 - - doc: null - hi: 1 - lo: 1 - name: exclIPv6Mc - width: 1 - - doc: null - hi: 2 - lo: 2 - name: inclL2McLut - width: 1 - - doc: null - hi: 3 - lo: 3 - name: inclMultiPorts - width: 1 - name: t_mcHandling - width: 4 + width: 0x16 t_mc_ptr: name: t_mc_ptr - width: 3 + width: 5 t_mmp: members: - doc: null @@ -9751,7 +11769,7 @@ hwconf: name: valid width: 1 - doc: null - hi: 0x65 + hi: 0x78 lo: 1 name: data structure: @@ -9781,23 +11799,23 @@ hwconf: name: isTail width: 1 - doc: null - hi: 11 + hi: 12 lo: 5 name: srcBytes - width: 7 + width: 8 - doc: null - hi: 0x10 - lo: 12 + hi: 0x11 + lo: 13 name: dropMask width: 5 - doc: null - hi: 0x12 - lo: 0x11 + hi: 0x13 + lo: 0x12 name: color width: 2 - doc: null - hi: 0x34 - lo: 0x13 + hi: 0x36 + lo: 0x14 name: eopPtr structure: members: @@ -9807,13 +11825,13 @@ hwconf: name: ingressValid width: 1 - doc: null - hi: 2 + hi: 3 lo: 1 name: ingressPtr - width: 2 + width: 3 - doc: null - hi: 0x21 - lo: 3 + hi: 0x22 + lo: 4 name: frer structure: members: @@ -9856,11 +11874,11 @@ hwconf: width: 0x1f width: 0x1f name: t_eop_ptr - width: 0x22 - width: 0x22 + width: 0x23 + width: 0x23 - doc: null - hi: 0x64 - lo: 0x35 + hi: 0x77 + lo: 0x37 name: psfpInfo structure: members: @@ -9870,38 +11888,48 @@ hwconf: name: psfpEn width: 1 - doc: null - hi: 3 + hi: 4 lo: 1 name: filterId - width: 3 + width: 4 - doc: null - hi: 7 - lo: 4 + hi: 8 + lo: 5 name: gateId width: 4 - doc: null - hi: 8 - lo: 8 + hi: 9 + lo: 9 name: gateClosed width: 1 - doc: null - hi: 15 - lo: 9 - name: l2Bytes - width: 7 + hi: 0x11 + lo: 10 + name: msduHeaderBytes + width: 8 - doc: null - hi: 0x2f - lo: 0x10 + hi: 0x31 + lo: 0x12 name: maxMSDU width: 0x20 + - doc: null + hi: 0x3f + lo: 0x32 + name: maxSDU + width: 14 + - doc: null + hi: 0x40 + lo: 0x40 + name: blockingEn + width: 1 name: t_psfp_info - width: 0x30 - width: 0x30 + width: 0x41 + width: 0x41 name: t_to_eop_filter - width: 0x65 - width: 0x65 + width: 0x78 + width: 0x78 name: t_mmp - width: 0x66 + width: 0x79 t_mmpDropMask: members: - doc: null @@ -9919,17 +11947,20 @@ hwconf: name: mmpValid width: 1 - doc: null - hi: 2 + hi: 3 lo: 1 name: mmpPtr - width: 2 + width: 3 - doc: null - hi: 3 - lo: 3 + hi: 4 + lo: 4 name: mmpOrder width: 1 name: t_mmpInit - width: 4 + width: 5 + t_mmp_order: + name: t_mmp_order + width: 1 t_mplsCos2Color: members: - doc: null @@ -9942,18 +11973,15 @@ hwconf: t_mplsCos2Queue: members: - doc: null - hi: 1 + hi: 2 lo: 0 name: pQueue - width: 2 + width: 3 name: t_mplsCos2Queue - width: 2 + width: 3 t_nrOfIngressVlans: name: t_nrOfIngressVlans width: 2 - t_order: - name: t_order - width: 1 t_pcp: name: t_pcp width: 3 @@ -9998,6 +12026,9 @@ hwconf: width: 1 name: t_pktInfo width: 4 + t_pktSize: + name: t_pktSize + width: 14 t_port: name: t_port width: 3 @@ -10013,44 +12044,51 @@ hwconf: t_portSpt: name: t_portSpt width: 15 - t_prio2Queue: + t_port_attribute_refresh: members: - doc: null - hi: 1 + hi: 2 lo: 0 - name: pQueue - width: 2 - name: t_prio2Queue - width: 2 - t_psfpStatus: + name: data + width: 3 + name: t_port_attribute_refresh + width: 3 + t_port_attributes: members: - doc: null - hi: 0 + hi: 5 lo: 0 - name: psfpEn - width: 1 - - doc: null - hi: 4 - lo: 1 - name: gateId - width: 4 + name: data + width: 6 + name: t_port_attributes + width: 6 + t_port_select_refresh: + members: - doc: null - hi: 5 - lo: 5 - name: gateClosed - width: 1 + hi: 2 + lo: 0 + name: data + width: 3 + name: t_port_select_refresh + width: 3 + t_port_selection: + members: - doc: null hi: 8 - lo: 6 - name: filterId - width: 3 + lo: 0 + name: data + width: 9 + name: t_port_selection + width: 9 + t_prio2Queue: + members: - doc: null - hi: 15 - lo: 9 - name: l2Bytes - width: 7 - name: t_psfpStatus - width: 0x10 + hi: 2 + lo: 0 + name: pQueue + width: 3 + name: t_prio2Queue + width: 3 t_psfp_info: members: - doc: null @@ -10059,32 +12097,51 @@ hwconf: name: psfpEn width: 1 - doc: null - hi: 3 + hi: 4 lo: 1 name: filterId - width: 3 + width: 4 - doc: null - hi: 7 - lo: 4 + hi: 8 + lo: 5 name: gateId width: 4 - doc: null - hi: 8 - lo: 8 + hi: 9 + lo: 9 name: gateClosed width: 1 - doc: null - hi: 15 - lo: 9 - name: l2Bytes - width: 7 + hi: 0x11 + lo: 10 + name: msduHeaderBytes + width: 8 - doc: null - hi: 0x2f - lo: 0x10 + hi: 0x31 + lo: 0x12 name: maxMSDU width: 0x20 + - doc: null + hi: 0x3f + lo: 0x32 + name: maxSDU + width: 14 + - doc: null + hi: 0x40 + lo: 0x40 + name: blockingEn + width: 1 name: t_psfp_info - width: 0x30 + width: 0x41 + t_ptp_ctrl: + members: + - doc: Take a timestamp in the TX MAC and send it to software. The packet is not modified. + hi: 0 + lo: 0 + name: upd_ts + width: 1 + name: t_ptp_ctrl + width: 1 t_qos: members: - doc: null @@ -10093,61 +12150,374 @@ hwconf: name: pcp_prio width: 3 - doc: null - hi: 4 + hi: 5 lo: 3 name: pcp_queue - width: 2 + width: 3 - doc: null - hi: 6 - lo: 5 - name: queue + hi: 8 + lo: 6 + name: queue + width: 3 + - doc: null + hi: 10 + lo: 9 + name: color + width: 2 + name: t_qos + width: 11 + t_qos_color: + members: + - doc: null + hi: 7 + lo: 0 + name: data + width: 8 + name: t_qos_color + width: 8 + t_queue: + name: t_queue + width: 3 + t_queue_on: + members: + - doc: null + hi: 7 + lo: 0 + name: q_on + width: 8 + name: t_queue_on + width: 8 + t_send2Cpu: + members: + - doc: null + hi: 4 + lo: 0 + name: allowBpdu + width: 5 + - doc: null + hi: 9 + lo: 5 + name: allowRstBpdu + width: 5 + - doc: null + hi: 14 + lo: 10 + name: uniqueCpuMac + width: 5 + - doc: null + hi: 0x3e + lo: 15 + name: cpuMacAddr + width: 0x30 + name: t_send2Cpu + width: 0x3f + t_smon: + members: + - doc: null + hi: 3 + lo: 0 + name: pktInfo + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: pktId + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: fullPort + width: 3 + name: t_pktId + width: 3 + width: 3 + - doc: null + hi: 3 + lo: 3 + name: update + width: 1 + name: t_pktInfo + width: 4 + width: 4 + - doc: null + hi: 4 + lo: 4 + name: hit + width: 1 + - doc: null + hi: 5 + lo: 5 + name: setNr + width: 1 + - doc: null + hi: 8 + lo: 6 + name: pcp + width: 3 + - doc: null + hi: 0x10 + lo: 9 + name: srcBytes + width: 8 + name: t_smon + width: 0x11 + t_smonCam: + members: + - doc: null + hi: 2 + lo: 0 + name: srcPort + width: 3 + - doc: null + hi: 14 + lo: 3 + name: vid + width: 12 + name: t_smonCam + width: 15 + t_smonStatistics: + members: + - doc: null + hi: 0 + lo: 0 + name: valid + width: 1 + - doc: null + hi: 0x11 + lo: 1 + name: data + structure: + members: + - doc: null + hi: 3 + lo: 0 + name: pktInfo + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: pktId + structure: + members: + - doc: null + hi: 2 + lo: 0 + name: fullPort + width: 3 + name: t_pktId + width: 3 + width: 3 + - doc: null + hi: 3 + lo: 3 + name: update + width: 1 + name: t_pktInfo + width: 4 + width: 4 + - doc: null + hi: 4 + lo: 4 + name: hit + width: 1 + - doc: null + hi: 5 + lo: 5 + name: setNr + width: 1 + - doc: null + hi: 8 + lo: 6 + name: pcp + width: 3 + - doc: null + hi: 0x10 + lo: 9 + name: srcBytes + width: 8 + name: t_smon + width: 0x11 + width: 0x11 + name: t_smonStatistics + width: 0x12 + t_spDstMask: + members: + - doc: null + hi: 0 + lo: 0 + name: dropUnknownDa + width: 1 + name: t_spDstMask + width: 1 + t_spLearn: + members: + - doc: null + hi: 0 + lo: 0 + name: learningEn + width: 1 + - doc: null + hi: 1 + lo: 1 + name: learnMulticastSaMac + width: 1 + name: t_spLearn + width: 2 + t_spQos: + members: + - doc: null + hi: 0 + lo: 0 + name: defaultCfiDei + width: 1 + - doc: null + hi: 1 + lo: 1 + name: colorFromL3 + width: 1 + name: t_spQos + width: 2 + t_spQueue: + members: + - doc: null + hi: 2 + lo: 0 + name: defaultPcp + width: 3 + - doc: null + hi: 3 + lo: 3 + name: prioFromL3 + width: 1 + name: t_spQueue + width: 4 + t_spVlan: + members: + - doc: null + hi: 1 + lo: 0 + name: vlanAssignment + width: 2 + - doc: null + hi: 13 + lo: 2 + name: defaultVid + width: 12 + - doc: null + hi: 14 + lo: 14 + name: defaultCfiDei + width: 1 + - doc: null + hi: 0x11 + lo: 15 + name: defaultPcp + width: 3 + - doc: null + hi: 0x13 + lo: 0x12 + name: minAllowedVlans + width: 2 + - doc: null + hi: 0x15 + lo: 0x14 + name: maxAllowedVlans + width: 2 + - doc: null + hi: 0x16 + lo: 0x16 + name: ignoreVlanMembership + width: 1 + name: t_spVlan + width: 0x17 + t_spVlanOp: + members: + - doc: null + hi: 2 + lo: 0 + name: vlanSingleOp + structure: + enum: + nop: 0 + pop: 3 + popAll: 4 + push: 2 + swap: 1 + name: e_vlanSingleOp + width: 3 + width: 3 + - doc: null + hi: 4 + lo: 3 + name: vidSel + structure: + enum: + useNew: 1 + useOther: 2 + usePkt: 0 + usePrev: 3 + name: e_vlanSel + width: 2 + width: 2 + - doc: null + hi: 6 + lo: 5 + name: cfiDeiSel + structure: + enum: + useNew: 1 + useOther: 2 + usePkt: 0 + usePrev: 3 + name: e_vlanSel + width: 2 width: 2 - doc: null hi: 8 lo: 7 - name: color + name: pcpSel + structure: + enum: + useNew: 1 + useOther: 2 + usePkt: 0 + usePrev: 3 + name: e_vlanSel + width: 2 width: 2 - name: t_qos - width: 9 - t_queue: - name: t_queue - width: 2 - t_queue_on: - members: - - doc: null - hi: 3 - lo: 0 - name: q_on - width: 4 - name: t_queue_on - width: 4 - t_send2Cpu: - members: - doc: null - hi: 4 - lo: 0 - name: allowBpdu - width: 5 + hi: 10 + lo: 9 + name: typeSel + structure: + enum: + cVlan: 0 + none: 3 + sVlan: 1 + user: 2 + name: e_vType + width: 2 + width: 2 - doc: null - hi: 9 - lo: 5 - name: allowRstBpdu - width: 5 + hi: 0x16 + lo: 11 + name: defaultVid + width: 12 - doc: null - hi: 14 - lo: 10 - name: uniqueCpuMac - width: 5 + hi: 0x17 + lo: 0x17 + name: defaultCfiDei + width: 1 - doc: null - hi: 0x3e - lo: 15 - name: cpuMacAddr - width: 0x30 - name: t_send2Cpu - width: 0x3f - t_slicePort: - name: t_slicePort - width: 3 + hi: 0x1a + lo: 0x18 + name: defaultPcp + width: 3 + name: t_spVlanOp + width: 0x1b t_spanningTree: name: t_spanningTree width: 3 @@ -10179,13 +12549,13 @@ hwconf: name: useAcl width: 1 - doc: null - hi: 5 + hi: 8 lo: 5 name: aclRule - width: 1 + width: 4 - doc: null - hi: 8 - lo: 6 + hi: 11 + lo: 9 name: vlanSingleOp structure: enum: @@ -10198,8 +12568,8 @@ hwconf: width: 3 width: 3 - doc: null - hi: 10 - lo: 9 + hi: 13 + lo: 12 name: vidSel structure: enum: @@ -10211,8 +12581,8 @@ hwconf: width: 2 width: 2 - doc: null - hi: 12 - lo: 11 + hi: 15 + lo: 14 name: cfiDeiSel structure: enum: @@ -10224,8 +12594,8 @@ hwconf: width: 2 width: 2 - doc: null - hi: 14 - lo: 13 + hi: 0x11 + lo: 0x10 name: pcpSel structure: enum: @@ -10237,8 +12607,8 @@ hwconf: width: 2 width: 2 - doc: null - hi: 0x10 - lo: 15 + hi: 0x13 + lo: 0x12 name: typeSel structure: enum: @@ -10250,55 +12620,70 @@ hwconf: width: 2 width: 2 - doc: null - hi: 0x12 - lo: 0x11 + hi: 0x15 + lo: 0x14 name: vlanAssignment width: 2 - doc: null - hi: 0x1e - lo: 0x13 + hi: 0x21 + lo: 0x16 name: defaultVid width: 12 - doc: null - hi: 0x1f - lo: 0x1f + hi: 0x22 + lo: 0x22 name: defaultCfiDei width: 1 - doc: null - hi: 0x22 - lo: 0x20 + hi: 0x25 + lo: 0x23 name: defaultPcp width: 3 - doc: null - hi: 0x24 - lo: 0x23 + hi: 0x27 + lo: 0x26 name: minAllowedVlans width: 2 - doc: null - hi: 0x26 - lo: 0x25 + hi: 0x29 + lo: 0x28 name: maxAllowedVlans width: 2 - doc: null - hi: 0x27 - lo: 0x27 + hi: 0x2a + lo: 0x2a name: ignoreVlanMembership width: 1 - doc: null - hi: 0x28 - lo: 0x28 + hi: 0x2b + lo: 0x2b name: learnMulticastSaMac width: 1 - doc: null - hi: 0x2b - lo: 0x29 + hi: 0x2e + lo: 0x2c name: spt width: 3 + - doc: null + hi: 0x2f + lo: 0x2f + name: enableDefaultPortAcl + width: 1 + - doc: null + hi: 0x30 + lo: 0x30 + name: forcePortAclAction + width: 1 + - doc: null + hi: 0x32 + lo: 0x31 + name: preLookupAclBits + width: 2 name: t_srcPortMem - width: 0x2c + width: 0x33 t_srcSize: name: t_srcSize - width: 7 + width: 8 t_stream2Frer: members: - doc: null @@ -10308,87 +12693,60 @@ hwconf: width: 4 name: t_stream2Frer width: 4 - t_streamFilter: + t_streamFilterInstance: members: - doc: null - hi: 0 + hi: 3 lo: 0 - name: enable - width: 1 - - doc: null - hi: 1 - lo: 1 - name: compareStreamHandle - width: 1 - - doc: null - hi: 6 - lo: 2 - name: streamHandle - width: 5 - - doc: null - hi: 7 - lo: 7 - name: comparePriority - width: 1 - - doc: null - hi: 10 - lo: 8 - name: priority - width: 3 - - doc: null - hi: 14 - lo: 11 name: gateId width: 4 - doc: null - hi: 15 - lo: 15 + hi: 4 + lo: 4 name: mmpValid width: 1 - doc: null - hi: 0x11 - lo: 0x10 + hi: 7 + lo: 5 name: mmpPtr - width: 2 + width: 3 - doc: null - hi: 0x12 - lo: 0x12 + hi: 8 + lo: 8 name: mmpOrder width: 1 - name: t_streamFilter - width: 0x13 - t_toCpuReason: - name: t_toCpuReason - width: 7 - t_toIrcInfo: + - doc: null + hi: 0x16 + lo: 9 + name: maxSDU + width: 14 + - doc: null + hi: 0x17 + lo: 0x17 + name: blockingEn + width: 1 + name: t_streamFilterInstance + width: 0x18 + t_streamFilterLookup: members: - doc: null hi: 0 lo: 0 - name: isHeader + name: valid width: 1 - doc: null - hi: 1 + hi: 4 lo: 1 - name: enable - width: 1 - - doc: null - hi: 8 - lo: 2 - name: srcBytes - width: 7 - - doc: null - hi: 11 - lo: 9 - name: srcSlicePort - width: 3 - - doc: null - hi: 13 - lo: 12 - name: srcQueue - width: 2 - name: t_toIrcInfo - width: 14 + name: filterId + width: 4 + name: t_streamFilterLookup + width: 5 + t_timestamp: + name: t_timestamp + width: 0x50 + t_toCpuReason: + name: t_toCpuReason + width: 9 t_toMbscInfo: members: - doc: null @@ -10397,42 +12755,42 @@ hwconf: name: portMask width: 5 - doc: null - hi: 11 + hi: 12 lo: 5 name: srcBytes - width: 7 + width: 8 - doc: null - hi: 14 - lo: 12 + hi: 15 + lo: 13 name: srcPort width: 3 - - doc: null - hi: 15 - lo: 15 - name: isFloodingMc - width: 1 - doc: null hi: 0x10 lo: 0x10 - name: isFloodingUc + name: isFloodingMc width: 1 - doc: null hi: 0x11 lo: 0x11 - name: isL2Multicast + name: isFloodingUc width: 1 - doc: null hi: 0x12 lo: 0x12 - name: isL2Broadcast + name: isL2Multicast width: 1 - doc: null hi: 0x13 lo: 0x13 + name: isL2Broadcast + width: 1 + - doc: null + hi: 0x14 + lo: 0x14 name: isHeader width: 1 name: t_toMbscInfo - width: 0x14 + width: 0x15 t_to_eop_filter: members: - doc: null @@ -10460,23 +12818,23 @@ hwconf: name: isTail width: 1 - doc: null - hi: 11 + hi: 12 lo: 5 name: srcBytes - width: 7 - - doc: null - hi: 0x10 - lo: 12 + width: 8 + - doc: null + hi: 0x11 + lo: 13 name: dropMask width: 5 - doc: null - hi: 0x12 - lo: 0x11 + hi: 0x13 + lo: 0x12 name: color width: 2 - doc: null - hi: 0x34 - lo: 0x13 + hi: 0x36 + lo: 0x14 name: eopPtr structure: members: @@ -10486,13 +12844,13 @@ hwconf: name: ingressValid width: 1 - doc: null - hi: 2 + hi: 3 lo: 1 name: ingressPtr - width: 2 + width: 3 - doc: null - hi: 0x21 - lo: 3 + hi: 0x22 + lo: 4 name: frer structure: members: @@ -10535,11 +12893,11 @@ hwconf: width: 0x1f width: 0x1f name: t_eop_ptr - width: 0x22 - width: 0x22 + width: 0x23 + width: 0x23 - doc: null - hi: 0x64 - lo: 0x35 + hi: 0x77 + lo: 0x37 name: psfpInfo structure: members: @@ -10549,44 +12907,54 @@ hwconf: name: psfpEn width: 1 - doc: null - hi: 3 + hi: 4 lo: 1 name: filterId - width: 3 + width: 4 - doc: null - hi: 7 - lo: 4 + hi: 8 + lo: 5 name: gateId width: 4 - doc: null - hi: 8 - lo: 8 + hi: 9 + lo: 9 name: gateClosed width: 1 - doc: null - hi: 15 - lo: 9 - name: l2Bytes - width: 7 + hi: 0x11 + lo: 10 + name: msduHeaderBytes + width: 8 - doc: null - hi: 0x2f - lo: 0x10 + hi: 0x31 + lo: 0x12 name: maxMSDU width: 0x20 + - doc: null + hi: 0x3f + lo: 0x32 + name: maxSDU + width: 14 + - doc: null + hi: 0x40 + lo: 0x40 + name: blockingEn + width: 1 name: t_psfp_info - width: 0x30 - width: 0x30 + width: 0x41 + width: 0x41 name: t_to_eop_filter - width: 0x65 + width: 0x78 t_unit_cnt: members: - doc: null - hi: 0x19 + hi: 0x16 lo: 0 name: data - width: 0x1a + width: 0x17 name: t_unit_cnt - width: 0x1a + width: 0x17 t_untaggedVlan2Color: members: - doc: null @@ -10609,12 +12977,12 @@ hwconf: name: forceQueue width: 1 - doc: null - hi: 2 + hi: 3 lo: 1 name: eQueue - width: 2 + width: 3 name: t_untaggedVlan2Queue - width: 3 + width: 4 t_vid: name: t_vid width: 12 @@ -10713,18 +13081,18 @@ hwconf: name: mmpValid width: 1 - doc: null - hi: 8 + hi: 9 lo: 7 name: mmpPtr - width: 2 + width: 3 - doc: null - hi: 9 - lo: 9 + hi: 10 + lo: 10 name: mmpOrder width: 1 - doc: null - hi: 12 - lo: 10 + hi: 13 + lo: 11 name: vlanSingleOp structure: enum: @@ -10737,8 +13105,8 @@ hwconf: width: 3 width: 3 - doc: null - hi: 14 - lo: 13 + hi: 15 + lo: 14 name: vidSel structure: enum: @@ -10750,8 +13118,8 @@ hwconf: width: 2 width: 2 - doc: null - hi: 0x10 - lo: 15 + hi: 0x11 + lo: 0x10 name: cfiDeiSel structure: enum: @@ -10763,8 +13131,8 @@ hwconf: width: 2 width: 2 - doc: null - hi: 0x12 - lo: 0x11 + hi: 0x13 + lo: 0x12 name: pcpSel structure: enum: @@ -10776,23 +13144,23 @@ hwconf: width: 2 width: 2 - doc: null - hi: 0x1e - lo: 0x13 + hi: 0x1f + lo: 0x14 name: vid width: 12 - doc: null - hi: 0x21 - lo: 0x1f + hi: 0x22 + lo: 0x20 name: pcp width: 3 - doc: null - hi: 0x22 - lo: 0x22 + hi: 0x23 + lo: 0x23 name: cfiDei width: 1 - doc: null - hi: 0x24 - lo: 0x23 + hi: 0x25 + lo: 0x24 name: typeSel structure: enum: @@ -10804,7 +13172,25 @@ hwconf: width: 2 width: 2 name: t_vlanTable - width: 0x25 + width: 0x26 + t_vlan_attributes: + members: + - doc: null + hi: 9 + lo: 0 + name: data + width: 10 + name: t_vlan_attributes + width: 10 + t_vlan_selection: + members: + - doc: null + hi: 5 + lo: 0 + name: data + width: 6 + name: t_vlan_selection + width: 6 t_vlan_table_ptr: name: t_vlan_table_ptr width: 12 @@ -10822,6 +13208,7 @@ hwconf: ipp_conf_output_flop: 0 ipp_fsm: false ipp_fsm_config: {} + ipp_gated_flops: null ipp_implicit_valid: false ipp_input_flops: 0 ipp_module_split: null @@ -10873,6 +13260,7 @@ hwconf: learning_limit: true learning_rate: 1 learning_repeat_check: true + legacy_erm: false legacy_interfaces: false lib_path: - pktprog/pac1/lib/ @@ -10949,6 +13337,9 @@ hwconf: - 0xa0 mac_mode: - phy: null + ptp: + - 2_step_only + - rx_ptp_if type: axis macif_ifranges: {} macif_portranges: @@ -10995,11 +13386,11 @@ hwconf: - 8 - 8 - 1 - max_cells_per_packet: 0x100 - max_jumbo_bytes: 0x3ff3 + max_cells_per_packet: 0x80 + max_jumbo_bytes: 0x3ff2 max_port_bw: 0x2710 - max_queues_per_port: 4 - max_queues_per_port_w: 2 + max_queues_per_port: 8 + max_queues_per_port_w: 3 max_slice_ports_no_internal: 5 max_source_id: 4 max_source_id_w: 3 @@ -11016,8 +13407,8 @@ hwconf: memory_disable_2c_ip: true memory_ecc_list: [] memory_ecc_min_size: null - memory_flop_dlimit: 8 - memory_flop_limit: 0x800 + memory_flop_dlimit: null + memory_flop_limit: null memory_force_in_or_out_flop: 0 memory_force_input_flop: 0 memory_force_output_flop: 0 @@ -11029,9 +13420,9 @@ hwconf: memory_pre_load: 1 memory_target: all merged_multislice: false - mesh_cells_required: 0x11e + mesh_cells_required: 0x8f mesh_max_pkt: 0x641 - mesh_no_overlap_max_pkt: 0x3fc5 + mesh_no_overlap_max_pkt: 0x641 mesh_nr_of_ports: 5 mesh_port_mask: 0x1f mesh_port_mode: all @@ -11042,12 +13433,18 @@ hwconf: bank_latency: 4 bucket_w: 0x10 delta_w: 0x10 + egress_gate_time_flops: 0 + eop_input_latency: 1 feed_latency: 1 frer_latency: 1 + frer_stat_flops: 1 + ingress_gate_time_flops: 1 per_entry_counter: false read_latency: 3 slice_mmp: 1 sply_latency: 1 + stat_update_flops: 1 + tcnt_w: 0x3b token_w: 12 top_mmp: 0 wb_latency: 1 @@ -11072,30 +13469,33 @@ hwconf: nr_of_nonspps_ports: 0 nr_of_pb: 1 nr_of_ports: 5 - nr_of_prios: null + nr_of_prios: 8 + nr_of_qe: 1 nr_of_refclk: 2 - nr_of_rm_mc_queues: 1 + nr_of_rm_mc_queues: 8 nr_of_stitchers: 3 nr_of_throw_engines: 4 - obs_level: 1 + obs_level: 0 obs_level_rtl: - 1: c + 1: id 2: id 3: id oinfo_slice_max_w: - - 0 + - 1 oinfo_w: - - 0 - - 0 - - 0 - - 0 - - 0 + - 1 + - 1 + - 1 + - 1 + - 1 only_axis_mode: true only_cell_mode: false only_compile: false only_mac_mode: true out_dir_path: ../../ pac3: true + pac3_epp_options: [] + pac3_ipp_options: [] pac3_options: [] pac3_warn_error: false pac_conf_reload: 1 @@ -11121,6 +13521,7 @@ hwconf: packets_queued_w: 0 pacopt_delay_line: 0x7d0 pacopt_epp_delay_line: 0x7d0 + pacopt_epp_options: null pacopt_epp_target_delay: 0x258 pacopt_ipp_options: null pacopt_options: @@ -11131,11 +13532,11 @@ hwconf: parallel_pfc_interface: false pb_bm_flops: 0 pb_depth: - - 0x400 + - 0x800 pb_epp_flops: 0 pb_halt_flops: 0 pb_input_flops: 0 - pb_rq_if_w: 14 + pb_rq_if_w: 15 pb_write_flops: 0 pcnt_edge: false pcnt_flops: 0 @@ -11187,7 +13588,7 @@ hwconf: - null pipeline_mac2sp: 0 pktFieldList: - - desc: Type of L2 Packet . \newline bit [0] If the packet has a SNAP header. \newline bit [1] If the L2 packet has a PPPoE header with Ethernet Type==0x8863. \newline bit [2] If the L2 packet has a PPPoE header with Ethernet Type==0x8864.\newline bit [3] If the packet is a PPPoE but the carried type is not IPv4 or IPv6. + - desc: Type of L2 Packet . \newline bit [0] If the packet has a SNAP header. \newline bit [1] If the L2 packet has a PPPoE header with Ethernet Type==0x8863. \newline bit [2] If the L2 packet has a PPPoE header with Ethernet Type==0x8864.\newline bit [3] If the packet is PPPoE but the carried type is not IPv4 or IPv6. name: L2 Packet Flags size: 4 valid: null @@ -11217,7 +13618,7 @@ hwconf: size: 0x30 valid: null variable: DA_MAC - - desc: The packets source MAC address + - desc: The packet's source MAC address name: MAC SA size: 0x30 valid: null @@ -11325,7 +13726,7 @@ hwconf: - desc: IPv4 Type-Of-Service (TOS) or IPv6 Traffic Class byte. name: TOS size: 8 - valid: When packet is a IPv4 or IPv6 + valid: When packet is an IPv4 or IPv6 variable: TOS - desc: IPv4, IPv6 or MPLS Time-To-Live (TTL) byte. name: TTL @@ -11335,12 +13736,12 @@ hwconf: - desc: ESP or AH SPI. name: IPSEC SPI size: 0x20 - valid: When packet is a IPv4 or IPv6 and has AH or ESP L4 Header. + valid: When packet is an IPv4 or IPv6 and has AH or ESP L4 Header. variable: IPSEC - desc: ESP or AH sequence number. name: IPSEC SEQ size: 0x20 - valid: When packet is a IPv4 or IPv6 and has AH or ESP L4 Header. + valid: When packet is an IPv4 or IPv6 and has AH or ESP L4 Header. variable: IPSEC_SEQ - desc: "When a frame with an explicit SCI is expected, program the value according to the following pseudo code:\n \\begin{alltt}\n if (pkt.SecTag.SC)\n MACsec_key = pkt.SecTag.SCI\n else if (pkt.SecTag.ES and pkt.SecTag.SCB)\n MACsec_key = {pkt.MAC_SA, 0x0000}\n else if (pkt.SecTag.ES and not pkt.SecTag.SCB)\n MACsec_key = {pkt.MAC_SA, 0x0001}\n else [if (not pkt.SecTag.ES)]\n MACsec_key = 0xFFFF_FFFF_FFFF_FFFF. \\end{alltt}" name: MACsec Key @@ -11355,12 +13756,12 @@ hwconf: - desc: L4 TCP or UDP packets source port. name: L4 Source Port size: 0x10 - valid: When packet is a IPv4 or IPv6 and UDP or TCP L4 protocol is present + valid: When packet is an IPv4 or IPv6 and UDP or TCP L4 protocol is present variable: L4_SP - desc: L4 TCP or UDP packets destination port. name: L4 Destination Port size: 0x10 - valid: When packet is a IPv4 or IPv6 and UDP or TCP L4 protocol is present + valid: When packet is an IPv4 or IPv6 and UDP or TCP L4 protocol is present variable: L4_DP - desc: The MLD headers Multicast Address field. name: MLD Address @@ -11404,12 +13805,12 @@ hwconf: variable: GID - desc: The internal ingress VID assigned to the packet. name: VID - size: 5 + size: 12 valid: null variable: VID - desc: If a packet uses a multicast pointer (To the L2 Multicast table) then this is the pointer value. name: L2 Multicast Pointer - size: 3 + size: 5 valid: When a L2 or L3 router points to a L2 Multicast entry. variable: L2MC_PTR - desc: Packet gets a pointer to a L2 Multicast entry. @@ -11425,9 +13826,9 @@ hwconf: - desc: IPv4, IPv6 L4 protocol type byte. name: L4 Protocol size: 8 - valid: When packet is a IPv4 or IPv6 + valid: When packet is an IPv4 or IPv6 variable: L3_PROTO - - desc: The packets Ethernet Type after VLANs. + - desc: The packet's Ethernet Type after VLANs. name: Ethernet Type size: 0x10 valid: null @@ -11460,10 +13861,9 @@ hwconf: pkt_age_config: null pkt_edge_statistics: false pkt_length_mac_mode: false - pkt_length_mode: true pkt_length_w: 14 pkt_protocol_cnt_width: 0x20 - pkt_protocol_filters: false + pkt_protocol_filters: true pm_pipelining: 0 port2bridge: - 0 @@ -11511,30 +13911,30 @@ hwconf: - 2 - 3 port_core_cell_cycles: - - 4.40625 - - 4.40625 - - 4.40625 - - 4.40625 - - 44.0625 + - 7.60625 + - 7.60625 + - 7.60625 + - 7.60625 + - 76.0625 port_core_cell_cycles_ceil: - - 5 - - 5 - - 5 - - 5 - - 0x2d + - 8 + - 8 + - 8 + - 8 + - 0x4d port_core_cell_cycles_int: - - 5 - - 5 - - 5 - - 5 - - 0x2d - - 0x2c + - 8 + - 8 + - 8 + - 8 + - 0x4d + - 0x4c port_core_cell_freq: - - 28.368794326241133 - - 28.368794326241133 - - 28.368794326241133 - - 28.368794326241133 - - 2.8368794326241136 + - 16.433853738701725 + - 16.433853738701725 + - 16.433853738701725 + - 16.433853738701725 + - 1.6433853738701725 port_group_mode: false port_max_distance: - 5 @@ -11549,11 +13949,11 @@ hwconf: - 4 - 0x29 port_queues: - - 4 - - 4 - - 4 - - 4 - - 4 + - 8 + - 8 + - 8 + - 8 + - 8 port_schedule: - - 0 - 1 @@ -11599,7 +13999,7 @@ hwconf: port_scheduler_config: null port_shaper_config: avb: true - bucket_w: 0x12 + bucket_w: 0x14 ifg_w: 8 token_w: 15 port_width: @@ -11613,7 +14013,7 @@ hwconf: ppp_bounds_check: true ppp_bounds_protect: false ppp_latencies: - eopFilter: 5 + eopFilter: 6 ppp_mod: e: - true @@ -11642,25 +14042,25 @@ hwconf: drop_id: 8 drop_pkt: 1 idest_port: 3 - idest_queue: 2 + idest_queue: 3 ifirst: 1 - iinfo: 0x1e - inputCell: 0x200 - ivalid_bytes: 7 - oinfo: 0x19 - outputCell: 0x230 - ovalid_bytes: 7 + iinfo: 0x71 + inputCell: 0x400 + ivalid_bytes: 8 + oinfo: 0x1c + outputCell: 0x478 + ovalid_bytes: 8 port_offset: 3 register_list: + - rg_disableCPUTag + - r_egressVlanTranslation_tcam - rg_egressVlanEthernetTypes - rg_egressVlanTranslation_mask - - r_egressVlanTranslation_tcam - rg_egressVlanTranslation_selection - - rg_disableCPUTag table_list: - r_egressPortMem - - r_portColorRemap - r_mmpColorRemap + - r_portColorRemap - r_queue2PcpCfiDei - r_egressVlanTranslation_large - r_egressVlanTranslation_large @@ -11671,12 +14071,13 @@ hwconf: - external_blocks: - learning external_stage: - egressDropStatisticsBlock: 9 - iRateCtrlReqBlock: 7 - igrPortMibBlock: 9 - ingressGateCtrlBlock: 9 - irlUpdate: 9 - learnBlock: 9 + aclConfStatisticsBlock: 5 + egressDropStatisticsBlock: 8 + igrPortMibBlock: 8 + ingressGateCtrlBlock: 8 + irlUpdate: 8 + learnBlock: 8 + smonStatisticsBlock: 1 inputs: - isource_id - port_offset @@ -11699,74 +14100,74 @@ hwconf: drop_id: 8 drop_pkt: 1 ifirst: 1 - iinfo: 2 + iinfo: 0x53 ilast: 1 - inputCell: 0x200 + inputCell: 0x400 isource_id: 3 - ivalid_bytes: 7 + ivalid_bytes: 8 odest_mask: 5 - odest_queue: 2 + odest_queue: 3 ofirst: 1 - oinfo: 9 - outputCell: 0x260 - ovalid_bytes: 7 + oinfo: 0x5a + outputCell: 0x468 + ovalid_bytes: 8 port_offset: 3 register_list: - - r_srcPortMem - - rg_send2Cpu + - rg_smonCam - rg_ingressVlanEthernetTypes - - rg_ignoreChecksum - - r_mmpInit - - rg_confAclRule - - rg_confAcl_mask + - rg_send2Cpu + - r_srcPortMem + - r_confAclPreLookup - r_confAcl_tcam + - rg_confAcl_mask - rg_confAcl_selection - - rg_ipv4CheckSum - - rg_untaggedVlan2Queue - - r_prio2Queue - - r_ipv4Tos2Queue - - r_ipv6Tos2Queue - - r_mplsCos2Queue - - rg_l3Unknown2Queue + - r_defaultPortAclAction - rg_untaggedVlan2Color - - r_pcpDei2Color - - r_ipv4Tos2Color - - r_ipv6Tos2Color - - r_mplsCos2Color - - rg_l3Unknown2Color - - rg_l2AgeCAM + - rg_ipv4CheckSum - rg_l2CAM + - rg_l2AgeCAM - rg_l2CAM_Mask - r_l2McTable - rg_hairPinSupport + - rg_portMove - rg_egrSpanningTree - rg_forwardFromCPU - - rg_portMove + - rg_floodingAction - rg_queue_on - - rg_streamFilter - - rg_ingressGate - - rg_stream2Frer - - rg_frerConfig + - rg_l3Unknown2Queue + - r_mplsCos2Queue + - r_ipv4Tos2Queue + - r_ipv6Tos2Queue + - rg_untaggedVlan2Queue + - r_prio2Queue + - rg_l3Unknown2Color + - r_mplsCos2Color + - r_ipv4Tos2Color + - r_ipv6Tos2Color + - r_pcpDei2Color - rg_frerSeqNum + - rg_frerConfig - rg_mmpDropMask - - rg_obs_srcPort - - rg_obs_dstPortmask + - r_mmpInit + - rg_ingressGateState + - rg_ingressGateAction - rg_dropOptions table_list: + - rg_confAclRule - r_confAcl_large - r_confAcl_large - r_confAcl_small - r_confAcl_small - r_confAcl_tcam_answer - r_vlanTable - - r_l2DaAge - - r_l2DaAge - - r_l2DaAge - - r_l2DaAge - r_l2DaTable - r_l2DaTable - r_l2DaTable - r_l2DaTable + - r_l2DaAge + - r_l2DaAge + - r_l2DaAge + - r_l2DaAge - r_l2DaDest - r_l2SaTable - r_l2SaTable @@ -11777,7 +14178,10 @@ hwconf: - r_l2SaAge - r_l2SaAge - r_l2SaDest - - r_iRateCtrlType + - r_streamFilterByHandle + - r_streamFilterNoHandle + - r_streamFilterInstance + - r_stream2Frer pre_ippp_stage: false pre_to_post: false pre_to_post_w: 0 @@ -11786,7 +14190,7 @@ hwconf: project: None ps_bridge_config: - - async_full_margin: 4 - depth: 13 + depth: 12 shift_bridge: false synchronous_clock: false - async_full_margin: 4 @@ -11800,15 +14204,10 @@ hwconf: ps_memory_output_flops: 0 ps_tweaks: {} ps_ver: 1 - ptp_mode: false - ptp_tick: - divider_default: 0x7a12 - divider_precision: 8 - divider_width: 0x19 - nr_of_ticks: 5 - step_width: 4 - tick_step: 10 - ptp_tick_debug_pin: 1 + ptp_mode: 2_step + ptp_tick: false + ptp_tick_debug_pin: null + ptp_timer_if: true purge_rstn: 0 qe_link_mode: - link @@ -11826,19 +14225,25 @@ hwconf: OPTIMIZATION_MODE: '"HIGH PERFORMANCE EFFORT"' VERILOG_CONSTANT_LOOP_LIMIT: '70000' queue_config: null + queue_depth_debug: false queue_max: - - 4 - - 4 - - 4 - - 4 - - 4 + - 8 + - 8 + - 8 + - 8 + - 8 queue_offset: - 0 - - 4 - 8 - - 12 - 0x10 - queue_shaper_config: null + - 0x18 + - 0x20 + queue_shaper_config: + avb: true + bucket_w: 0x14 + ifg_w: 8 + prio: true + token_w: 15 rc_flops: 1 rc_pipeline_depth: 0 re_queue: 0 @@ -11850,22 +14255,28 @@ hwconf: next: 3 outPkt: Original incoming packet. c_CONF_ACL_LARGE_REASON_CODE: - addr: 14 + addr: 0x2d descr: The large table in the configurable ingress ACL engine sent the packet to the CPU. hit: Index to rule. - next: 0x4e + next: 0x12d + outPkt: Original incoming packet. + c_CONF_ACL_PORT_REASON_CODE: + addr: 4 + descr: The source port default ACL action sent the packet to the CPU. + hit: Index to source port which sent the packet in. + next: 9 outPkt: Original incoming packet. c_CONF_ACL_SMALL_REASON_CODE: - addr: 6 + addr: 13 descr: The small table in the configurable ingress ACL engine sent the packet to the CPU. hit: Index to rule. - next: 14 + next: 0x2d outPkt: Original incoming packet. c_CONF_ACL_TCAM_REASON_CODE: - addr: 4 + addr: 9 descr: The TCAM in the configurable ingress ACL engine sent the packet to the CPU. hit: Index to rule. - next: 6 + next: 13 outPkt: Original incoming packet. c_DECODER_ERROR: addr: 1 @@ -11885,7 +14296,7 @@ hwconf: hit: N/A next: 4 outPkt: Original incoming packet. - reason_code_addr: 0x4e + reason_code_addr: 0x12d reason_code_type: 0 reason_drop_id_list: [] redirect: false @@ -11904,12 +14315,12 @@ hwconf: c_EMPTY_DEST_DROPID: 1 c_INGRESS_MBSC_DROPID: 2 c_INGRESS_PORT_RATE_LIMITER_DROPID: 3 - c_INGRESS_RATE_CONTROL_DROPID: 4 - c_IP_CHECKSUM_DROPID: 5 - c_L2_LOOKUP_DROPID: 6 - c_MAX_ALLOWED_NR_OF_VLANS_DROPID: 7 - c_MIN_ALLOWED_NR_OF_VLANS_DROPID: 8 - c_NON_VLAN_MEMBER_DROPID: 9 + c_IP_CHECKSUM_DROPID: 4 + c_L2_LOOKUP_DROPID: 5 + c_MAX_ALLOWED_NR_OF_VLANS_DROPID: 6 + c_MIN_ALLOWED_NR_OF_VLANS_DROPID: 7 + c_NON_VLAN_MEMBER_DROPID: 8 + c_PORT_DEFAULT_ACL_DROPID: 9 c_SPANNING_TREE_BLOCKING_DROPID: 10 c_SPANNING_TREE_LEARNING_DROPID: 11 c_SPANNING_TREE_LISTEN_DROPID: 12 @@ -11922,12 +14333,16 @@ hwconf: rtl_coverage: false rx_eop_timestamp: false rx_fifo_bytes: 0 + rx_flops: false + rx_halt: false + rx_ptp_if: true rx_width: - - 0x46 - - 0x46 - - 0x46 - - 0x46 - - 11 + - 0x97 + - 0x97 + - 0x97 + - 0x97 + - 0x5c + save_pkt_length: true serial_pfc_interface: false shared_epp: true shared_ipp: true @@ -11958,11 +14373,11 @@ hwconf: slice_port_offset: - 0 slice_port_queues: - - - 4 - - 4 - - 4 - - 4 - - 4 + - - 8 + - 8 + - 8 + - 8 + - 8 slice_ports: - - 0 - 1 @@ -11976,17 +14391,17 @@ hwconf: - 3 - 4 slice_queue_max: - - - 4 - - 4 - - 4 - - 4 - - 4 + - - 8 + - 8 + - 8 + - 8 + - 8 slice_queue_offset: - - 0 - - 4 - 8 - - 12 - 0x10 + - 0x18 + - 0x20 slice_random: [] slice_random_seed: 0x400 slice_spps_bridges: @@ -12002,22 +14417,22 @@ hwconf: - 3 - 4 slice_total_external_queues: - - 0x14 + - 0x28 slice_total_queues: - - 0x14 + - 0x28 slice_total_spps_queues: - - 0x14 + - 0x28 slices_identical: true source_queue: false sp_bridge_config: - - - depth: 10 + - - depth: 9 shift_bridge: false synchronous_clock: false - depth: 9 shift_bridge: false synchronous_clock: false sp_cell_clock: core - sp_counters: false + sp_counters: true sp_ipp_flops: 0 sp_memory_input_flops: 0 sp_memory_output_flops: 0 @@ -12045,7 +14460,7 @@ hwconf: technology: fpga throw_distance: 3 throw_fifo_depth: - - 0x400 + - 0x800 throw_latency: 1 tick: divider_default: 0x7d00 @@ -12056,24 +14471,23 @@ hwconf: tick_step: 10 tick_flops: 0 token_bucket_debug: - bucketCapacity: true - currentVal: true - threshold: true + bucketCapacity: single + threshold: single top_channel_flops: 0 top_conf_flops: 0 top_debug_flops: 0 top_level_flow: false top_port_flops: 0 - total_external_queues: 0x14 - total_queues: 0x14 - total_spps_queues: 0x14 + total_external_queues: 0x28 + total_queues: 0x28 + total_spps_queues: 0x28 tx_flops: false tx_width: - - 0x46 - - 0x46 - - 0x46 - - 0x46 - - 11 + - 0x47 + - 0x47 + - 0x47 + - 0x47 + - 12 user_scheduler_config: null verbose: true vivado_version: null @@ -12083,10 +14497,13 @@ hwconf: adf: 0x20 hdf: 0x20 ldf: 0x20 - wrr_config: null + wrr_config: + bucket_w: 0x12 + memory_regs: 1 + weight_w: 8 wrr_delay: - 13 - xilinxPart: xcku5p-ffvb676-2-e + xilinxPart: xcku15p-ffve1517-2-i xilinxTransceiver: GTHE2 xilinx_mac_mode: false yml_override: null diff --git a/drivers/net/dsa/pasw/dev-saline/saline-regs.yml b/drivers/net/dsa/pasw/dev-saline/saline-regs.yml index bf6b0a1..c39299a 100644 --- a/drivers/net/dsa/pasw/dev-saline/saline-regs.yml +++ b/drivers/net/dsa/pasw/dev-saline/saline-regs.yml @@ -3,21 +3,21 @@ conf bus 0: Address step: 1 Attributes: - consistency_check - Default value: 0x400 + Default value: 0x800 Description: The number of cells available in the buffer memory for incoming packets. End address: 3 Fields: - - Default value: 0x400 + - Default value: 0x800 Description: Number of free cells. - End bit: 10 + End bit: 11 Name: cells Start bit: 0 - Width: 11 + Width: 12 Number of entries: 1 Short name: rg_buff_avail Start address: 3 Type: r - Width: 11 + Width: 12 Buffer Overflow Drop: Address step: 1 Attributes: @@ -27,7 +27,7 @@ conf bus 0: type: error Default value: 0 Description: Counter for the number of packets dropped due to the shared buffer memory being full.\bmOverflow - End address: 0x1435 + End address: 0x4d72 Fields: - Default value: 0 Description: Number of dropped packets. @@ -37,7 +37,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_count_drop_bm_overflow - Start address: 0x1435 + Start address: 0x4d72 Statistics: block: pb_write name: bmOverflow @@ -49,7 +49,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: This register provides an option to drop the IPv4 packet if its header checksum field has an incorrect value.\ifdef{\texRouting}{The option is only for not routed IPv4 packet. For a routed IPv4 packet, the checksum check is always performed.}{\ifdef{\texAclRouting}{The option is only for not routed IPv4 packet. For a routed IPv4 packet, the checksum check is always performed.}{}} - End address: 0xb17 + End address: 0x3cc9 Fields: - Default value: 0 Description: If set, always calculate the checksum of the received IPv4 packet. If the calculated value does not match the IPv4 checksum field, the packet is dropped. @@ -59,7 +59,7 @@ conf bus 0: Width: 1 Number of entries: 1 Short name: rg_ipv4CheckSum - Start address: 0xb17 + Start address: 0x3cc9 Type: rw Width: 1 Color Remap From Egress Port: @@ -67,7 +67,7 @@ conf bus 0: Attributes: [] Default value: 1 Description: Options for remapping internal packet color to outgoing packet headers. Each egress port has a separate color to field mapping. - End address: 0x15c3 + End address: 0x4f7d Fields: - Default value: 1 Description: \tabFour{Skip remap}{Remap to L3 only}{Remap to L2 only}{Remap to L2 and L3} @@ -96,7 +96,7 @@ conf bus 0: Index: Egress Port Number of entries: 5 Short name: r_portColorRemap_ss0 - Start address: 0x15ba + Start address: 0x4f74 Statistics: null Type: rw Width: 0x25 @@ -105,7 +105,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Options from ingress admission control to remap internal packet color to outgoing packet headers. - End address: 0x15cb + End address: 0x4f73 Fields: - Default value: 0 Description: If set, the \field{Color Remap From Ingress Admission Control}{colorMode} field determines the remap process. Otherwise color remapping based on the ingress admission control is skipped. @@ -138,9 +138,9 @@ conf bus 0: Start bit: 0x23 Width: 3 Index: Meter Pointer - Number of entries: 4 + Number of entries: 8 Short name: r_mmpColorRemap_ss0 - Start address: 0x15c4 + Start address: 0x4f64 Statistics: null Type: rw Width: 0x26 @@ -149,7 +149,7 @@ conf bus 0: Attributes: [] Default value: 0x14007d00 Description: Global register for setting the frequency of the core tick - End address: 4 + End address: 8 Fields: - Default value: 0x7d00 Description: The master Core Tick will be issued once every $rg_tick_div.clkDivider/256$ core clock cycles. If set to zero, there will be no tick. @@ -165,7 +165,7 @@ conf bus 0: Width: 4 Number of entries: 1 Short name: rg_core_tick_div - Start address: 4 + Start address: 8 Type: rw Width: 0x1d Core Tick Select: @@ -173,7 +173,7 @@ conf bus 0: Attributes: [] Default value: 1 Description: Global register for setting clock input to the core tick divider - End address: 5 + End address: 9 Fields: - Default value: 1 Description: 'Select the source clock for the Core Tick divider. 0: disabled, 1: core clock, 2: debug_write_data[0], 3: reserved' @@ -183,18 +183,18 @@ conf bus 0: Width: 2 Number of entries: 1 Short name: rg_core_tick_sel - Start address: 5 + Start address: 9 Type: rw Width: 2 Core Version: Address step: 1 Attributes: - no_default_check - Default value: 0x431d23e - Description: Adress 0 is reserved for the core version. Make sure the register value is the same as the revision number in the front page of the datasheet. + Default value: 0x356b69e6 + Description: Address 0 is reserved for the core version. Make sure the register value is the same as the revision number in the front page of the datasheet. End address: 0 Fields: - - Default value: 0x431d23e + - Default value: 0x356b69e6 Description: Version of the core. End bit: 0x1f Name: version @@ -205,6 +205,205 @@ conf bus 0: Start address: 0 Type: r Width: 0x20 + Current PTP Time: + Address step: 4 + Attributes: + - no_default_check + Default value: 0 + Description: Current PTP time from the external PTP timer interface, encoded as {seconds[47:0], nanoseconds[31:0]}. + End address: 7 + Fields: + - Default value: 0 + Description: Nanoseconds part of the current PTP time. + End bit: 0x1f + Name: nanoseconds + Start bit: 0 + Width: 0x20 + - Default value: 0 + Description: Seconds part of the current PTP time. + End bit: 0x4f + Name: seconds + Start bit: 0x20 + Width: 0x30 + Number of entries: 1 + Short name: rg_ptp_time + Start address: 4 + Type: r + Width: 0x50 + DWRR Bucket Capacity Configuration: + Address step: 1 + Attributes: [] + Default value: 0x3ffff + Description: Token Bucket Capacity Configuration for DWRR + End address: 0x4daf + Fields: + - Default value: 0x3ffff + Description: Capacity of the byte bucket + End bit: 0x11 + Name: bucketCapacity + Start bit: 0 + Width: 0x12 + Index: Egress Ports + Number of entries: 5 + Short name: rg_dwrr_bucket_cap + Start address: 0x4dab + Type: rw + Width: 0x12 + DWRR Bucket Misc Configuration: + Address step: 1 + Attributes: [] + Default value: 0x50b + Description: Bucket Configurations for DWRR + End address: 0x4db4 + Fields: + - Default value: 11 + Description: When the number of bytes in any bucket goes below 2**thr, all buckets mapped to the same prio will be replenished. + End bit: 4 + Name: threshold + Start bit: 0 + Width: 5 + - Default value: 0 + Description: If set the bucket will count packets, if cleared bytes + End bit: 5 + Name: packetsNotBytes + Start bit: 5 + Width: 1 + - Default value: 0x14 + Description: Extra bytes per packet to correct for IFG in byte mode. + End bit: 13 + Name: ifgCorrection + Start bit: 6 + Width: 8 + Index: Egress Ports + Number of entries: 5 + Short name: rg_dwrr_bucket_misc + Start address: 0x4db0 + Type: rw + Width: 14 + DWRR Current Size: + Address step: 8 + Attributes: [] + Default value: 0x40001000040001000040001000040001 + Description: '' + End address: 0x4de6 + Fields: + - Default value: 1 + Description: Number of bytes currently in the bucket of queue 0 + End bit: 0x11 + Name: currentVal0 + Start bit: 0 + Width: 0x12 + - Default value: 1 + Description: Number of bytes currently in the bucket of queue 1 + End bit: 0x23 + Name: currentVal1 + Start bit: 0x12 + Width: 0x12 + - Default value: 1 + Description: Number of bytes currently in the bucket of queue 2 + End bit: 0x35 + Name: currentVal2 + Start bit: 0x24 + Width: 0x12 + - Default value: 1 + Description: Number of bytes currently in the bucket of queue 3 + End bit: 0x47 + Name: currentVal3 + Start bit: 0x36 + Width: 0x12 + - Default value: 1 + Description: Number of bytes currently in the bucket of queue 4 + End bit: 0x59 + Name: currentVal4 + Start bit: 0x48 + Width: 0x12 + - Default value: 1 + Description: Number of bytes currently in the bucket of queue 5 + End bit: 0x6b + Name: currentVal5 + Start bit: 0x5a + Width: 0x12 + - Default value: 1 + Description: Number of bytes currently in the bucket of queue 6 + End bit: 0x7d + Name: currentVal6 + Start bit: 0x6c + Width: 0x12 + - Default value: 1 + Description: Number of bytes currently in the bucket of queue 7 + End bit: 0x8f + Name: currentVal7 + Start bit: 0x7e + Width: 0x12 + Index: Egress Ports + Number of entries: 5 + Short name: dwrr_values_ss0 + Start address: 0x4dbf + Statistics: null + Type: rw + Width: 0x90 + DWRR Weight Configuration: + Address step: 2 + Attributes: [] + Default value: 0x101010101010101 + Description: '' + End address: 0x4dbe + Fields: + - Default value: 1 + Description: The relative weight of queue 0. A queue with weight 0 is not part of the round robin scheduling but will always be selected last. + End bit: 7 + Name: weight0 + Start bit: 0 + Width: 8 + - Default value: 1 + Description: The relative weight of queue 1. A queue with weight 0 is not part of the round robin scheduling but will always be selected last. + End bit: 15 + Name: weight1 + Start bit: 8 + Width: 8 + - Default value: 1 + Description: The relative weight of queue 2. A queue with weight 0 is not part of the round robin scheduling but will always be selected last. + End bit: 0x17 + Name: weight2 + Start bit: 0x10 + Width: 8 + - Default value: 1 + Description: The relative weight of queue 3. A queue with weight 0 is not part of the round robin scheduling but will always be selected last. + End bit: 0x1f + Name: weight3 + Start bit: 0x18 + Width: 8 + - Default value: 1 + Description: The relative weight of queue 4. A queue with weight 0 is not part of the round robin scheduling but will always be selected last. + End bit: 0x27 + Name: weight4 + Start bit: 0x20 + Width: 8 + - Default value: 1 + Description: The relative weight of queue 5. A queue with weight 0 is not part of the round robin scheduling but will always be selected last. + End bit: 0x2f + Name: weight5 + Start bit: 0x28 + Width: 8 + - Default value: 1 + Description: The relative weight of queue 6. A queue with weight 0 is not part of the round robin scheduling but will always be selected last. + End bit: 0x37 + Name: weight6 + Start bit: 0x30 + Width: 8 + - Default value: 1 + Description: The relative weight of queue 7. A queue with weight 0 is not part of the round robin scheduling but will always be selected last. + End bit: 0x3f + Name: weight7 + Start bit: 0x38 + Width: 8 + Index: Egress Ports + Number of entries: 5 + Short name: dwrr_weight_settings_ss0 + Start address: 0x4db5 + Statistics: null + Type: rw + Width: 0x40 Dequeued Bytes: Address step: 1 Attributes: @@ -212,7 +411,7 @@ conf bus 0: name: dequeued Default value: 0 Description: Accumulated dequeued packet sizes in bytes.\dequeued - End address: 0x158a + End address: 0x4f34 Fields: - Default value: 0 Description: Bytes @@ -223,7 +422,7 @@ conf bus 0: Index: Queue + Egress Port * 8 Number of entries: 0x28 Short name: r_dequeued_bytes_ss0 - Start address: 0x1563 + Start address: 0x4f0d Statistics: block: epp_dequeue name: dequeued @@ -236,7 +435,7 @@ conf bus 0: name: dequeued Default value: 0 Description: Accumulated packets dequeued.\dequeued. - End address: 0x15b2 + End address: 0x4f5c Fields: - Default value: 0 Description: Packets @@ -247,7 +446,7 @@ conf bus 0: Index: Queue + Egress Port * 8 Number of entries: 0x28 Short name: r_dequeued_packets_ss0 - Start address: 0x158b + Start address: 0x4f35 Statistics: block: epp_dequeue name: dequeued @@ -257,8 +456,8 @@ conf bus 0: Address step: 1 Attributes: [] Default value: 0 - Description: When a packet is sent to the CPU port normally a To CPU Tag will be added to the packet. This register provides a option to disable the CPU tag - End address: 0x163a + Description: When a packet is sent to the CPU port normally a To CPU Tag will be added to the packet. This register provides an option to disable the CPU tag + End address: 0x4fea Fields: - Default value: 0 Description: When set, the CPU port will no longer add a CPU Tag to packets going to the CPU port. \tabTwo{To CPU Tag enabled}{To CPU Tag disabled} @@ -267,14 +466,14 @@ conf bus 0: Start bit: 0 Width: 1 - Default value: 0 - Description: When set, the CPU port will no longer add a CPU Tag to packets going to the CPU port with reason code 0(default reason). \tabTwo{To CPU Tag enabled}{To CPU Tag disabled} + Description: When set, the CPU port will no longer add a CPU Tag to packets going to the CPU port with reason code 0 (default reason). \tabTwo{To CPU Tag enabled}{To CPU Tag disabled} End bit: 1 Name: disableReason0 Start bit: 1 Width: 1 Number of entries: 1 Short name: rg_disableCPUTag - Start address: 0x163a + Start address: 0x4fea Type: rw Width: 2 Drain Port: @@ -282,7 +481,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Drop all packets on all queues to egress ports. The dropped packets are counted in the \register{Drain Port Drop} counter. - End address: 0x1552 + End address: 0x4efc Fields: - Default value: 0 Description: Egress ports to be drained. One bit for each port in the current switch slice where bit 0 corresponds to local port 0. @@ -292,7 +491,7 @@ conf bus 0: Width: 5 Number of entries: 1 Short name: rg_drain_port - Start address: 0x1552 + Start address: 0x4efc Type: rw Width: 5 Drain Port Drop: @@ -304,7 +503,7 @@ conf bus 0: type: drop Default value: 0 Description: Number of packets dropped due to the port is drained.\drain - End address: 0x1557 + End address: 0x4f01 Fields: - Default value: 0 Description: Number of packets. @@ -315,7 +514,7 @@ conf bus 0: Index: Egress port Number of entries: 5 Short name: rg_drain_drop - Start address: 0x1553 + Start address: 0x4efd Statistics: block: epp_drain name: drain @@ -331,7 +530,7 @@ conf bus 0: type: error Default value: 0 Description: Number of drops due to FIFO overflows in EPP PM. \epmOverflow - End address: 0x1562 + End address: 0x4f0c Fields: - Default value: 0 Description: Number of dropped packets. @@ -341,7 +540,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_count_epp_pm_drop - Start address: 0x1562 + Start address: 0x4f0c Statistics: block: epp_pm name: epmOverflow @@ -356,7 +555,7 @@ conf bus 0: name: eppTxPkt Default value: 0 Description: Number of packet first cells through the Egress Packet Process module.\eppTxPkt - End address: 0x15b3 + End address: 0x4f5d Fields: - Default value: 0 Description: Number of packet headers. @@ -366,7 +565,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_epp_ofirst - Start address: 0x15b3 + Start address: 0x4f5d Statistics: block: epp_out name: eppTxPkt @@ -380,7 +579,7 @@ conf bus 0: name: eppTxPkt Default value: 0 Description: Number of packet last cells through the Egress Packet Process module.\eppTxPkt - End address: 0x15b4 + End address: 0x4f5e Fields: - Default value: 0 Description: Number of packet tails. @@ -390,7 +589,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_epp_olast - Start address: 0x15b4 + Start address: 0x4f5e Statistics: block: epp_out name: eppTxPkt @@ -399,45 +598,45 @@ conf bus 0: ERM Global Guarantees: Address step: 1 Attributes: [] - Default value: 0 + Default value: 0x3c0 Description: Configuration of the guarantees. This register must be set to contain the sum of all guarantees configured in the per-queue settings. - End address: 0x13bc + End address: 0x4cef Fields: - - Default value: 0 + - Default value: 0x3c0 Description: Set to the sum of all per-queue guarantees. - End bit: 10 + End bit: 11 Name: guaranteeSum Start bit: 0 - Width: 11 + Width: 12 Number of entries: 1 Short name: rg_erm_guarantee_sum - Start address: 0x13bc + Start address: 0x4cef Type: rw - Width: 11 + Width: 12 ERM Port Limits: Address step: 1 Attributes: [] - Default value: 0x400 + Default value: 0x800 Description: A packet will not get enqueued when its destined egress port has more than this number of cells enqueued in the buffer memory. - End address: 0x13d5 + End address: 0x4d1c Fields: - - Default value: 0x400 + - Default value: 0x800 Description: Maximum number of cells allowed to be enqueued on all queues of this egress port. - End bit: 10 + End bit: 11 Name: portLimit Start bit: 0 - Width: 11 + Width: 12 Number of entries: 5 Short name: rg_erm_port_limit - Start address: 0x13d1 + Start address: 0x4d18 Type: rw - Width: 11 + Width: 12 Egress Ethernet Type for VLAN tag: Address step: 1 Attributes: [] Default value: 0xffff Description: Ethernet type used in VLAN operations when typeSel selects User Defined VLAN type. This Ethernet type is only used in VLAN push operations. \ifdef{\texEgressPortFilter}{In VLAN filtering a pushed user defined VLAN will be considered to be a C-VLAN.}{} - End address: 0x1637 + End address: 0x4feb Fields: - Default value: 0xffff Description: Ethernet Type value. @@ -447,7 +646,7 @@ conf bus 0: Width: 0x10 Number of entries: 1 Short name: rg_egressVlanEthernetTypes - Start address: 0x1637 + Start address: 0x4feb Type: rw Width: 0x10 Egress Port Configuration: @@ -455,7 +654,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: This table configures various functions that are dependent on which port the packet leaves the switch. - End address: 0x15b9 + End address: 0x4f63 Fields: - Default value: 0 Description: If set, color remapping to outgoing packet headers is allowed. The default color remapping options are based on the egress port number from the \register{Color Remap From Egress Port} table. \ifdef{\texIngressAdmissionControl}{If a packet is subjected to ingress admission control, its ingress admission control pointer can provide remap options from the \register{Color Remap From Ingress Admission Control} table to override default options.}{} @@ -464,25 +663,25 @@ conf bus 0: Start bit: 0 Width: 1 - Default value: 0 - Description: The egress port VLAN operation to perform on the packet. \tabFive{No operation.} {Swap.} {Push.} {Pop.} {Penultimate pop(remove all VLAN headers).} + Description: The egress port VLAN operation to perform on the packet. \tabFive{No operation.} {Swap.} {Push.} {Pop.} {Penultimate pop (remove all VLAN headers).} End bit: 3 Name: vlanSingleOp Start bit: 1 Width: 3 - Default value: 0 - Description: Selects which VID to use when building a new VLAN header in a egress port push or swap operation. If the selected outermost VLAN header doesn't exist in the original packet then this table entry's \field{Egress Port Configuration}{vid} will be used. \tabFour{From outermost VLAN in the original incoming packet (if any).} {From this table entry's \field{Egress Port Configuration}{vid}.} {From the Ingress VID as selected in the \register{Source Port Table}.} {From the outermost VLANs VID after all previous VLAN operations, if packets previous vlan operations resulted in a outgoing packet has no VLAN then this tables entry's vid field will be used.} + Description: "Selects which VID to use when building a new VLAN header in an egress port push or swap operation. If the selected outermost VLAN header doesn't exist in the original packet then this table entry's \\field{Egress Port Configuration}{vid} will be used. \\tabFour{From outermost VLAN in the original incoming packet (if any).} {From this table entry's \\field{Egress Port Configuration}{vid}.} {From the Ingress VID as selected in the \\register{Source Port Table}.} {From the outermost VLANs VID after all previous VLAN operations, if the packet\u2019s previous vlan operations resulted in a outgoing packet that has no VLAN, then this table\u2019s entry\u2019s vid field will be used.}" End bit: 5 Name: vidSel Start bit: 4 Width: 2 - Default value: 0 - Description: Selects which CFI/DEI to use when building a new VLAN header in a egress port push or swap operation. If the selected outermost VLAN header doesn't exist in the original packet then this table entry's \field{Egress Port Configuration}{cfiDei} will be used. \tabFour{From outermost VLAN in the original incoming packet (if any).} {From this table entry's \field{Egress Port Configuration}{cfiDei}.} {From \register{Egress Queue To PCP And CFI/DEI Mapping Table}.} {From the outermost VLANs cfiDei after all previous VLAN operations, if packets previous vlan operations resulted in a outgoing packet has no VLAN then this tables entry's cfiDei field will be used.} + Description: "Selects which CFI/DEI to use when building a new VLAN header in an egress port push or swap operation. If the selected outermost VLAN header doesn't exist in the original packet then this table entry's \\field{Egress Port Configuration}{cfiDei} will be used. \\tabFour{From outermost VLAN in the original incoming packet (if any).} {From this table entry's \\field{Egress Port Configuration}{cfiDei}.} {From \\register{Egress Queue To PCP And CFI/DEI Mapping Table}.} {From the outermost VLAN\u2019s cfiDei after all previous VLAN operations, if the packet\u2019s previous vlan operations resulted in a outgoing packet that has no VLAN, then this table\u2019s entry\u2019s cfiDei field will be used.}" End bit: 7 Name: cfiDeiSel Start bit: 6 Width: 2 - Default value: 0 - Description: Selects which PCP to use when building a new VLAN header in a egress port push or swap operation. If the selected outermost VLAN header doesn't exist in the original packet then this table entry's \field{Egress Port Configuration}{pcp} will be used. \tabFour{From outermost VLAN in the original incoming packet (if any).} {From this table entry's \field{Egress Port Configuration}{pcp}.} {From \register{Egress Queue To PCP And CFI/DEI Mapping Table}.} {From the outermost VLANs PCP after all previous VLAN operations, if packets previous vlan operations resulted in a outgoing packet has no VLAN then this tables entry's pcp field will be used.} + Description: "Selects which PCP to use when building a new VLAN header in an egress port push or swap operation. If the selected outermost VLAN header doesn't exist in the original packet then this table entry's \\field{Egress Port Configuration}{pcp} will be used. \\tabFour{From outermost VLAN in the original incoming packet (if any).} {From this table entry's \\field{Egress Port Configuration}{pcp}.} {From \\register{Egress Queue To PCP And CFI/DEI Mapping Table}.} {From the outermost VLANs PCP after all previous VLAN operations, if the packet\u2019s previous vlan operations resulted in a outgoing packet that has no VLAN, then this tables entry's pcp field will be used.}" End bit: 9 Name: pcpSel Start bit: 8 @@ -526,7 +725,7 @@ conf bus 0: Index: Egress port Number of entries: 5 Short name: r_egressPortMem_ss0 - Start address: 0x15b5 + Start address: 0x4f5f Statistics: null Type: rw Width: 0x1e @@ -536,20 +735,20 @@ conf bus 0: - consistency_check Default value: 0 Description: Number of packets queued in the buffer memory for each egress port. - End address: 0x143a + End address: 0x4d7c Fields: - Default value: 0 Description: Number of packet currently queued. - End bit: 10 + End bit: 11 Name: packets Start bit: 0 - Width: 11 + Width: 12 Index: Egress Port Number of entries: 5 Short name: rm - Start address: 0x1436 + Start address: 0x4d78 Type: r - Width: 11 + Width: 12 Egress Port Disabled Drop: Address step: 1 Attributes: @@ -559,7 +758,7 @@ conf bus 0: type: drop Default value: 0 Description: Number of packets dropped due to egress port disabled.\epppDrop - End address: 0x1561 + End address: 0x4f0b Fields: - Default value: 0 Description: Number of dropped packets. @@ -570,7 +769,7 @@ conf bus 0: Index: Egress port Number of entries: 5 Short name: rg_pac_count_drop_126 - Start address: 0x155d + Start address: 0x4f07 Statistics: block: epp_pip name: epppDrop @@ -583,26 +782,26 @@ conf bus 0: - consistency_check Default value: 0 Description: Number of packets queued in the buffer memory for each egress queue. - End address: 0x1462 + End address: 0x4da4 Fields: - Default value: 0 Description: Number of packets currently queued. - End bit: 10 + End bit: 11 Name: packets Start bit: 0 - Width: 11 + Width: 12 Index: Global queue number Number of entries: 0x28 Short name: rm_dp0 - Start address: 0x143b + Start address: 0x4d7d Type: r - Width: 11 + Width: 12 Egress Queue To PCP And CFI/DEI Mapping Table: Address step: 1 Attributes: [] Default value: 0 Description: Get PCP and CFI/DEI from egress queues if selected by egress port VLAN operations push or swap. - End address: 0x15d3 + End address: 0x4f85 Fields: - Default value: 0 Description: Map from egress queue to CFI/DEI. @@ -619,7 +818,7 @@ conf bus 0: Index: Egress Queue Number of entries: 8 Short name: r_queue2PcpCfiDei_ss0 - Start address: 0x15cc + Start address: 0x4f7e Statistics: null Type: rw Width: 4 @@ -632,7 +831,7 @@ conf bus 0: type: drop Default value: 0 Description: Number of packets dropped by the egress resource manager. \erm - End address: 0x1434 + End address: 0x4d71 Fields: - Default value: 0 Description: Number of packets. @@ -643,74 +842,13 @@ conf bus 0: Index: Egress Port Number of entries: 5 Short name: rg_count_drop_erm - Start address: 0x1430 + Start address: 0x4d6d Statistics: block: pb_in name: erm type: drop Type: rw Width: 0x18 - Egress Resource Manager Pointer: - Address step: 2 - Attributes: [] - Default value: 0 - Description: This table provides each egress port a set of limiters. Different egress queues can have different pointers to the \register{Resource Limiter Set}. - End address: 0x13df - Fields: - - Default value: 0 - Description: Pointer to the \register{Resource Limiter Set} for egress queue 0. - End bit: 4 - Name: q0 - Start bit: 0 - Width: 5 - - Default value: 0 - Description: Pointer to the \register{Resource Limiter Set} for egress queue 1. - End bit: 9 - Name: q1 - Start bit: 5 - Width: 5 - - Default value: 0 - Description: Pointer to the \register{Resource Limiter Set} for egress queue 2. - End bit: 14 - Name: q2 - Start bit: 10 - Width: 5 - - Default value: 0 - Description: Pointer to the \register{Resource Limiter Set} for egress queue 3. - End bit: 0x13 - Name: q3 - Start bit: 15 - Width: 5 - - Default value: 0 - Description: Pointer to the \register{Resource Limiter Set} for egress queue 4. - End bit: 0x18 - Name: q4 - Start bit: 0x14 - Width: 5 - - Default value: 0 - Description: Pointer to the \register{Resource Limiter Set} for egress queue 5. - End bit: 0x1d - Name: q5 - Start bit: 0x19 - Width: 5 - - Default value: 0 - Description: Pointer to the \register{Resource Limiter Set} for egress queue 6. - End bit: 0x22 - Name: q6 - Start bit: 0x1e - Width: 5 - - Default value: 0 - Description: Pointer to the \register{Resource Limiter Set} for egress queue 7. - End bit: 0x27 - Name: q7 - Start bit: 0x23 - Width: 5 - Index: Egress port - Number of entries: 5 - Short name: rg_erm_ptr - Start address: 0x13d6 - Type: rw - Width: 0x28 Egress Spanning Tree Drop: Address step: 1 Attributes: @@ -720,7 +858,7 @@ conf bus 0: type: drop Default value: 0 Description: "Number of packets dropped due to egress spanning tree check\n configured in \\register{Egress Spanning Tree State}\\ifdef{\\texMspt}{ and\n \\register{Egress Multiple Spanning Tree State}}{}\\preEppDrop" - End address: 0x103c + End address: 0x469f Fields: - Default value: 0 Description: Number of dropped packets. @@ -731,7 +869,7 @@ conf bus 0: Index: Egress Port Number of entries: 5 Short name: rg_pac_count_drop_4 - Start address: 0x1038 + Start address: 0x469b Statistics: block: ipp_pip name: preEppDrop @@ -743,7 +881,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Spanning tree state for each egress port. The state Disabled implies that spanning tree protocol is not enabled and hence frames will be forwarded on this egress port. - End address: 0xb1c + End address: 0x3ccb Fields: - Default value: 0 Description: State of the spanning tree protocol. Bit[2:0] is port \#0, bit[5:3] is port \#1 etc. \tabFive{Disabled}{Blocking}{Listening}{Learning}{Forwarding}. @@ -753,7 +891,7 @@ conf bus 0: Width: 15 Number of entries: 1 Short name: rg_egrSpanningTree - Start address: 0xb1c + Start address: 0x3ccb Type: rw Width: 15 Egress Transmission Gate Configuration: @@ -761,7 +899,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Setup configurations for egress transmission gates. Hardware is not aware of the configuration updates unless an update request is triggered by writing 1 to \register{Egress Transmission Gate Update}. The transmission gate execution will start using the new configuration when the current time meets the \field{Egress Transmission Gate Configuration}{adminBaseTime}. - End address: 0x1496 + End address: 0x4e14 Fields: - Default value: 0 Description: Determine the absolute PTP start time of the updated gate cycle. Encode the value as \texttt{\{seconds[47:0], nanoseconds[31:0]\}}; the nanoseconds field must be less than 1,000,000,000. The value needs to be larger than Current Time when an update request is issued. @@ -796,7 +934,7 @@ conf bus 0: Index: Egress Port Number of entries: 5 Short name: rg_config - Start address: 0x146f + Start address: 0x4ded Type: rw Width: 0xfa Egress Transmission Gate Enabled: @@ -804,7 +942,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: All Egress Transmission Gate operations require this register set to 1. - End address: 0x146e + End address: 0x4dec Fields: - Default value: 0 Description: If set, egress transmission gate is enabled. @@ -815,7 +953,7 @@ conf bus 0: Index: Egress Port Number of entries: 5 Short name: rg_gate_en - Start address: 0x146a + Start address: 0x4de8 Type: rw Width: 1 Egress Transmission Gate List: @@ -823,7 +961,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Gate control list. Each entry gives gate status for the current time window, as well as a time interval for counting the execution time before jumping to the next entry. When the total number of executed entries reaches the configured list length but a new gate cycle is not started, the gate status for the last entry will be kept till the restart. - End address: 0x1516 + End address: 0x4e94 Fields: - Default value: 0 Description: Each bit refers to a gate status for the corresponding egress queue. \tabTwo{Packet transmission is allowed.}{Packet transmission is not allowed.} @@ -840,7 +978,7 @@ conf bus 0: Index: Egress Transmission Gate Address Number of entries: 0x20 Short name: r_list_egress_transmission_gate - Start address: 0x1497 + Start address: 0x4e15 Statistics: null Type: rw Width: 0x58 @@ -850,7 +988,7 @@ conf bus 0: - no_random_check Default value: 0 Description: When set to one a configuration update request is issued to the hardware. The set bit is always cleared after one cycle and \register{Egress Transmission Gate Update Status} will be pulled high till the update process is done. - End address: 0x151b + End address: 0x4e99 Fields: - Default value: 0 Description: Issue an update request to load \register{Egress Transmission Gate Configuration} to the hardware. @@ -861,7 +999,7 @@ conf bus 0: Index: Egress Port Number of entries: 5 Short name: rg_update - Start address: 0x1517 + Start address: 0x4e95 Type: rw Width: 1 Egress Transmission Gate Update Status: @@ -870,7 +1008,7 @@ conf bus 0: - no_default_check Default value: 0 Description: For each egress port, showing if a new configuration is pending to be updated. \register{Egress Transmission Gate Configuration} shall not be modified while an update process is pending. - End address: 0x1469 + End address: 0x4de7 Fields: - Default value: 0 Description: 1 means \register{Egress Transmission Gate Update} has been issued and 0 means the update operation is done. @@ -880,7 +1018,7 @@ conf bus 0: Width: 5 Number of entries: 1 Short name: rg_config_pending - Start address: 0x1469 + Start address: 0x4de7 Type: r Width: 5 Egress VLAN Translation Large Table: @@ -888,7 +1026,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: The outermost VID and VID Ethernet Type (Service tag or Customer tag types) of the outgoing packet is compared.. If multiple buckets match then the result from the highest entry is selected. - End address: 0x1613 + End address: 0x4fc5 Fields: - Default value: 0 Description: Is this entry valid. \tabTwo{No}{Yes} @@ -930,7 +1068,7 @@ conf bus 0: Number of entries: 0x20 Number of tables: 2 Short name: r_egressVlanTranslation_large_0_ss0 - Start address: 0x15d4 + Start address: 0x4f86 Statistics: null Type: rw Width: 0x2d @@ -938,8 +1076,8 @@ conf bus 0: Address step: 1 Attributes: [] Default value: 0xffffffff - Description: Before the hashing and searching is done in the \register{Egress VLAN Translation Large Table} and \register{Egress VLAN Translation Small Table} The search data is AND:ed with this mask. If a bit in the mask is set to zero then this bit in the lookup will be viewed as do not care. Seperate masks exists for both small and large tables. - End address: 0x1638 + Description: Before the hashing and searching are done in the \register{Egress VLAN Translation Large Table} and \register{Egress VLAN Translation Small Table} The search data is ANDed with this mask. If a bit in the mask is set to zero then this bit in the lookup will be viewed as do not care. Separate masks exists for both small and large tables. + End address: 0x4fec Fields: - Default value: 7 Description: Which bits to compare in the field dstPort in \register{Egress VLAN Translation Small Table} lookup. A bit set to 1 means the corresponding bit in the search data is compared and 0 means the bit is ignored. @@ -979,7 +1117,7 @@ conf bus 0: Width: 1 Number of entries: 1 Short name: rg_egressVlanTranslation_mask - Start address: 0x1638 + Start address: 0x4fec Type: rw Width: 0x20 Egress VLAN Translation Selection: @@ -987,7 +1125,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: This register selects which result to use when there are multiple hits. - End address: 0x1639 + End address: 0x4fed Fields: - Default value: 0 Description: If set to zero then TCAM answer is selected. If set to one then hash table answer is selected. @@ -1003,7 +1141,7 @@ conf bus 0: Width: 1 Number of entries: 1 Short name: rg_egressVlanTranslation_selection - Start address: 0x1639 + Start address: 0x4fed Type: rw Width: 2 Egress VLAN Translation Small Table: @@ -1011,7 +1149,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: The outermost VID and VID Ethernet Type (Service tag or Customer tag types) of the outgoing packet is compared.. If multiple buckets match then the result from the highest entry is selected. - End address: 0x1633 + End address: 0x4fe5 Fields: - Default value: 0 Description: Is this entry valid. \tabTwo{No}{Yes} @@ -1053,7 +1191,7 @@ conf bus 0: Number of entries: 0x10 Number of tables: 2 Short name: r_egressVlanTranslation_small_0_ss0 - Start address: 0x1614 + Start address: 0x4fc6 Statistics: null Type: rw Width: 0x2d @@ -1062,7 +1200,7 @@ conf bus 0: Attributes: [] Default value: 0x8007ff8e Description: The outermost VID and VID Ethernet Type (Service tag or Customer tag types) of the outgoing packet is compared. - End address: 0x1640 + End address: 0x4ff5 Fields: - Default value: 0 Description: Is this entry valid. \tabTwo{No}{Yes} @@ -1106,9 +1244,9 @@ conf bus 0: Name: outermostVidType Start bit: 0x20 Width: 1 - Number of entries: 3 + Number of entries: 4 Short name: r_egressVlanTranslation_tcam - Start address: 0x163b + Start address: 0x4fee Type: rw Width: 0x21 Egress VLAN Translation TCAM Answer: @@ -1116,7 +1254,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: This is the table holding the answer for the \register{Egress VLAN Translation TCAM}. - End address: 0x1636 + End address: 0x4fe9 Fields: - Default value: 0 Description: The new VID for the outgoing packet. @@ -1131,9 +1269,9 @@ conf bus 0: Start bit: 12 Width: 0x10 Index: \register{Egress VLAN Translation TCAM} hit index - Number of entries: 3 + Number of entries: 4 Short name: r_egressVlanTranslation_tcam_answer_ss0 - Start address: 0x1634 + Start address: 0x4fe6 Statistics: null Type: rw Width: 0x1c @@ -1146,7 +1284,7 @@ conf bus 0: type: drop Default value: 0 Description: Number of packets dropped due to an empty destination port mask.\ipppDrop - End address: 0x176 + End address: 0x178 Fields: - Default value: 0 Description: Number of dropped packets. @@ -1156,7 +1294,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_pac_count_drop_127 - Start address: 0x176 + Start address: 0x178 Statistics: block: ipp_pip name: ipppDrop @@ -1167,8 +1305,8 @@ conf bus 0: Address step: 1 Attributes: [] Default value: 0xff - Description: This register is used to control if a particular port and queue shall be able to enqueue new packets. One queue mask exists for each port, setting a bit in the queue mask means packet is allowed to be queued on the respective queue. Packets that are directed to a queue that is turned off will be dropped and counted in \register{Queue Off Drop}. - End address: 0xb6c + Description: This register is used to control if a particular port and queue shall be able to enqueue new packets. One queue mask exists for each port, setting a bit in the queue mask means a packet is allowed to be queued on the respective queue. Packets that are directed to a queue that is turned off will be dropped and counted in \register{Queue Off Drop}. + End address: 0x416d Fields: - Default value: 0xff Description: If a bit is set, the corresponding queue is on. @@ -1178,7 +1316,7 @@ conf bus 0: Width: 8 Number of entries: 5 Short name: rg_queue_on - Start address: 0xb68 + Start address: 0x4169 Type: rw Width: 8 FRER Configuration: @@ -1186,7 +1324,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Determine the mode for each FRER ID. FRER IDs are mapped from stream handles. Packets with FRER ID in generation mode will be tagged with a redundancy tag when it is out from the core. Packets with FRER ID in recovery mode will be checked to remove the redundant copies. - End address: 0xb3f + End address: 0x3d30 Fields: - Default value: 0 Description: \tabThree{Disabled}{Generation}{Recovery} @@ -1202,7 +1340,7 @@ conf bus 0: Width: 3 Number of entries: 0x10 Short name: rg_frerConfig - Start address: 0xb30 + Start address: 0x3d21 Type: rw Width: 5 FRER Drop: @@ -1214,7 +1352,7 @@ conf bus 0: type: drop Default value: 0 Description: Number of packets dropped due to FRER individual recovery. \frer - End address: 0x13bb + End address: 0x4cee Fields: - Default value: 0 Description: Number of dropped packets. @@ -1224,19 +1362,79 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_count_drop_frer - Start address: 0x13bb + Start address: 0x4cee Statistics: block: ipp_mmp name: frer type: drop Type: rw Width: 0x18 + FRER Individual Recovery Statistics: + Address step: 0x10 + Attributes: + - block: ipp_mmp + name: frer + Default value: 0 + Description: Packet counters of the FRER individual recovery function. + End address: 0x4b9d + Fields: + - Default value: 0 + Description: Number of packets accepted by the recovery function. + End bit: 0x3f + Name: passed + Start bit: 0 + Width: 0x40 + - Default value: 0 + Description: Number of packets dropped by the recovery function due to a duplicated sequence number. + End bit: 0x7f + Name: discarded + Start bit: 0x40 + Width: 0x40 + - Default value: 0 + Description: Number of packets accepted by the recovery function but with sequence number not equals previous sequence number plus one. + End bit: 0xbf + Name: outOfOrder + Start bit: 0x80 + Width: 0x40 + - Default value: 0 + Description: Number of packets dropped by the vector recovery algorithm due to its sequence number out of the sequence history window. + End bit: 0xff + Name: rogue + Start bit: 0xc0 + Width: 0x40 + - Default value: 0 + Description: Number of packets with sequence numbers moved out of the sequence history window under the vector recovery algorithm. + End bit: 0x13f + Name: lost + Start bit: 0x100 + Width: 0x40 + - Default value: 0 + Description: Number of packets received without sequence number. + End bit: 0x17f + Name: tagless + Start bit: 0x140 + Width: 0x40 + - Default value: 0 + Description: Number of recovery function resets by a timeout or by the software. A reset is counted when the next packet of the stream is received. + End bit: 0x1bf + Name: resets + Start bit: 0x180 + Width: 0x40 + Index: Stream Handle + Number of entries: 0x20 + Short name: frer_stat_individual_0 + Start address: 0x499e + Statistics: + block: ipp_mmp + name: frer + Type: rw + Width: 0x1c0 FRER Sequence Number: Address step: 1 Attributes: [] Default value: 0 Description: Show current sequence number. - End address: 0xb2f + End address: 0x3d40 Fields: - Default value: 0 Description: Sequence number. @@ -1246,15 +1444,75 @@ conf bus 0: Width: 0x10 Number of entries: 0x10 Short name: rg_frerSeqNum - Start address: 0xb20 + Start address: 0x3d31 Type: rw Width: 0x10 + FRER Sequence Recovery Statistics: + Address step: 0x10 + Attributes: + - block: ipp_mmp + name: frer + Default value: 0 + Description: Packet counters of the FRER sequence recovery function. + End address: 0x4c9d + Fields: + - Default value: 0 + Description: Number of packets accepted by the recovery function. + End bit: 0x3f + Name: passed + Start bit: 0 + Width: 0x40 + - Default value: 0 + Description: Number of packets dropped by the recovery function due to a duplicated sequence number. + End bit: 0x7f + Name: discarded + Start bit: 0x40 + Width: 0x40 + - Default value: 0 + Description: Number of packets accepted by the recovery function but with sequence number not equals previous sequence number plus one. + End bit: 0xbf + Name: outOfOrder + Start bit: 0x80 + Width: 0x40 + - Default value: 0 + Description: Number of packets dropped by the vector recovery algorithm due to its sequence number out of the sequence history window. + End bit: 0xff + Name: rogue + Start bit: 0xc0 + Width: 0x40 + - Default value: 0 + Description: Number of packets with sequence numbers moved out of the sequence history window under the vector recovery algorithm. + End bit: 0x13f + Name: lost + Start bit: 0x100 + Width: 0x40 + - Default value: 0 + Description: Number of packets received without sequence number. + End bit: 0x17f + Name: tagless + Start bit: 0x140 + Width: 0x40 + - Default value: 0 + Description: Number of recovery function resets by a timeout or by the software. A reset is counted when the next packet of the stream is received. + End bit: 0x1bf + Name: resets + Start bit: 0x180 + Width: 0x40 + Index: FRER ID + Number of entries: 0x10 + Short name: frer_stat_sequence_0 + Start address: 0x4b9e + Statistics: + block: ipp_mmp + name: frer + Type: rw + Width: 0x1c0 Flooding Action Send to Port: Address step: 1 Attributes: [] Default value: 0 Description: If a packet is flooded and this function is enabled on the source port then the packet is send to a single egress port instead of being flooded to all ports part of the packets VLAN membership. - End address: 0xb71 + End address: 0x4172 Fields: - Default value: 0 Description: Enable sent to port instead of flooding. \tabTwo{Disable}{Enable} @@ -1270,7 +1528,7 @@ conf bus 0: Width: 3 Number of entries: 5 Short name: rg_floodingAction - Start address: 0xb6d + Start address: 0x416e Type: rw Width: 4 Flow Classification And Metering Drop: @@ -1283,7 +1541,7 @@ conf bus 0: type: drop Default value: 0 Description: Number of packets dropped due to flow classification and metering. \mmp - End address: 0x1168 + End address: 0x47cb Fields: - Default value: 0 Description: Number of dropped packets. @@ -1293,7 +1551,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_count_drop_mmp - Start address: 0x1168 + Start address: 0x47cb Statistics: block: ipp_mmp name: mmp @@ -1305,7 +1563,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: If a packet is non-VLAN tagged, there is an option to force these packets to a certain initial color. - End address: 0xb1a + End address: 0x3cc8 Fields: - Default value: 0 Description: When set, packets which are non-VLAN tagged are forced to a color. @@ -1321,15 +1579,15 @@ conf bus 0: Width: 2 Number of entries: 1 Short name: rg_untaggedVlan2Color - Start address: 0xb1a + Start address: 0x3cc8 Type: rw Width: 3 Force Non VLAN Packet To Specific Queue: Address step: 1 Attributes: [] Default value: 0 - Description: If a packet is non-VLAN tagged, there is an option to force these packets to a certain ingress/egress queue. - End address: 0xb18 + Description: If a packet is non-VLAN tagged, there is an option to force this packet to a certain ingress/egress queue. + End address: 0x3cce Fields: - Default value: 0 Description: If set, the packet shall have a forced egress queue. Please see Egress Queue Selection Diagram in Figure \ref{fig:determineEgressQueue} @@ -1345,7 +1603,7 @@ conf bus 0: Width: 3 Number of entries: 1 Short name: rg_untaggedVlan2Queue - Start address: 0xb18 + Start address: 0x3cce Type: rw Width: 4 Force Unknown L3 Packet To Specific Color: @@ -1353,7 +1611,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: If a packet does not contain IPv4, IPv6, MPLS or PPPoE carrying IPv4/IPv6 field there is an option to force the packet to a certain initial color. - End address: 0xb1b + End address: 0x3ccf Fields: - Default value: 0 Description: When set, unknown L3 packet types are forced to a color. @@ -1369,7 +1627,7 @@ conf bus 0: Width: 2 Number of entries: 1 Short name: rg_l3Unknown2Color - Start address: 0xb1b + Start address: 0x3ccf Type: rw Width: 3 Force Unknown L3 Packet To Specific Egress Queue: @@ -1377,7 +1635,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: If a packet does not contain IPv4, IPv6, MPLS or PPPoE carrying IPv4/IPv6 field there is an option to force the packet to a certain egress queue. - End address: 0xb19 + End address: 0x3ccd Fields: - Default value: 0 Description: If set, the packet shall have a forced egress queue. Please see Egress Queue Selection Diagram in Figure \ref{fig:determineEgressQueue} @@ -1393,7 +1651,7 @@ conf bus 0: Width: 3 Number of entries: 1 Short name: rg_l3Unknown2Queue - Start address: 0xb19 + Start address: 0x3ccd Type: rw Width: 4 Forward From CPU: @@ -1401,7 +1659,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Indicates if all frames received on the CPU port shall be forwarded while ignoring the egress port's spanning tree status. - End address: 0xb1d + End address: 0x3ccc Fields: - Default value: 0 Description: If set, any frame received on the CPU port is forwarded without consideration of the egress port's spanning tree state. @@ -1411,7 +1669,7 @@ conf bus 0: Width: 1 Number of entries: 1 Short name: rg_forwardFromCPU - Start address: 0xb1d + Start address: 0x3ccc Type: rw Width: 1 Hairpin Enable: @@ -1419,7 +1677,7 @@ conf bus 0: Attributes: [] Default value: 4 Description: Decide if the L2 switching allows a packet to be switched back on the same port it entered the switch. There are separate controls for flooding due to unknown MAC DA, multicast and unicast. - End address: 0xb76 + End address: 0x4177 Fields: - Default value: 0 Description: Allow flooding to source port. @@ -1441,7 +1699,7 @@ conf bus 0: Width: 1 Number of entries: 5 Short name: rg_hairPinSupport - Start address: 0xb72 + Start address: 0x4173 Type: rw Width: 3 Hardware Learning Configuration: @@ -1449,7 +1707,7 @@ conf bus 0: Attributes: [] Default value: 0x14 Description: Configure default status for a newly learned entry, learning limits and learning exceptions. - End address: 0x3f + End address: 0x41 Fields: - Default value: 0x14 Description: L2 Aging table initial status for a new packet which is to be learned. @@ -1478,7 +1736,7 @@ conf bus 0: Index: Ingress Port Number of entries: 5 Short name: rg_dls - Start address: 0x3b + Start address: 0x3d Type: rw Width: 0x10 Hardware Learning Counter: @@ -1486,7 +1744,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Number of MAC addresses learned by the hardware learning unit. Write 0 to clear. - End address: 0x48 + End address: 0x4a Fields: - Default value: 0 Description: Number of learned L2 entries. @@ -1497,7 +1755,7 @@ conf bus 0: Index: Ingress Port Number of entries: 5 Short name: rg_mac_cnt - Start address: 0x44 + Start address: 0x46 Type: rw Width: 9 IP Checksum Drop: @@ -1509,7 +1767,7 @@ conf bus 0: type: drop Default value: 0 Description: Number of packets dropped due to incorrect IP checksum.\ipppDrop - End address: 0x174 + End address: 0x175 Fields: - Default value: 0 Description: Number of dropped packets. @@ -1519,23 +1777,23 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_pac_count_drop_38 - Start address: 0x174 + Start address: 0x175 Statistics: block: ipp_pip name: ipppDrop type: drop Type: rw Width: 0x18 - IPP Empty Destination Drop: + IPP PM Drop: Address step: 1 Attributes: - drop_counter_check - - block: ipp_mmp - name: eopDrop - type: drop + - block: ipp_pm + name: ipmOverflow + type: error Default value: 0 - Description: Number of drops due to the determined destination is cleared during post-ingress packet processing and causing no cell to be enqueued in the buffer memory. This happens on single cell packet with end-of-packet drop actions. \eopDrop - End address: 0x169 + Description: Number of drops due to FIFO overflows in IPP PM. \ipmOverflow + End address: 0x16a Fields: - Default value: 0 Description: Number of dropped packets. @@ -1544,38 +1802,12 @@ conf bus 0: Start bit: 0 Width: 0x18 Number of entries: 1 - Short name: rg_count_ipp_empty_drop - Start address: 0x169 + Short name: rg_count_ipp_pm_drop + Start address: 0x16a Statistics: - block: ipp_mmp - name: eopDrop - type: drop - Type: rw - Width: 0x18 - IPP PM Drop: - Address step: 1 - Attributes: - - drop_counter_check - - block: ipp_pm - name: ipmOverflow - type: error - Default value: 0 - Description: Number of drops due to FIFO overflows in IPP PM. \ipmOverflow - End address: 0x168 - Fields: - - Default value: 0 - Description: Number of dropped packets. - End bit: 0x17 - Name: packets - Start bit: 0 - Width: 0x18 - Number of entries: 1 - Short name: rg_count_ipp_pm_drop - Start address: 0x168 - Statistics: - block: ipp_pm - name: ipmOverflow - type: error + block: ipp_pm + name: ipmOverflow + type: error Type: rw Width: 0x18 IPP Packet Head Counter: @@ -1586,7 +1818,7 @@ conf bus 0: name: ippTxPkt Default value: 0 Description: Number of packet first cells through the Ingress Packet Process module. \ippTxPkt - End address: 0x177 + End address: 0x179 Fields: - Default value: 0 Description: Number of packet headers. @@ -1596,7 +1828,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_ipp_ofirst - Start address: 0x177 + Start address: 0x179 Statistics: block: ipp_out name: ippTxPkt @@ -1610,7 +1842,7 @@ conf bus 0: name: ippTxPkt Default value: 0 Description: Number of packet last cells through the Ingress Packet Process module. \ippTxPkt - End address: 0x178 + End address: 0x17a Fields: - Default value: 0 Description: Number of packet tails. @@ -1620,7 +1852,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_ipp_olast - Start address: 0x178 + Start address: 0x17a Statistics: block: ipp_out name: ippTxPkt @@ -1631,7 +1863,7 @@ conf bus 0: Attributes: [] Default value: 1 Description: Mapping table from TOS in the IPv4 header to an egress queue. - End address: 0xfa0 + End address: 0x4160 Fields: - Default value: 1 Description: Egress queue. @@ -1641,7 +1873,7 @@ conf bus 0: Width: 3 Number of entries: 0x100 Short name: r_ipv4Tos2Queue - Start address: 0xea1 + Start address: 0x4061 Type: rw Width: 3 IPv4 TOS Field To Packet Color Mapping Table: @@ -1649,7 +1881,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Mapping table from TOS in the IPv4 header to a packet inital color. - End address: 0xd88 + End address: 0x3f50 Fields: - Default value: 0 Description: Packet initial color. @@ -1659,7 +1891,7 @@ conf bus 0: Width: 2 Number of entries: 0x100 Short name: r_ipv4Tos2Color - Start address: 0xc89 + Start address: 0x3e51 Type: rw Width: 2 IPv6 Class of Service Field To Egress Queue Mapping Table: @@ -1667,7 +1899,7 @@ conf bus 0: Attributes: [] Default value: 1 Description: Mapping table from Class of Service in the IPv6 header to an egress queue. - End address: 0xea0 + End address: 0x4060 Fields: - Default value: 1 Description: Egress queue. @@ -1677,7 +1909,7 @@ conf bus 0: Width: 3 Number of entries: 0x100 Short name: r_ipv6Tos2Queue - Start address: 0xda1 + Start address: 0x3f61 Type: rw Width: 3 IPv6 Class of Service Field To Packet Color Mapping Table: @@ -1685,7 +1917,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Mapping table from Class of service in the IPv6 header to a packet inital color. - End address: 0xc88 + End address: 0x3e50 Fields: - Default value: 0 Description: Packet initial color. @@ -1695,45 +1927,15 @@ conf bus 0: Width: 2 Number of entries: 0x100 Short name: r_ipv6Tos2Color - Start address: 0xb89 + Start address: 0x3d51 Type: rw Width: 2 - Ignore Checksum Range: - Address step: 2 - Attributes: [] - Default value: 0x1fffffffe - Description: When a IPv4 packets enters the router the checksum shall be verfied and if wrong the packet shall be dropped. However some NICs does not calculate this value correct and hence some values can be ignored. The values in the range from ignoreStart and ignoreEnd will be ignored and packets will be passed even is wrong. The checksum in the outgoing packet will contain a correct checksum which is recalculated. - End address: 0xb12 - Fields: - - Default value: 0 - Description: This enables a range of checksums to be ignored even is they are errors. \tabTwo{No.}{Yes.} - End bit: 0 - Name: enabled - Start bit: 0 - Width: 1 - - Default value: 0xffff - Description: When this value is seend the checkSum will ignore and not drop the packet - End bit: 0x10 - Name: ignoreStart - Start bit: 1 - Width: 0x10 - - Default value: 0xffff - Description: When this value is seend the checkSum will ignore and not drop the packet - End bit: 0x20 - Name: ignoreEnd - Start bit: 0x11 - Width: 0x10 - Number of entries: 1 - Short name: rg_ignoreChecksum - Start address: 0xb11 - Type: rw - Width: 0x21 Individual Recovery Config: Address step: 2 Attributes: [] Default value: 0x13 Description: Configurations for the individual recovery function. - End address: 0x122a + End address: 0x497d Fields: - Default value: 1 Description: Apply individual recovery @@ -1765,174 +1967,38 @@ conf bus 0: Name: takeNoSequence Start bit: 0x25 Width: 1 + Index: Stream handle Number of entries: 0x20 - Short name: rg_ind_recov_config - Start address: 0x11eb + Short name: config_frer_ind_0 + Start address: 0x493e + Statistics: null Type: rw Width: 0x26 - Individual Recovery Discarded Counter: - Address step: 1 - Attributes: - - block: ipp_mmp - name: frer - Default value: 0 - Description: Number of packets dropped by the recovery function due to a duplicated sequence number. - End address: 0x12ca - Fields: - - Default value: 0 - Description: Number of packets. - End bit: 0x17 - Name: packets - Start bit: 0 - Width: 0x18 - Number of entries: 0x20 - Short name: rg_recov_individual_discarded - Start address: 0x12ab - Statistics: - block: ipp_mmp - name: frer - Type: rw - Width: 0x18 - Individual Recovery Lost Counter: - Address step: 1 - Attributes: - - block: ipp_mmp - name: frer - Default value: 0 - Description: Number of packets with sequence numbers moved out of the sequence history window under the vector recovery algorithm. - End address: 0x132a - Fields: - - Default value: 0 - Description: Number of packets. - End bit: 0x17 - Name: packets - Start bit: 0 - Width: 0x18 - Number of entries: 0x20 - Short name: rg_recov_individual_lost - Start address: 0x130b - Statistics: - block: ipp_mmp - name: frer - Type: rw - Width: 0x18 - Individual Recovery Out Of Order Counter: - Address step: 1 - Attributes: - - block: ipp_mmp - name: frer - Default value: 0 - Description: Number of packets accepted by the recovery function but with sequence number not equals previous sequence number plus one. - End address: 0x12ea - Fields: - - Default value: 0 - Description: Number of packets. - End bit: 0x17 - Name: packets - Start bit: 0 - Width: 0x18 - Number of entries: 0x20 - Short name: rg_recov_individual_out_of_order - Start address: 0x12cb - Statistics: - block: ipp_mmp - name: frer - Type: rw - Width: 0x18 - Individual Recovery Passed Counter: - Address step: 1 - Attributes: - - block: ipp_mmp - name: frer - Default value: 0 - Description: Number of packets accepted by the recovery function. - End address: 0x12aa - Fields: - - Default value: 0 - Description: Number of packets. - End bit: 0x17 - Name: packets - Start bit: 0 - Width: 0x18 - Number of entries: 0x20 - Short name: rg_recov_individual_passed - Start address: 0x128b - Statistics: - block: ipp_mmp - name: frer - Type: rw - Width: 0x18 Individual Recovery Reset: Address step: 1 Attributes: - no_default_check Default value: 0 Description: Reset the sequence history of the individual recovery function and allow any sequence number for the next packet. - End address: 0x11d8 + End address: 0x492b Fields: - Default value: 0 - Description: Set to one to reset the individual recovery function. Hardware clears the reset after one clock cycle. + Description: Set to one to reset the individual recovery function. The reset is applied to the next packet of the stream, then hardware clears the bit. End bit: 0 Name: reset Start bit: 0 Width: 1 Number of entries: 0x20 Short name: rg_ind_recov_reset - Start address: 0x11b9 + Start address: 0x490c Type: rw Width: 1 - Individual Recovery Rogue Counter: - Address step: 1 - Attributes: - - block: ipp_mmp - name: frer - Default value: 0 - Description: Number of packets dropped by the vector recovery algorithm due to its sequnece number out of the sequence history window. - End address: 0x130a - Fields: - - Default value: 0 - Description: Number of packets. - End bit: 0x17 - Name: packets - Start bit: 0 - Width: 0x18 - Number of entries: 0x20 - Short name: rg_recov_individual_rogue - Start address: 0x12eb - Statistics: - block: ipp_mmp - name: frer - Type: rw - Width: 0x18 - Individual Recovery Tagless Counter: - Address step: 1 - Attributes: - - block: ipp_mmp - name: frer - Default value: 0 - Description: Number of packets received without sequence number. - End address: 0x134a - Fields: - - Default value: 0 - Description: Number of packets. - End bit: 0x17 - Name: packets - Start bit: 0 - Width: 0x18 - Number of entries: 0x20 - Short name: rg_recov_individual_tagless - Start address: 0x132b - Statistics: - block: ipp_mmp - name: frer - Type: rw - Width: 0x18 Ingress Admission Control Current Status: Address step: 1 Attributes: [] Default value: 0 Description: Number of tokens currently in the token bucket. - End address: 0x1188 + End address: 0x480b Fields: - Default value: 0 Description: Number of tokens after the last visit for token bucket 0. @@ -1947,9 +2013,9 @@ conf bus 0: Start bit: 0x10 Width: 0x10 Index: Meter Pointer - Number of entries: 4 + Number of entries: 8 Short name: r_ingress_admission_control_bucket_tokens_0 - Start address: 0x1185 + Start address: 0x4804 Statistics: null Type: rw Width: 0x20 @@ -1958,7 +2024,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Initial ingress admission control pointer based on source port number and L2 priority. L2 priority is from either the outermost VLAN PCP field or \field{Source Port Table}{defaultPcp}. Further processes may overwrite the initial pointer by comparing the order of the pointer. - End address: 0xfed + End address: 0x3d20 Fields: - Default value: 0 Description: If set, this entry contains a valid MMP pointer @@ -1968,37 +2034,37 @@ conf bus 0: Width: 1 - Default value: 0 Description: Initial pointer to the ingress MMP. - End bit: 2 + End bit: 3 Name: mmpPtr Start bit: 1 - Width: 2 + Width: 3 - Default value: 0 Description: Order of the initial ingress MMP pointer. - End bit: 3 + End bit: 4 Name: mmpOrder - Start bit: 3 + Start bit: 4 Width: 1 Number of entries: 0x40 Short name: r_mmpInit - Start address: 0xfae + Start address: 0x3ce1 Type: rw - Width: 4 + Width: 5 Ingress Admission Control Mark All Red: Address step: 1 Attributes: [] Default value: 0 Description: Blocking status of the MMP entry due to packet drops in the MMP. - End address: 0x1170 + End address: 0x47db Fields: - Default value: 0 - Description: When this field is set to 1 by the core, the corresponding MMP entry is under the blocking status. As a consequence, all packets with this MMP pointer will be dropped. Clear this field to allow packets enter the MMP entry again. + Description: When this field is set to 1 by the core, the corresponding MMP entry is under the blocking status. As a consequence, all packets with this MMP pointer will be dropped. Clear this field to allow packets to enter the MMP entry again. End bit: 0 Name: markAllRed Start bit: 0 Width: 1 - Number of entries: 4 + Number of entries: 8 Short name: rg_all_red - Start address: 0x116d + Start address: 0x47d4 Type: rw Width: 1 Ingress Admission Control Mark All Red Enable: @@ -2006,7 +2072,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Option to block metering after MMP packet drops. - End address: 0x116c + End address: 0x47d3 Fields: - Default value: 0 Description: After setting this field to 1, if a packet is dropped by a MMP entry, this MMP entry will stop metering and drop all packets with the corresponding MMP pointer. @@ -2014,17 +2080,17 @@ conf bus 0: Name: markAllRedEn Start bit: 0 Width: 1 - Number of entries: 4 + Number of entries: 8 Short name: rg_all_red_en - Start address: 0x1169 + Start address: 0x47cc Type: rw Width: 1 Ingress Admission Control Reset: Address step: 1 Attributes: [] Default value: 1 - Description: Reset token buckets so that it is back to the inital status. The reset will be kept high till new traffic arrives, then the traffic is metered with a bucket full of tokens and the reset is deactivated. It is helpful when the token bucket configuration is changed during runtime. - End address: 0x1184 + Description: Reset token buckets so that it is back to the initial status. The reset will be kept high till new traffic arrives, then the traffic is metered with a bucket full of tokens and the reset is deactivated. It is helpful when the token bucket configuration is changed during runtime. + End address: 0x4803 Fields: - Default value: 1 Description: if set, reload with full tokens for token buckets in this entry. @@ -2033,9 +2099,9 @@ conf bus 0: Start bit: 0 Width: 1 Index: Meter Pointer - Number of entries: 4 + Number of entries: 8 Short name: r_ingress_admission_control_bucket_reset_0 - Start address: 0x1181 + Start address: 0x47fc Statistics: null Type: rw Width: 1 @@ -2043,8 +2109,8 @@ conf bus 0: Address step: 4 Attributes: [] Default value: 0xc1fffc0000000000000000 - Description: Configuration options for token buckets used by Ingress Admission Control. Each entry refers to either a single rate three color marker (srTCM) or a two rate three color marker (trTCM) with two token buckets. For each token bucket the rate is configured by filling in a certain number of tokens at one of the available frequencies. Token bucket 0 shall always use the committed information rate (CIR). Runtime configuration update requires writting 1 to the \register{Ingress Admission Control Reset} first. - End address: 0x1180 + Description: Configuration options for token buckets used by Ingress Admission Control. Each entry refers to either a single rate three color marker (srTCM) or a two rate three color marker (trTCM) with two token buckets. For each token bucket the rate is configured by filling in a certain number of tokens at one of the available frequencies. Token bucket 0 shall always use the committed information rate (CIR). Runtime configuration update requires writing 1 to the \register{Ingress Admission Control Reset} first. + End address: 0x47fb Fields: - Default value: 0 Description: Capacity for token bucket 0. @@ -2059,7 +2125,7 @@ conf bus 0: Start bit: 0x10 Width: 12 - Default value: 0 - Description: Select one of the 5 available ticks for token bucket 0. The tick frequencies are configured globaly in the Core Tick Configuration register. + Description: Select one of the 5 available ticks for token bucket 0. The tick frequencies are configured globally in the Core Tick Configuration register. End bit: 0x1e Name: tick_0 Start bit: 0x1c @@ -2077,7 +2143,7 @@ conf bus 0: Start bit: 0x2f Width: 12 - Default value: 0 - Description: Select one of the 5 available ticks for token bucket 1. The tick frequencies are configured globaly in the Core Tick Configuration register. + Description: Select one of the 5 available ticks for token bucket 1. The tick frequencies are configured globally in the Core Tick Configuration register. End bit: 0x3d Name: tick_1 Start bit: 0x3b @@ -2107,7 +2173,7 @@ conf bus 0: Start bit: 0x43 Width: 14 - Default value: 0 - Description: \tabFour{Count in bytes and add extra bytes for metering.}{Count in bytes and substract extra bytes for metering.}{Count in packets.}{No tokens are counted.} + Description: \tabFour{Count in bytes and add extra bytes for metering.}{Count in bytes and subtract extra bytes for metering.}{Count in packets.}{No tokens are counted.} End bit: 0x52 Name: tokenMode Start bit: 0x51 @@ -2119,9 +2185,9 @@ conf bus 0: Start bit: 0x53 Width: 8 Index: Meter Pointer - Number of entries: 4 + Number of entries: 8 Short name: r_ingress_admission_control_bucket_config_0 - Start address: 0x1171 + Start address: 0x47dc Statistics: null Type: rw Width: 0x5b @@ -2134,7 +2200,7 @@ conf bus 0: type: drop Default value: 0 Description: Number of packets dropped due to matching an Ingress Configurable ACL with drop.\ipppDrop - End address: 0x175 + End address: 0x176 Fields: - Default value: 0 Description: Number of dropped packets. @@ -2144,7 +2210,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_pac_count_drop_36 - Start address: 0x175 + Start address: 0x176 Statistics: block: ipp_pip name: ipppDrop @@ -2152,11 +2218,11 @@ conf bus 0: Type: rw Width: 0x18 Ingress Configurable ACL Large Table: - Address step: 4 + Address step: 0x10 Attributes: [] Default value: 0 Description: This table is used for the configurable ACL lookup. A hash is calculated on the selected fields from the packet header. The hash is then used as index into this table.. If multiple buckets match then the result from the highest entry is selected. - End address: 0x278 + End address: 0x1184 Fields: - Default value: 0 Description: Is this entry valid. \tabTwo{No}{Yes} @@ -2166,114 +2232,205 @@ conf bus 0: Width: 1 - Default value: 0 Description: The data which shall be compared in this entry. - End bit: 0x40 + End bit: 0x100 Name: compareData Start bit: 1 - Width: 0x40 + Width: 0x100 - Default value: 0 Description: This is a result field used when this entry is hit. If set, the packet shall be sent to the CPU port. - End bit: 0x41 + End bit: 0x101 Name: sendToCpu - Start bit: 0x41 + Start bit: 0x101 Width: 1 - Default value: 0 Description: This is a result field used when this entry is hit. If set, the packet shall be dropped and the \register{Ingress Configurable ACL Drop} counter is incremented. - End bit: 0x42 + End bit: 0x102 Name: dropEnable - Start bit: 0x42 + Start bit: 0x102 Width: 1 - Default value: 0 Description: This is a result field used when this entry is hit. Send the packet to a specific port. \tabTwo{Disabled.}{Send to port configured in destPort.} - End bit: 0x43 + End bit: 0x103 Name: sendToPort - Start bit: 0x43 + Start bit: 0x103 Width: 1 - Default value: 0 Description: This is a result field used when this entry is hit. The port which the packet shall be sent to. - End bit: 0x46 + End bit: 0x106 Name: destPort - Start bit: 0x44 + Start bit: 0x104 Width: 3 - Default value: 0 Description: This is a result field used when this entry is hit. If set, this entry contains a valid stream handle - End bit: 0x47 + End bit: 0x107 Name: streamValid - Start bit: 0x47 + Start bit: 0x107 Width: 1 - Default value: 0 Description: This is a result field used when this entry is hit. Stream handle. - End bit: 0x4c + End bit: 0x10c Name: streamHandle - Start bit: 0x48 + Start bit: 0x108 Width: 5 + - Default value: 0 + Description: This is a result field used when this entry is hit. When set the selected statistics counter will be updated. + End bit: 0x10d + Name: updateCounter + Start bit: 0x10d + Width: 1 + - Default value: 0 + Description: This is a result field used when this entry is hit. Which counter in Ingress Configurable ACL Match Counter to update. + End bit: 0x10f + Name: counter + Start bit: 0x10e + Width: 2 + - Default value: 0 + Description: This is a result field used when this entry is hit. If set, the packet shall have a forced color. + End bit: 0x110 + Name: forceColor + Start bit: 0x110 + Width: 1 + - Default value: 0 + Description: This is a result field used when this entry is hit. Initial color of the packet if the forceColor field is set. + End bit: 0x112 + Name: color + Start bit: 0x111 + Width: 2 + - Default value: 0 + Description: This is a result field used when this entry is hit. If set, this entry contains a valid MMP pointer + End bit: 0x113 + Name: mmpValid + Start bit: 0x113 + Width: 1 + - Default value: 0 + Description: This is a result field used when this entry is hit. Ingress MMP pointer. + End bit: 0x116 + Name: mmpPtr + Start bit: 0x114 + Width: 3 + - Default value: 0 + Description: This is a result field used when this entry is hit. Ingress MMP pointer order. + End bit: 0x117 + Name: mmpOrder + Start bit: 0x117 + Width: 1 - Default value: 0 Description: This is a result field used when this entry is hit. If set, the packet shall have a forced egress queue. Please see Egress Queue Selection Diagram in Figure \ref{fig:determineEgressQueue} - End bit: 0x4d + End bit: 0x118 Name: forceQueue - Start bit: 0x4d + Start bit: 0x118 Width: 1 - Default value: 0 Description: This is a result field used when this entry is hit. The egress queue to be assigned if the forceQueue field in this entry is set to 1. - End bit: 0x50 + End bit: 0x11b Name: eQueue - Start bit: 0x4e + Start bit: 0x119 Width: 3 - Index: \tabAddrTwoRows{ address[4:0] } { hash of \{compareData \} } { address[5:5] } { bucket number } - Number of entries: 0x40 + Index: \tabAddrTwoRows{ address[6:0] } { hash of \{compareData \} } { address[7:7] } { bucket number } + Number of entries: 0x100 Number of tables: 2 Short name: r_confAcl_large_0_ss0 - Start address: 0x179 + Start address: 0x185 Statistics: null Type: rw - Width: 0x51 + Width: 0x11c + Ingress Configurable ACL Match Counter: + Address step: 1 + Attributes: + - block: ipp_pip + name: ippAcl + Default value: 0 + Description: Number of packets hit in entries from ingress configurable ACL lookup. + End address: 0x4675 + Fields: + - Default value: 0 + Description: Packets + End bit: 0x1f + Name: count + Start bit: 0 + Width: 0x20 + Number of entries: 4 + Short name: rg_pac_count_ingress_conf_acl_0 + Start address: 0x4672 + Statistics: + block: ipp_pip + name: ippAcl + Type: r + Width: 0x20 + Ingress Configurable ACL Pre Lookup: + Address step: 1 + Attributes: [] + Default value: 0 + Description: The pre ACL lookup allows the user to defined a specific rules for certain packet types in the ACL engine . Setting the valid bit and a new rule will override the default rule pointer from the source port table. + End address: 0x459e + Fields: + - Default value: 0 + Description: Is this entry valid. If not then use default port rule. + End bit: 0 + Name: valid + Start bit: 0 + Width: 1 + - Default value: 0 + Description: If the valid is entry then this rule pointer will be used. + End bit: 4 + Name: rulePtr + Start bit: 1 + Width: 4 + Number of entries: 0x400 + Short name: r_confAclPreLookup + Start address: 0x419f + Type: rw + Width: 5 Ingress Configurable ACL Rules Setup: Address step: 1 Attributes: [] Default value: 0 - Description: The rules are setup by selecting which fields shall be used in the ACL search. Each rule has a fixed number of fields. The fieldSelectBitmask has one bit for each field. The first 4 fields (bits) which are set to one are selected. It is not allowed to set more than 4 bit in the bitmask. The fields are described in \hyperref[subsec:ingressAclFields]{ACL Fields} - End address: 0xfad + Description: The rules are setup by selecting which fields shall be used in the ACL search. Each rule has a fixed number of fields. The fieldSelectBitmask has one bit for each field. The first 10 fields (bits) which are set to one are selected. It is not allowed to set more than 10 bit in the bitmask. The fields are described in \hyperref[subsec:ingressAclFields]{ACL Fields} + End address: 0x184 Fields: - Default value: 0 - Description: Bitmask of which fields to select. Set a bit to one to select this specific field, set zero to not select field. At maximum 4 bits should be set. - End bit: 6 + Description: Bitmask of which fields to select. Set a bit to one to select this specific field, set zero to not select field. At maximum 10 bits should be set. + End bit: 15 Name: fieldSelectBitmask Start bit: 0 - Width: 7 - Number of entries: 5 - Short name: rg_confAclRule - Start address: 0xfa9 + Width: 0x10 + Index: ACL rule pointer + Number of entries: 10 + Short name: rg_confAclRule_ss0 + Start address: 0x17b + Statistics: null Type: rw - Width: 7 + Width: 0x10 Ingress Configurable ACL Search Mask: - Address step: 4 + Address step: 0x10 Attributes: [] - Default value: 0xffffffffffffffffffffffffffffffff - Description: Before the hashing and searching is done in the \register{Ingress Configurable ACL Large Table} and \register{Ingress Configurable ACL Small Table}. The search data is AND:ed with this mask. If a bit in the mask is set to zero then this bit in the lookup will be viewed as do not care. Seperate masks exists for both small and large tables. - End address: 0xff1 + Default value: 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff + Description: Before the hashing and searching are done in the \register{Ingress Configurable ACL Large Table} and \register{Ingress Configurable ACL Small Table}. The search data is ANDed with this mask. If a bit in the mask is set to zero then this bit in the lookup will be viewed as do not care. Separate masks exists for both small and large tables. + End address: 0x4660 Fields: - - Default value: 0xffffffffffffffff + - Default value: 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff Description: Which bits to compare in the \register{Ingress Configurable ACL Small Table} lookup. A bit set to 1 means the corresponding bit in the search data is compared and 0 means the bit is ignored. - End bit: 0x3f + End bit: 0xff Name: mask_small Start bit: 0 - Width: 0x40 - - Default value: 0xffffffffffffffff + Width: 0x100 + - Default value: 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff Description: Which bits to compare in the \register{Ingress Configurable ACL Large Table} lookup. A bit set to 1 means the corresponding bit in the search data is compared and 0 means the bit is ignored. - End bit: 0x7f + End bit: 0x1ff Name: mask_large - Start bit: 0x40 - Width: 0x40 + Start bit: 0x100 + Width: 0x100 Number of entries: 1 Short name: rg_confAcl_mask - Start address: 0xfee + Start address: 0x4651 Type: rw - Width: 0x80 + Width: 0x200 Ingress Configurable ACL Selection: Address step: 1 Attributes: [] Default value: 0 Description: This register selects which result to use when there are multiple hits. - End address: 0xb16 + End address: 0x3cc7 Fields: - Default value: 0 Description: If set to zero then TCAM answer is selected. If set to one then hash table answer is selected. @@ -2289,15 +2446,15 @@ conf bus 0: Width: 1 Number of entries: 1 Short name: rg_confAcl_selection - Start address: 0xb16 + Start address: 0x3cc7 Type: rw Width: 2 Ingress Configurable ACL Small Table: - Address step: 4 + Address step: 0x10 Attributes: [] Default value: 0 Description: This table is used for the configurable ACL lookup. A hash is calculated on the selected fields from the packet header. The hash is then used as index into this table.. If multiple buckets match then the result from the highest entry is selected. - End address: 0x298 + End address: 0x1384 Fields: - Default value: 0 Description: Is this entry valid. \tabTwo{No}{Yes} @@ -2307,72 +2464,114 @@ conf bus 0: Width: 1 - Default value: 0 Description: The data which shall be compared in this entry. - End bit: 0x40 + End bit: 0x100 Name: compareData Start bit: 1 - Width: 0x40 + Width: 0x100 - Default value: 0 Description: This is a result field used when this entry is hit. If set, the packet shall be sent to the CPU port. - End bit: 0x41 + End bit: 0x101 Name: sendToCpu - Start bit: 0x41 + Start bit: 0x101 Width: 1 - Default value: 0 Description: This is a result field used when this entry is hit. If set, the packet shall be dropped and the \register{Ingress Configurable ACL Drop} counter is incremented. - End bit: 0x42 + End bit: 0x102 Name: dropEnable - Start bit: 0x42 + Start bit: 0x102 Width: 1 - Default value: 0 Description: This is a result field used when this entry is hit. Send the packet to a specific port. \tabTwo{Disabled.}{Send to port configured in destPort.} - End bit: 0x43 + End bit: 0x103 Name: sendToPort - Start bit: 0x43 + Start bit: 0x103 Width: 1 - Default value: 0 Description: This is a result field used when this entry is hit. The port which the packet shall be sent to. - End bit: 0x46 + End bit: 0x106 Name: destPort - Start bit: 0x44 + Start bit: 0x104 Width: 3 - Default value: 0 Description: This is a result field used when this entry is hit. If set, this entry contains a valid stream handle - End bit: 0x47 + End bit: 0x107 Name: streamValid - Start bit: 0x47 + Start bit: 0x107 Width: 1 - Default value: 0 Description: This is a result field used when this entry is hit. Stream handle. - End bit: 0x4c + End bit: 0x10c Name: streamHandle - Start bit: 0x48 + Start bit: 0x108 Width: 5 + - Default value: 0 + Description: This is a result field used when this entry is hit. When set the selected statistics counter will be updated. + End bit: 0x10d + Name: updateCounter + Start bit: 0x10d + Width: 1 + - Default value: 0 + Description: This is a result field used when this entry is hit. Which counter in Ingress Configurable ACL Match Counter to update. + End bit: 0x10f + Name: counter + Start bit: 0x10e + Width: 2 + - Default value: 0 + Description: This is a result field used when this entry is hit. If set, the packet shall have a forced color. + End bit: 0x110 + Name: forceColor + Start bit: 0x110 + Width: 1 + - Default value: 0 + Description: This is a result field used when this entry is hit. Initial color of the packet if the forceColor field is set. + End bit: 0x112 + Name: color + Start bit: 0x111 + Width: 2 + - Default value: 0 + Description: This is a result field used when this entry is hit. If set, this entry contains a valid MMP pointer + End bit: 0x113 + Name: mmpValid + Start bit: 0x113 + Width: 1 + - Default value: 0 + Description: This is a result field used when this entry is hit. Ingress MMP pointer. + End bit: 0x116 + Name: mmpPtr + Start bit: 0x114 + Width: 3 + - Default value: 0 + Description: This is a result field used when this entry is hit. Ingress MMP pointer order. + End bit: 0x117 + Name: mmpOrder + Start bit: 0x117 + Width: 1 - Default value: 0 Description: This is a result field used when this entry is hit. If set, the packet shall have a forced egress queue. Please see Egress Queue Selection Diagram in Figure \ref{fig:determineEgressQueue} - End bit: 0x4d + End bit: 0x118 Name: forceQueue - Start bit: 0x4d + Start bit: 0x118 Width: 1 - Default value: 0 Description: This is a result field used when this entry is hit. The egress queue to be assigned if the forceQueue field in this entry is set to 1. - End bit: 0x50 + End bit: 0x11b Name: eQueue - Start bit: 0x4e + Start bit: 0x119 Width: 3 - Index: \tabAddrTwoRows{address[1:0]} {hash of \{compareData \} } {address[2:2]} {bucket number} - Number of entries: 8 + Index: \tabAddrTwoRows{address[3:0]} {hash of \{compareData \} } {address[4:4]} {bucket number} + Number of entries: 0x20 Number of tables: 2 Short name: r_confAcl_small_0_ss0 - Start address: 0x279 + Start address: 0x1185 Statistics: null Type: rw - Width: 0x51 + Width: 0x11c Ingress Configurable ACL TCAM: - Address step: 8 + Address step: 0x20 Attributes: [] - Default value: 0x1fffffffffffffffe + Default value: 0x1fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe Description: This table is used for the configurable ACL lookup. A hash is calculated on the selected fields from the packet header. The hash is then used as index into this table. - End address: 0x1011 + End address: 0x4650 Fields: - Default value: 0 Description: Is this entry valid. \tabTwo{No}{Yes} @@ -2380,29 +2579,29 @@ conf bus 0: Name: valid Start bit: 0 Width: 1 - - Default value: 0xffffffffffffffff + - Default value: 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff Description: Which bits to compare in this entry. - End bit: 0x40 + End bit: 0x100 Name: mask Start bit: 1 - Width: 0x40 + Width: 0x100 - Default value: 0 - Description: The data which shall be compared in this entry. Observe that this compare data must be AND:ed by software before the entry is searched. The hardware does not do the AND between mask and compareData (In order to save area). - End bit: 0x80 + Description: The data which shall be compared in this entry. Observe that this compare data must be ANDed by software before the entry is searched. The hardware does not do the AND between mask and compareData (In order to save area). + End bit: 0x200 Name: compareData - Start bit: 0x41 - Width: 0x40 + Start bit: 0x101 + Width: 0x100 Number of entries: 4 Short name: r_confAcl_tcam - Start address: 0xff2 + Start address: 0x45d1 Type: rw - Width: 0x81 + Width: 0x201 Ingress Configurable ACL TCAM Answer: Address step: 1 Attributes: [] Default value: 0 Description: This is the table holding the answer for the \register{Ingress Configurable ACL TCAM}. - End address: 0x29c + End address: 0x1388 Fields: - Default value: 0 Description: If set, the packet shall be sent to the CPU port. @@ -2441,30 +2640,72 @@ conf bus 0: Start bit: 7 Width: 5 - Default value: 0 - Description: If set, the packet shall have a forced egress queue. Please see Egress Queue Selection Diagram in Figure \ref{fig:determineEgressQueue} + Description: When set the selected statistics counter will be updated. End bit: 12 - Name: forceQueue + Name: updateCounter Start bit: 12 Width: 1 - Default value: 0 - Description: The egress queue to be assigned if the forceQueue field in this entry is set to 1. + Description: Which counter in Ingress Configurable ACL Match Counter to update. + End bit: 14 + Name: counter + Start bit: 13 + Width: 2 + - Default value: 0 + Description: If set, the packet shall have a forced color. End bit: 15 + Name: forceColor + Start bit: 15 + Width: 1 + - Default value: 0 + Description: Initial color of the packet if the forceColor field is set. + End bit: 0x11 + Name: color + Start bit: 0x10 + Width: 2 + - Default value: 0 + Description: If set, this entry contains a valid MMP pointer + End bit: 0x12 + Name: mmpValid + Start bit: 0x12 + Width: 1 + - Default value: 0 + Description: Ingress MMP pointer. + End bit: 0x15 + Name: mmpPtr + Start bit: 0x13 + Width: 3 + - Default value: 0 + Description: Ingress MMP pointer order. + End bit: 0x16 + Name: mmpOrder + Start bit: 0x16 + Width: 1 + - Default value: 0 + Description: If set, the packet shall have a forced egress queue. Please see Egress Queue Selection Diagram in Figure \ref{fig:determineEgressQueue} + End bit: 0x17 + Name: forceQueue + Start bit: 0x17 + Width: 1 + - Default value: 0 + Description: The egress queue to be assigned if the forceQueue field in this entry is set to 1. + End bit: 0x1a Name: eQueue - Start bit: 13 + Start bit: 0x18 Width: 3 Index: \register{Ingress Configurable ACL TCAM} hit index Number of entries: 4 Short name: r_confAcl_tcam_answer_ss0 - Start address: 0x299 + Start address: 0x1385 Statistics: null Type: rw - Width: 0x10 + Width: 0x1b Ingress Drop Options: Address step: 1 Attributes: [] Default value: 4 - Description: Options to enable or disable learning when the the L2 forwarding process drops the packet. - End address: 0x1012 + Description: Options to enable or disable learning when the L2 forwarding process drops the packet. + End address: 0x4661 Fields: - Default value: 0 Description: Allow learning when L2 Destination Table drops the packet. @@ -2492,7 +2733,7 @@ conf bus 0: Width: 1 Number of entries: 1 Short name: rg_dropOptions - Start address: 0x1012 + Start address: 0x4661 Type: rw Width: 4 Ingress Ethernet Type for VLAN tag: @@ -2500,7 +2741,7 @@ conf bus 0: Attributes: [] Default value: 0xffff Description: When decoding VLAN tags, if the Ethernet Type matches the \field{Ingress Ethernet Type for VLAN tag}{typeValue} it will be considered to be a VLAN tag in addition to the standard values of 0x8100 and 0x88A8. The \field{Ingress Ethernet Type for VLAN tag}{type} field determines if the VLAN should be regarded as a Service VLAN or Customer VLAN. - End address: 0xb15 + End address: 0x3cc6 Fields: - Default value: 0xffff Description: Ethernet Type value. @@ -2528,7 +2769,7 @@ conf bus 0: Width: 5 Number of entries: 1 Short name: rg_ingressVlanEthernetTypes - Start address: 0xb15 + Start address: 0x3cc6 Type: rw Width: 0x17 Ingress MAC SA Change Counter: @@ -2538,7 +2779,7 @@ conf bus 0: name: ippReception Default value: 0 Description: Number of broadcast packets received with MAC SA differed from the previous broadcast packet. \ippReception - End address: 0x1046 + End address: 0x46a9 Fields: - Default value: 0 Description: Number of packets. @@ -2549,7 +2790,7 @@ conf bus 0: Index: Ingress port Number of entries: 5 Short name: rg_ipp_igr_sa - Start address: 0x1042 + Start address: 0x46a5 Statistics: block: ipp_pip name: ippReception @@ -2564,7 +2805,7 @@ conf bus 0: type: drop Default value: 0 Description: "Number of packets dropped due to MBSC. When the ingress\n port exceeds the multicast/broadcast/unicast flooding limits any new\n packet from this port will be dropped.\\ipppDrop" - End address: 0x170 + End address: 0x171 Fields: - Default value: 0 Description: Number of dropped packets. @@ -2574,7 +2815,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_pac_count_drop_3 - Start address: 0x170 + Start address: 0x171 Statistics: block: ipp_pip name: ipppDrop @@ -2586,17 +2827,17 @@ conf bus 0: Attributes: [] Default value: 0x1f Description: This register provides an option to let ingress MMP not drop packets on certain ports after metering. - End address: 0xb1f + End address: 0x3cd0 Fields: - Default value: 0x1f - Description: Each bit in this mask refers to if ingress MMP drop is allowed on the corresponding egress port. + Description: Each bit in this mask refers to whether ingress MMP drop is allowed on the corresponding egress port. End bit: 4 Name: dropMask Start bit: 0 Width: 5 Number of entries: 1 Short name: rg_mmpDropMask - Start address: 0xb1f + Start address: 0x3cd0 Type: rw Width: 5 Ingress Port Rate Limiter Bucket Capacity Configuration: @@ -2604,7 +2845,7 @@ conf bus 0: Attributes: [] Default value: 0x5c8 Description: Token Bucket Capacity Configuration for Ingress Port Rate Limiter - End address: 0x1018 + End address: 0x467b Fields: - Default value: 0x5c8 Description: Capacity of the token bucket @@ -2614,7 +2855,7 @@ conf bus 0: Width: 0x14 Number of entries: 1 Short name: rg_ingress_port_rate_limiter_bucket_cap - Start address: 0x1018 + Start address: 0x467b Type: rw Width: 0x14 Ingress Port Rate Limiter Bucket Threshold Configuration: @@ -2622,7 +2863,7 @@ conf bus 0: Attributes: [] Default value: 0x2e4 Description: Token Bucket Threshold Configuration for Ingress Port Rate Limiter - End address: 0x1019 + End address: 0x467c Fields: - Default value: 0x2e4 Description: Minimum number of tokens in bucket for the status to be set to accept. @@ -2632,7 +2873,7 @@ conf bus 0: Width: 0x14 Number of entries: 1 Short name: rg_ingress_port_rate_limiter_bucket_thr - Start address: 0x1019 + Start address: 0x467c Type: rw Width: 0x14 Ingress Port Rate Limiter Drop: @@ -2644,7 +2885,7 @@ conf bus 0: type: drop Default value: 0 Description: "Number of packets dropped due to byte rate or packet\n rate exceeds a certain limit on an ingress port.\\ipppDrop" - End address: 0x16f + End address: 0x170 Fields: - Default value: 0 Description: Number of dropped packets. @@ -2654,7 +2895,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_pac_count_drop_2 - Start address: 0x16f + Start address: 0x170 Statistics: block: ipp_pip name: ipppDrop @@ -2666,7 +2907,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Bitmask to turn Ingress Port Rate Limiter ON/OFF (1/0) for Ingress Port - End address: 0x101a + End address: 0x467d Fields: - Default value: 0 Description: Bitmask where the index is the Ingress Port @@ -2676,7 +2917,7 @@ conf bus 0: Width: 5 Number of entries: 1 Short name: rg_ingress_port_rate_limiter_enable - Start address: 0x101a + Start address: 0x467d Type: rw Width: 5 Ingress Port Rate Limiter Rate Configuration: @@ -2689,7 +2930,7 @@ conf bus 0: 3: 0x1840095 4: 0x1860095 Description: Token Bucket rate Configuration for Ingress Port Rate Limiter - End address: 0x1017 + End address: 0x467a Fields: - Default value: default: 1 @@ -2722,7 +2963,7 @@ conf bus 0: 2: 2 3: 2 4: 3 - Description: Select one of the five available core ticks. The tick frequencies are configured globaly in the core Tick Configuration register. + Description: Select one of the five available core ticks. The tick frequencies are configured globally in the core Tick Configuration register. End bit: 0x13 Name: tick Start bit: 0x11 @@ -2741,7 +2982,7 @@ conf bus 0: Width: 8 Number of entries: 5 Short name: rg_ingress_port_rate_limiter_rate - Start address: 0x1013 + Start address: 0x4676 Type: rw Width: 0x1c Ingress Received and Dropped Counter: @@ -2751,7 +2992,7 @@ conf bus 0: name: ipppDrop Default value: 0 Description: Number of packets received without errors on an ingress port but dropped during the ingress packet processing. \ipppDrop - End address: 0x1041 + End address: 0x46a4 Fields: - Default value: 0 Description: Number of packets. @@ -2762,7 +3003,7 @@ conf bus 0: Index: Ingress port Number of entries: 5 Short name: rg_ipp_igr_drop - Start address: 0x103d + Start address: 0x46a0 Statistics: block: ipp_pip name: ipppDrop @@ -2777,7 +3018,7 @@ conf bus 0: type: drop Default value: 0 Description: Number of packets dropped due to that a ports's ingress spanning tree protocol state was \textbf{\textit{Blocking}}\ifdef{\texMspt}{ or that port and packet VLAN's ingress multiple spanning tree instance state was \textbf{\textit{Discarding}}}{}.\ipppDrop - End address: 0x16d + End address: 0x16e Fields: - Default value: 0 Description: Number of dropped packets. @@ -2787,7 +3028,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_pac_count_drop_9 - Start address: 0x16d + Start address: 0x16e Statistics: block: ipp_pip name: ipppDrop @@ -2803,7 +3044,7 @@ conf bus 0: type: drop Default value: 0 Description: Number of packets dropped due to that a port's ingress spanning tree protocol state was \textbf{\textit{Learning}}\ifdef{\texMspt}{ or that port and packet VLAN's ingress multiple spanning tree instance state was \textbf{\textit{Learning}}}{}.\ipppDrop - End address: 0x16c + End address: 0x16d Fields: - Default value: 0 Description: Number of dropped packets. @@ -2813,7 +3054,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_pac_count_drop_8 - Start address: 0x16c + Start address: 0x16d Statistics: block: ipp_pip name: ipppDrop @@ -2829,7 +3070,7 @@ conf bus 0: type: drop Default value: 0 Description: Number of packets dropped due to that a port's ingress spanning tree protocol state was \textbf{\textit{Listening}}.\ipppDrop - End address: 0x16b + End address: 0x16c Fields: - Default value: 0 Description: Number of dropped packets. @@ -2839,19 +3080,44 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_pac_count_drop_7 - Start address: 0x16b + Start address: 0x16c Statistics: block: ipp_pip name: ipppDrop type: drop Type: rw Width: 0x18 + Ingress Transmission Gate Action: + Address step: 1 + Attributes: + - no_random_check + Default value: 0 + Description: 'The action of the current gate control list entry on a passing packet: the egress queue update (IEEE 802.1Q internal priority value). If updateQueue is set, the packet gets eQueue as its egress queue.' + End address: 0x3ce0 + Fields: + - Default value: 0 + Description: If set, eQueue field in this entry will replace the current egress queue. + End bit: 0 + Name: updateQueue + Start bit: 0 + Width: 1 + - Default value: 0 + Description: Egress queue + End bit: 3 + Name: eQueue + Start bit: 1 + Width: 3 + Number of entries: 0x10 + Short name: rg_ingressGateAction + Start address: 0x3cd1 + Type: rw + Width: 4 Ingress Transmission Gate Configuration: Address step: 8 Attributes: [] Default value: 0 Description: Setup configurations for ingress transmission gates. Hardware is not aware of the configuration updates unless an update request is triggered by writing 1 to \register{Ingress Transmission Gate Update}. The transmission gate execution will start using the new configuration when the current time meets the \field{Ingress Transmission Gate Configuration}{adminBaseTime}. - End address: 0x10d7 + End address: 0x473a Fields: - Default value: 0 Description: Determine the absolute PTP start time of the updated gate cycle. Encode the value as \texttt{\{seconds[47:0], nanoseconds[31:0]\}}; the nanoseconds field must be less than 1,000,000,000. The value needs to be larger than Current Time when an update request is issued. @@ -2886,7 +3152,7 @@ conf bus 0: Index: Gate ID Number of entries: 0x10 Short name: rg_config - Start address: 0x1058 + Start address: 0x46bb Type: rw Width: 0xf8 Ingress Transmission Gate Current Status: @@ -2894,8 +3160,8 @@ conf bus 0: Attributes: - no_random_check Default value: 0 - Description: Show current gate status. - End address: 0xb0a + Description: Show the gate state of the current gate control list entry. + End address: 0x45c2 Fields: - Default value: 0 Description: \tabTwo{Allow the packet to pass.}{Drop the packet.} @@ -2904,34 +3170,22 @@ conf bus 0: Start bit: 0 Width: 1 - Default value: 0 - Description: If set, eQueue field in this entry will replace the current egress queue. - End bit: 1 - Name: updateQueue - Start bit: 1 - Width: 1 - - Default value: 0 - Description: Egress queue - End bit: 4 - Name: eQueue - Start bit: 2 - Width: 3 - - Default value: 0 - Description: Maximum number of MSDU (L2 payload) octets that are allowed to pass when the current entry is open and activated. 0 means no limit. - End bit: 0x24 + Description: Maximum number of MSDU octets that are allowed to pass when the current entry is open and activated (IEEE 802.1Q IntervalOctetMax). The MSDU size of a packet is its length without DA, SA, VLAN tags, R-tag and FCS. 0 means no limit. + End bit: 0x20 Name: maxMSDU - Start bit: 5 + Start bit: 1 Width: 0x20 Number of entries: 0x10 - Short name: rg_ingressGate - Start address: 0xaeb + Short name: rg_ingressGateState + Start address: 0x45a3 Type: rw - Width: 0x25 + Width: 0x21 Ingress Transmission Gate Enabled: Address step: 1 Attributes: [] Default value: 0 Description: All Ingress Transmission Gate operations require this register set to 1. - End address: 0x1057 + End address: 0x46ba Fields: - Default value: 0 Description: If set, ingress transmission gate is enabled. @@ -2942,7 +3196,7 @@ conf bus 0: Index: Gate ID Number of entries: 0x10 Short name: rg_gate_en - Start address: 0x1048 + Start address: 0x46ab Type: rw Width: 1 Ingress Transmission Gate List: @@ -2950,7 +3204,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Gate control list. Each entry gives gate status for the current time window, as well as a time interval for counting the execution time before jumping to the next entry. When the total number of executed entries reaches the configured list length but a new gate cycle is not started, the gate status for the last entry will be kept till the restart. - End address: 0x1117 + End address: 0x477a Fields: - Default value: 0 Description: \tabTwo{Allow the packet to pass.}{Drop the packet.} @@ -2971,7 +3225,7 @@ conf bus 0: Start bit: 2 Width: 3 - Default value: 0 - Description: Maximum number of MSDU (L2 payload) octets that are allowed to pass when the current entry is open and activated. + Description: Maximum number of MSDU octets that are allowed to pass when the current entry is open and activated (IEEE 802.1Q IntervalOctetMax). The MSDU size of a packet is its length without DA, SA, VLAN tags, R-tag and FCS. End bit: 0x24 Name: maxMSDU Start bit: 5 @@ -2985,7 +3239,7 @@ conf bus 0: Index: Ingress Transmission Gate Address Number of entries: 0x10 Short name: r_list_ingress_transmission_gate - Start address: 0x10d8 + Start address: 0x473b Statistics: null Type: rw Width: 0x75 @@ -2995,7 +3249,7 @@ conf bus 0: - no_random_check Default value: 0 Description: When set to one a configuration update request is issued to the hardware. The set bit is always cleared after one cycle and \register{Ingress Transmission Gate Update Status} will be pulled high till the update process is done. - End address: 0x1127 + End address: 0x478a Fields: - Default value: 0 Description: Issue an update request to load \register{Ingress Transmission Gate Configuration} to the hardware. @@ -3006,7 +3260,7 @@ conf bus 0: Index: Gate ID Number of entries: 0x10 Short name: rg_update - Start address: 0x1118 + Start address: 0x477b Type: rw Width: 1 Ingress Transmission Gate Update Status: @@ -3015,7 +3269,7 @@ conf bus 0: - no_default_check Default value: 0 Description: For each gate id, showing if a new configuration is pending to be updated. \register{Ingress Transmission Gate Configuration} shall not be modified while an update process is pending. - End address: 0x1047 + End address: 0x46aa Fields: - Default value: 0 Description: 1 means \register{Ingress Transmission Gate Update} has been issued and 0 means the update operation is done. @@ -3025,7 +3279,7 @@ conf bus 0: Width: 0x10 Number of entries: 1 Short name: rg_config_pending - Start address: 0x1047 + Start address: 0x46aa Type: r Width: 0x10 L2 Aging Collision Shadow Table: @@ -3033,7 +3287,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: This table traces the \signal{valid} field of the \register{L2 Aging Collision Table} and is used by L2 forwarding to check if a hit in the \register{L2 Lookup Collision Table} is valid. Any software write to this table shall be updated to the \signal{valid} field of the \register{L2 Aging Collision Table}. - End address: 0xb80 + End address: 0x4199 Fields: - Default value: 0 Description: If this is set, then the corresponding \register{L2 Lookup Collision Table} entry is valid. @@ -3043,7 +3297,7 @@ conf bus 0: Width: 1 Number of entries: 2 Short name: rg_l2AgeCAM - Start address: 0xb7f + Start address: 0x4198 Type: rwh Width: 1 L2 Aging Collision Table: @@ -3052,10 +3306,10 @@ conf bus 0: - no_random_check Default value: 0 Description: This table holds the status of the entries in the \register{L2 Lookup Collision Table}. Any software write to the \signal{valid} field in this table shall be done in the \register{L2 Aging Collision Shadow Table}. - End address: 0x43 + End address: 0x45 Fields: - Default value: 0 - Description: Current aging status for the corresponding entry. \tabTwoByFour{0}{Invalid entry}{1-29}{Valid non-static entry}{30}{Invalid and reserved entry}{31}{Valid Static entry} + Description: Current aging status of corresponding entry. \tabTwoByFour{0}{Invalid entry}{1-29}{Valid non-static entry}{30}{Invalid and reserved entry}{31}{Valid Static entry} End bit: 4 Name: status Start bit: 0 @@ -3063,7 +3317,7 @@ conf bus 0: Index: \register{L2 Lookup Collision Table} hit index Number of entries: 2 Short name: rg_l2cam_status - Start address: 0x42 + Start address: 0x44 Type: rw Width: 5 L2 Aging Status Shadow Table: @@ -3071,8 +3325,8 @@ conf bus 0: Attributes: - no_random_check Default value: 0 - Description: This table traces the \register{L2 Aging Table} valid status and is used by L2 forwarding to check if a hit in the \register{L2 DA Hash Lookup Table} is valid. Any software write to this table shall be updated to the \register{L2 Aging Table} with a reasonble value. \ifdef{\texSaLearning}{Any software write to this table shall be copied to the \register{L2 Aging Status Shadow Table - Replica}}{} - End address: 0x3dc + Description: This table traces the \register{L2 Aging Table} valid status and is used by L2 forwarding to check if a hit in the \register{L2 DA Hash Lookup Table} is valid. Any software write to this table shall be updated to the \register{L2 Aging Table} with a reasonable value. \ifdef{\texSaLearning}{Any software write to this table shall be copied to the \register{L2 Aging Status Shadow Table - Replica}}{} + End address: 0x3688 Fields: - Default value: 0 Description: If this is set, then the corresponding hash table entry is valid. @@ -3084,7 +3338,7 @@ conf bus 0: Number of entries: 0x100 Number of tables: 4 Short name: r_l2DaAge_0_ss0 - Start address: 0x2dd + Start address: 0x3589 Statistics: null Type: rwh Width: 1 @@ -3093,8 +3347,8 @@ conf bus 0: Attributes: - no_random_check Default value: 0 - Description: This table traces the \register{L2 Aging Table} valid status field of the \register{L2 Aging Table} and is used by L2 forwarding to check if a hit in the \register{L2 SA Hash Lookup Table} is valid. Content of this table shall be identical as the \register{L2 Aging Status Shadow Table}. - End address: 0x9de + Description: This table traces the \register{L2 Aging Table} valid status field of the \register{L2 Aging Table} and is used by L2 forwarding to check if a hit in the \register{L2 SA Hash Lookup Table} is valid. Content of this table shall be identical to the \register{L2 Aging Status Shadow Table}. + End address: 0x3a8a Fields: - Default value: 0 Description: If this is set, then the corresponding hash table entry is valid. @@ -3106,7 +3360,7 @@ conf bus 0: Number of entries: 0x100 Number of tables: 4 Short name: r_l2SaAge_0_ss0 - Start address: 0x8df + Start address: 0x398b Statistics: null Type: rwh Width: 1 @@ -3115,11 +3369,11 @@ conf bus 0: Attributes: - no_random_check Default value: 0 - Description: This table uses the same addressing as the \register{L2 DA Hash Lookup Table} to show the status of each entries in that table. Any software write to any valid field in this table shall be done in the \register{L2 Aging Status Shadow Table}. \ifdef{\texSaLearning}{Any software write to this table shall be copied to the \register{L2 Aging Status Shadow Table - Replica}}{} - End address: 0x14c + Description: This table uses the same addressing as the \register{L2 DA Hash Lookup Table} to show the status of each entry in that table. Any software write to any valid field in this table shall be done in the \register{L2 Aging Status Shadow Table}. \ifdef{\texSaLearning}{Any software write to this table shall be copied to the \register{L2 Aging Status Shadow Table - Replica}}{} + End address: 0x14e Fields: - Default value: 0 - Description: Current aging status for the corresponding entry. \tabTwoByFour{0}{Invalid entry}{1-29}{Valid non-static entry}{30}{Invalid and reserved entry}{31}{Valid Static entry} + Description: Current aging status of corresponding entry. \tabTwoByFour{0}{Invalid entry}{1-29}{Valid non-static entry}{30}{Invalid and reserved entry}{31}{Valid Static entry} End bit: 4 Name: status Start bit: 0 @@ -3128,7 +3382,7 @@ conf bus 0: Number of entries: 0x100 Number of tables: 4 Short name: r_l2HashAge_0 - Start address: 0x4d + Start address: 0x4f Statistics: null Type: rwh Width: 5 @@ -3137,7 +3391,7 @@ conf bus 0: Attributes: [] Default value: 0x5c8 Description: Token Bucket Capacity Configuration for L2 Broadcast Storm Control - End address: 0x1020 + End address: 0x4683 Fields: - Default value: 0x5c8 Description: Capacity of the token bucket @@ -3147,7 +3401,7 @@ conf bus 0: Width: 0x14 Number of entries: 1 Short name: rg_l2_broadcast_storm_control_bucket_cap - Start address: 0x1020 + Start address: 0x4683 Type: rw Width: 0x14 L2 Broadcast Storm Control Bucket Threshold Configuration: @@ -3155,7 +3409,7 @@ conf bus 0: Attributes: [] Default value: 0x2e4 Description: Token Bucket Threshold Configuration for L2 Broadcast Storm Control - End address: 0x1021 + End address: 0x4684 Fields: - Default value: 0x2e4 Description: Minimum number of tokens in bucket for the status to be set to accept. @@ -3165,7 +3419,7 @@ conf bus 0: Width: 0x14 Number of entries: 1 Short name: rg_l2_broadcast_storm_control_bucket_thr - Start address: 0x1021 + Start address: 0x4684 Type: rw Width: 0x14 L2 Broadcast Storm Control Enable: @@ -3173,7 +3427,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Bitmask to turn L2 Broadcast Storm Control ON/OFF (1/0) for Ingress Port - End address: 0x1022 + End address: 0x4685 Fields: - Default value: 0 Description: Bitmask where the index is the Ingress Port @@ -3183,7 +3437,7 @@ conf bus 0: Width: 5 Number of entries: 1 Short name: rg_l2_broadcast_storm_control_enable - Start address: 0x1022 + Start address: 0x4685 Type: rw Width: 5 L2 Broadcast Storm Control Rate Configuration: @@ -3196,7 +3450,7 @@ conf bus 0: 3: 0x1840095 4: 0x1860095 Description: Token Bucket rate Configuration for L2 Broadcast Storm Control - End address: 0x101f + End address: 0x4682 Fields: - Default value: default: 1 @@ -3229,7 +3483,7 @@ conf bus 0: 2: 2 3: 2 4: 3 - Description: Select one of the five available core ticks. The tick frequencies are configured globaly in the core Tick Configuration register. + Description: Select one of the five available core ticks. The tick frequencies are configured globally in the core Tick Configuration register. End bit: 0x13 Name: tick Start bit: 0x11 @@ -3248,15 +3502,15 @@ conf bus 0: Width: 8 Number of entries: 5 Short name: rg_l2_broadcast_storm_control_rate - Start address: 0x101b + Start address: 0x467e Type: rw Width: 0x1c L2 DA Hash Lookup Table: Address step: 2 Attributes: [] Default value: 0 - Description: The L2 table is used for hash search based on the destination MAC address and a GID from the \register{VLAN Table}. When performing a L2 destination port lookup, \{GID, destination MAC\} is used as key for a hash calculation (see Section \hyperref[sec:macTabHash]{MAC Table Hashing}). The hash is then used as index into this table to read out the 4 buckets. The incoming \{GID, destination MAC\} are compared to all the buckets. If any of the buckets match then address was known. The result of the lookup will be read from the \register{L2 Destination Table} at the same address as the matching hash index and bucket. \ifdef{\texSaLearning}{Any software write to this table shall be copied to the \register{L2 SA Hash Lookup Table}}{}. - End address: 0x5dc + Description: The L2 table is used for hash search based on the destination MAC address and a GID from the \register{VLAN Table}. When performing an L2 destination port lookup, \{GID, destination MAC\} is used as key for a hash calculation (see Section \hyperref[sec:macTabHash]{MAC Table Hashing}). The hash is then used as index into this table to read out the 4 buckets. The incoming \{GID, destination MAC\} are compared to all the buckets. If any of the buckets match then the address was known. The result of the lookup will be read from the \register{L2 Destination Table} at the same address as the matching hash index and bucket. \ifdef{\texSaLearning}{Any software write to this table shall be copied to the \register{L2 SA Hash Lookup Table}}{}. + End address: 0x3588 Fields: - Default value: 0 Description: MAC address. @@ -3274,7 +3528,7 @@ conf bus 0: Number of entries: 0x100 Number of tables: 4 Short name: r_l2DaTable_0_ss0 - Start address: 0x3dd + Start address: 0x3389 Statistics: null Type: rwh Width: 0x31 @@ -3283,7 +3537,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: This table contains either a destination port or a pointer to the L2 multicast table.\ifdef{\texSaLearning}{Any software write to this table shall be copied to the \register{L2 Destination Table - Replica}}{}. - End address: 0x6de + End address: 0x378a Fields: - Default value: 0 Description: Unicast if set; multicast if cleared. Multicast means that a lookup to the \register{L2 Multicast Table} will occur and determine a list of destination ports. @@ -3293,29 +3547,29 @@ conf bus 0: Width: 1 - Default value: 0 Description: Destination port number or pointer into the \register{L2 Multicast Table}. - End bit: 3 + End bit: 5 Name: destPort_or_mcAddr Start bit: 1 - Width: 3 + Width: 5 - Default value: 0 Description: If set, the packet will be dropped and the \register{L2 Lookup Drop} incremented. - End bit: 4 + End bit: 6 Name: pktDrop - Start bit: 4 + Start bit: 6 Width: 1 Index: \tabAddrTwoRows{address 0 to 255} {\register{L2 DA Hash Lookup Table} address} {address 256 to 257} {\register{L2 Lookup Collision Table} address} Number of entries: 0x102 Short name: r_l2DaDest_ss0 - Start address: 0x5dd + Start address: 0x3689 Statistics: null Type: rwh - Width: 5 + Width: 7 L2 Destination Table - Replica: Address step: 1 Attributes: [] Default value: 0 - Description: This table is replicated from the \register{L2 Destination Table} and used by the learning engine allowing the learning engine and packet forwarding to process in parallel. Content of this table shall be identical as the \register{L2 Destination Table}. - End address: 0xae0 + Description: This table is replicated from the \register{L2 Destination Table} and used by the learning engine allowing the learning engine and packet forwarding to process in parallel. Content of this table shall be identical to the \register{L2 Destination Table}. + End address: 0x3b8c Fields: - Default value: 0 Description: Unicast if set; multicast if cleared. Multicast means that a lookup to the \register{L2 Multicast Table} will occur and determine a list of destination ports. @@ -3325,29 +3579,29 @@ conf bus 0: Width: 1 - Default value: 0 Description: Destination port number or pointer into the \register{L2 Multicast Table}. - End bit: 3 + End bit: 5 Name: destPort_or_mcAddr Start bit: 1 - Width: 3 + Width: 5 - Default value: 0 Description: If set, the packet will be dropped and the \register{L2 Lookup Drop} incremented. - End bit: 4 + End bit: 6 Name: pktDrop - Start bit: 4 + Start bit: 6 Width: 1 Index: \tabAddrTwoRows{address 0 to 255} {\register{L2 SA Hash Lookup Table} address} {address 256 to 257} {\register{L2 Lookup Collision Table} address} Number of entries: 0x102 Short name: r_l2SaDest_ss0 - Start address: 0x9df + Start address: 0x3a8b Statistics: null Type: rwh - Width: 5 + Width: 7 L2 Lookup Collision Table: Address step: 2 Attributes: [] Default value: 0 Description: Collision table for the \register{L2 DA Hash Lookup Table}. If there is a hash collision and all the buckets for that hash index are occupied then additional entries can be stored in the collision table. When searching this table, all entries are compared in parallel and the matching entry with the lowest address will be used as a match result. Chapter \hyperref[chap:Learning]{Learning and Aging} describes how to search and write to this table. - End address: 0xb0e + End address: 0x45c6 Fields: - Default value: 0 Description: MAC address @@ -3363,7 +3617,7 @@ conf bus 0: Width: 1 Number of entries: 2 Short name: rg_l2CAM - Start address: 0xb0b + Start address: 0x45c3 Type: rwh Width: 0x31 L2 Lookup Collision Table Masks: @@ -3371,7 +3625,7 @@ conf bus 0: Attributes: [] Default value: 0x1ffffffffffff Description: Masks for collision memory for the MAC address and the global identifier. Only the first \cHASHKEYREDUNDANTMASKS entries has masks on them. - End address: 0xb14 + End address: 0x45a2 Fields: - Default value: 0xffffffffffff Description: 'MAC address mask ' @@ -3387,7 +3641,7 @@ conf bus 0: Width: 1 Number of entries: 1 Short name: rg_l2CAM_Mask - Start address: 0xb13 + Start address: 0x45a1 Type: rw Width: 0x31 L2 Lookup Drop: @@ -3399,7 +3653,7 @@ conf bus 0: type: drop Default value: 0 Description: "Number of packets dropped in the L2 destination port lookup\n process. Either due to a drop flag\n in an \\register{L2 Destination Table} entry, or due to\n destination port not being member of the VLAN\n \\ifdef{\\texHairpin}{or due to not allowing destination port\n being the same as the source port}{}.\n \\ipppDrop" - End address: 0x16e + End address: 0x16f Fields: - Default value: 0 Description: Number of dropped packets. @@ -3409,7 +3663,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_pac_count_drop_1 - Start address: 0x16e + Start address: 0x16f Statistics: block: ipp_pip name: ipppDrop @@ -3421,7 +3675,7 @@ conf bus 0: Attributes: [] Default value: 0x5c8 Description: Token Bucket Capacity Configuration for L2 Multicast Storm Control - End address: 0x1028 + End address: 0x468b Fields: - Default value: 0x5c8 Description: Capacity of the token bucket @@ -3431,7 +3685,7 @@ conf bus 0: Width: 0x14 Number of entries: 1 Short name: rg_l2_multicast_storm_control_bucket_cap - Start address: 0x1028 + Start address: 0x468b Type: rw Width: 0x14 L2 Multicast Storm Control Bucket Threshold Configuration: @@ -3439,7 +3693,7 @@ conf bus 0: Attributes: [] Default value: 0x2e4 Description: Token Bucket Threshold Configuration for L2 Multicast Storm Control - End address: 0x1029 + End address: 0x468c Fields: - Default value: 0x2e4 Description: Minimum number of tokens in bucket for the status to be set to accept. @@ -3449,7 +3703,7 @@ conf bus 0: Width: 0x14 Number of entries: 1 Short name: rg_l2_multicast_storm_control_bucket_thr - Start address: 0x1029 + Start address: 0x468c Type: rw Width: 0x14 L2 Multicast Storm Control Enable: @@ -3457,7 +3711,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Bitmask to turn L2 Multicast Storm Control ON/OFF (1/0) for Ingress Port - End address: 0x102a + End address: 0x468d Fields: - Default value: 0 Description: Bitmask where the index is the Ingress Port @@ -3467,7 +3721,7 @@ conf bus 0: Width: 5 Number of entries: 1 Short name: rg_l2_multicast_storm_control_enable - Start address: 0x102a + Start address: 0x468d Type: rw Width: 5 L2 Multicast Storm Control Rate Configuration: @@ -3480,7 +3734,7 @@ conf bus 0: 3: 0x1840095 4: 0x1860095 Description: Token Bucket rate Configuration for L2 Multicast Storm Control - End address: 0x1027 + End address: 0x468a Fields: - Default value: default: 1 @@ -3513,7 +3767,7 @@ conf bus 0: 2: 2 3: 2 4: 3 - Description: Select one of the five available core ticks. The tick frequencies are configured globaly in the core Tick Configuration register. + Description: Select one of the five available core ticks. The tick frequencies are configured globally in the core Tick Configuration register. End bit: 0x13 Name: tick Start bit: 0x11 @@ -3532,7 +3786,7 @@ conf bus 0: Width: 8 Number of entries: 5 Short name: rg_l2_multicast_storm_control_rate - Start address: 0x1023 + Start address: 0x4686 Type: rw Width: 0x1c L2 Multicast Table: @@ -3540,7 +3794,7 @@ conf bus 0: Attributes: [] Default value: 0x1f Description: L2 multicast table. - End address: 0xb7e + End address: 0x4197 Fields: - Default value: 0x1f Description: L2 portmask entry members. If set, the port is part of multicast group and shall be transmitted to. @@ -3548,17 +3802,17 @@ conf bus 0: Name: mcPortMask Start bit: 0 Width: 5 - Number of entries: 8 + Number of entries: 0x20 Short name: r_l2McTable - Start address: 0xb77 + Start address: 0x4178 Type: rw Width: 5 L2 SA Hash Lookup Table: Address step: 2 Attributes: [] Default value: 0 - Description: L2 table used for hash search based on the source MAC and a GID from the \register{VLAN Table}. When performing a SA MAC learning check \{GID, Source MAC\} is used as key for a hash function (see Section \hyperref[sec:macTabHash]{MAC Table Hashing}) which calculates a hash index. The hash index points to this table that has 4 buckets. The incoming \{GID, source MAC\} are compared to all the 4 buckets. If any of the buckets match then address was known. The result of the lookup will be read from the \register{L2 Destination Table - Replica} at the same address as the matching hash index and bucket. Content of this table shall be identical as the \register{L2 DA Hash Lookup Table}. - End address: 0x8de + Description: L2 table used for hash search based on the source MAC and a GID from the \register{VLAN Table}. When performing a SA MAC learning check \{GID, Source MAC\} is used as key for a hash function (see Section \hyperref[sec:macTabHash]{MAC Table Hashing}) which calculates a hash index. The hash index points to this table that has 4 buckets. The incoming \{GID, source MAC\} are compared to all the 4 buckets. If any of the buckets match then the address was known. The result of the lookup will be read from the \register{L2 Destination Table - Replica} at the same address as the matching hash index and bucket. Content of this table shall be identical to the \register{L2 DA Hash Lookup Table}. + End address: 0x398a Fields: - Default value: 0 Description: MAC address. @@ -3576,7 +3830,7 @@ conf bus 0: Number of entries: 0x100 Number of tables: 4 Short name: r_l2SaTable_0_ss0 - Start address: 0x6df + Start address: 0x378b Statistics: null Type: rwh Width: 0x31 @@ -3585,7 +3839,7 @@ conf bus 0: Attributes: [] Default value: 0x5c8 Description: Token Bucket Capacity Configuration for L2 Unicast Flooding Storm Control - End address: 0x1030 + End address: 0x4693 Fields: - Default value: 0x5c8 Description: Capacity of the token bucket @@ -3595,7 +3849,7 @@ conf bus 0: Width: 0x14 Number of entries: 1 Short name: rg_l2_unicast_flooding_storm_control_bucket_cap - Start address: 0x1030 + Start address: 0x4693 Type: rw Width: 0x14 L2 Unicast Flooding Storm Control Bucket Threshold Configuration: @@ -3603,7 +3857,7 @@ conf bus 0: Attributes: [] Default value: 0x2e4 Description: Token Bucket Threshold Configuration for L2 Unicast Flooding Storm Control - End address: 0x1031 + End address: 0x4694 Fields: - Default value: 0x2e4 Description: Minimum number of tokens in bucket for the status to be set to accept. @@ -3613,7 +3867,7 @@ conf bus 0: Width: 0x14 Number of entries: 1 Short name: rg_l2_unicast_flooding_storm_control_bucket_thr - Start address: 0x1031 + Start address: 0x4694 Type: rw Width: 0x14 L2 Unicast Flooding Storm Control Enable: @@ -3621,7 +3875,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Bitmask to turn L2 Unicast Flooding Storm Control ON/OFF (1/0) for Ingress Port - End address: 0x1032 + End address: 0x4695 Fields: - Default value: 0 Description: Bitmask where the index is the Ingress Port @@ -3631,7 +3885,7 @@ conf bus 0: Width: 5 Number of entries: 1 Short name: rg_l2_unicast_flooding_storm_control_enable - Start address: 0x1032 + Start address: 0x4695 Type: rw Width: 5 L2 Unicast Flooding Storm Control Rate Configuration: @@ -3644,7 +3898,7 @@ conf bus 0: 3: 0x1840095 4: 0x1860095 Description: Token Bucket rate Configuration for L2 Unicast Flooding Storm Control - End address: 0x102f + End address: 0x4692 Fields: - Default value: default: 1 @@ -3677,7 +3931,7 @@ conf bus 0: 2: 2 3: 2 4: 3 - Description: Select one of the five available core ticks. The tick frequencies are configured globaly in the core Tick Configuration register. + Description: Select one of the five available core ticks. The tick frequencies are configured globally in the core Tick Configuration register. End bit: 0x13 Name: tick Start bit: 0x11 @@ -3696,43 +3950,45 @@ conf bus 0: Width: 8 Number of entries: 5 Short name: rg_l2_unicast_flooding_storm_control_rate - Start address: 0x102b + Start address: 0x468e Type: rw Width: 0x1c Latent Error Detection Configuration: Address step: 4 Attributes: [] Default value: 0x3220000006400000014 - Description: Configurations for the latent error detection function. - End address: 0x128a + Description: Configurations for the latent error detection function of the sequence recovery (IEEE 802.1CB 7.4.4). The periods count \register{Latent Error Detection Tick}. After the configuration of a FRER ID is changed, or after its passed or discarded counter in the FRER Sequence Recovery Statistics is written and the FRER ID receives packets again, the latent error detection compares counts from before and after the change until the next latent error reset. Software shall clear \register{Latent Error Detection Status} of the FRER ID one reset period after such a change. + End address: 0x4cdd Fields: - Default value: 0x14 - Description: Number of ticks (\register{Latent Error Detection Tick}) for the latent error test period. Set to zero to disable latent error detection. Only valid when the sequenceRecovery field is set to one. + Description: Number of ticks between two latent error tests (IEEE 802.1CB frerSeqRcvyLatentErrorPeriod). Set to zero to disable the test. Only valid when the sequenceRecovery field is set to one. End bit: 0x1f Name: latentErrorTestPeriod Start bit: 0 Width: 0x20 - Default value: 0x64 - Description: An error flag is raised when the offset counter between two latent error test period exceed this value. + Description: An error is raised when a test finds that passed*(paths-1)-discarded has moved by more than this value since the last reset (IEEE 802.1CB frerSeqRcvyLatentErrorDifference). End bit: 0x3f Name: latentErrorDifference Start bit: 0x20 Width: 0x20 - Default value: 2 - Description: Number of member streams in the compound stream used by the latent error detection. + Description: Number of member streams in the compound stream used by the latent error detection (IEEE 802.1CB frerSeqRcvyLatentErrorPaths). No error is raised for values below 2. End bit: 0x42 Name: latentErrorPaths Start bit: 0x40 Width: 3 - Default value: 0x64 - Description: Number of ticks to reset the latent error test and reload the current offset as the base offset for future comparisons. + Description: Number of ticks between two latent error resets, which take the current passed*(paths-1)-discarded as the base for the following tests (IEEE 802.1CB frerSeqRcvyLatentResetPeriod). Zero takes a new base continuously, which effectively disables the error. End bit: 0x62 Name: latentResetPeriod Start bit: 0x43 Width: 0x20 + Index: FRER ID Number of entries: 0x10 - Short name: rg_led_config - Start address: 0x124b + Short name: config_frer_led_0 + Start address: 0x4c9e + Statistics: null Type: rw Width: 0x63 Latent Error Detection Status: @@ -3742,17 +3998,17 @@ conf bus 0: name: frer Default value: 0 Description: An error condition is reported to this register when latent error detection raise an error. - End address: 0x13ba + End address: 0x4ced Fields: - Default value: 0 - Description: If the value is 1, the offset of FRER packet drops between two test periods is larger than expected. + Description: If the value is 1, a latent error test found that passed*(paths-1)-discarded has moved by more than latentErrorDifference since the last reset. Write 0 to clear. End bit: 0 Name: error Start bit: 0 Width: 1 Number of entries: 0x10 Short name: rg_led - Start address: 0x13ab + Start address: 0x4cde Statistics: block: ipp_mmp name: frer @@ -3763,25 +4019,25 @@ conf bus 0: Attributes: [] Default value: 0 Description: Latent error detection period is counting based on this tick. - End address: 0x11ea + End address: 0x493d Fields: - Default value: 0 - Description: Select one of the 5 available ticks. The tick frequencies are configured globaly in the Core Tick Configuration register. + Description: Select one of the 5 available ticks. The tick frequencies are configured globally in the Core Tick Configuration register. End bit: 2 Name: periodTick Start bit: 0 Width: 3 Number of entries: 1 Short name: rg_led_tick - Start address: 0x11ea + Start address: 0x493d Type: rw Width: 3 Learning And Aging Enable: Address step: 1 Attributes: [] Default value: 0x57 - Description: Enable/Disable the learning and aging function. If software needs to take fully control over learning and aging tables by writting to the \hyperref[sec:FIB]{FIB} directly, the learning and aging units should be completely turned off, which means all fields in this register have to be cleared to 0, partly reset is not allowed. \ifdef{\texLearnCtrl}{When the learning and aging units are turned on, software still has controllablity over learning and aging by injecting user defined learning packets.}{} - End address: 0x3a + Description: Enable/Disable the learning and aging function. If software needs to take full control over learning and aging tables by writing to the \hyperref[sec:FIB]{FIB} directly, the learning and aging units should be completely turned off, which means all fields in this register have to be cleared to 0, a partial reset is not allowed. \ifdef{\texLearnCtrl}{When the learning and aging units are turned on, software still has controllablity over learning and aging by injecting user defined learning packets.}{} + End address: 0x3c Fields: - Default value: 1 Description: If set, the learning unit will be activated. @@ -3809,15 +4065,15 @@ conf bus 0: Width: 5 Number of entries: 1 Short name: rg_le_ae_control - Start address: 0x3a + Start address: 0x3c Type: rw Width: 8 Learning Conflict: Address step: 2 Attributes: [] Default value: 0 - Description: Status register for the failed port move operation. A valid status means the L2 Forwarding Information Base cannot bind the existing {GID, MAC} to a new port. Once the status register is updated from the hardware, no more fails can be updated untill the software clears the valid field. - End address: 0x4a + Description: Status register for the failed port move operation. A valid status means the L2 Forwarding Information Base cannot bind the existing {GID, MAC} to a new port. Once the status register is updated from the hardware, no more fails can be updated until the software clears the valid field. + End address: 0x4c Fields: - Default value: 0 Description: Indicates hardware has written a learning conflict to this status register. Write 0 to clear. @@ -3845,7 +4101,7 @@ conf bus 0: Width: 3 Number of entries: 1 Short name: rg_le_conflict - Start address: 0x49 + Start address: 0x4b Type: rw Width: 0x35 Learning Overflow: @@ -3853,10 +4109,10 @@ conf bus 0: Attributes: [] Default value: 0 Description: Status register for the failed hardware learning operation. A valid status means the L2 Forwarding Information Base cannot find an available slot for the unknown {GID, MAC}. Once the status register is updated from the hardware, no more fails can be updated until the software clears the valid field. - End address: 0x4c + End address: 0x4e Fields: - Default value: 0 - Description: Indicates hardware has written a learning overflow to this status register, Write 0 to clear. + Description: Indicates hardware has written a learning overflow to this status register. Write 0 to clear. End bit: 0 Name: valid Start bit: 0 @@ -3881,7 +4137,7 @@ conf bus 0: Width: 3 Number of entries: 1 Short name: rg_le_overflow - Start address: 0x4b + Start address: 0x4d Type: rw Width: 0x35 MAC Interface Counters For RX: @@ -3892,7 +4148,7 @@ conf bus 0: name: rxIf Default value: 0 Description: Counters for the interface protocol checkers. The counters wrap. \rxIf - End address: 0x11 + End address: 0x13 Fields: - Default value: 0 Description: Correct packets completed @@ -3909,7 +4165,7 @@ conf bus 0: Index: Ingress Port Number of entries: 5 Short name: rg_assert_counter - Start address: 8 + Start address: 10 Statistics: block: sp_if name: rxIf @@ -3923,7 +4179,7 @@ conf bus 0: name: txIf Default value: 0 Description: Counters for the interface protocol checkers. The counters wrap. \txIf - End address: 0x39 + End address: 0x3b Fields: - Default value: 0 Description: Correct packets completed @@ -3946,7 +4202,7 @@ conf bus 0: Index: Egress Port Number of entries: 5 Short name: rg_assert_counter - Start address: 0x26 + Start address: 0x28 Statistics: block: ps_if name: txIf @@ -3961,7 +4217,7 @@ conf bus 0: type: error Default value: 0 Description: Number of broken packets dropped. \macBrokenPkt - End address: 0x1b + End address: 0x1d Fields: - Default value: 0 Description: Number of packets. @@ -3972,7 +4228,7 @@ conf bus 0: Index: Ingress Port Number of entries: 5 Short name: rg_count_broken - Start address: 0x17 + Start address: 0x19 Statistics: block: sp_broken name: macBrokenPkt @@ -3989,7 +4245,7 @@ conf bus 0: type: error Default value: 0 Description: Number of packets dropped due to length above \register{MAC RX Maximum Packet Length}. \macRxMax - End address: 0x25 + End address: 0x27 Fields: - Default value: 0 Description: Number of packets. @@ -4000,7 +4256,7 @@ conf bus 0: Index: Ingress Port Number of entries: 5 Short name: rg_rx_max - Start address: 0x21 + Start address: 0x23 Statistics: block: sp_minmax name: macRxMax @@ -4012,7 +4268,7 @@ conf bus 0: Attributes: [] Default value: 0x641 Description: Packets with length above this value will be dropped. - End address: 0x16 + End address: 0x18 Fields: - Default value: 0x641 Description: Number of bytes. @@ -4023,7 +4279,7 @@ conf bus 0: Index: Ingress Port Number of entries: 5 Short name: rg_max_ref - Start address: 0x12 + Start address: 0x14 Type: rwu Width: 0x18 MAC RX Short Packet Drop: @@ -4036,7 +4292,7 @@ conf bus 0: type: error Default value: 0 Description: Number of packets dropped due to length below 60 bytes. \macRxMin - End address: 0x20 + End address: 0x22 Fields: - Default value: 0 Description: Number of packets. @@ -4047,7 +4303,7 @@ conf bus 0: Index: Ingress Port Number of entries: 5 Short name: rg_rx_min - Start address: 0x1c + Start address: 0x1e Statistics: block: sp_minmax name: macRxMin @@ -4059,7 +4315,7 @@ conf bus 0: Attributes: [] Default value: 1 Description: Mapping table from MPLS EXP priority fields to egress queues. - End address: 0xda0 + End address: 0x4168 Fields: - Default value: 1 Description: Egress queue @@ -4069,7 +4325,7 @@ conf bus 0: Width: 3 Number of entries: 8 Short name: r_mplsCos2Queue - Start address: 0xd99 + Start address: 0x4161 Type: rw Width: 3 MPLS EXP Field To Packet Color Mapping Table: @@ -4077,7 +4333,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Mapping table from MPLS EXP priority fields to packet initial color. - End address: 0xb88 + End address: 0x3f58 Fields: - Default value: 0 Description: Packet initial color @@ -4087,39 +4343,76 @@ conf bus 0: Width: 2 Number of entries: 8 Short name: r_mplsCos2Color - Start address: 0xb81 + Start address: 0x3f51 Type: rw Width: 2 - Max SDU Filter: + Map Queue to Priority: Address step: 1 Attributes: [] - Default value: 0x3fff - Description: Packet length check based on the stream filter ID. Packet failed to pass the filter will be dropped and can optionally block the further stream with the same stream filter ID. - End address: 0x112f + Default value: 0xfac688 + Description: Map from egress queue to egress priority. Note that this setting must not be changed for any queue with packets queued. + End address: 0x4d77 Fields: - - Default value: 0x3fff - Description: Maximum number of bytes for a single packet. A packet is dropped if the packet length exceeds this value. Value 0 means no check. - End bit: 13 - Name: maxSDU - Start bit: 0 - Width: 14 - Default value: 0 - Description: If this field is set to 1, A packet failed to pass the max SDU filter will set \register{Max SDU Filter Blocking} to 1 and then block all traffic with the same stream filter ID. The blocking status can be cleared by writing 0 to this field or the \register{Max SDU Filter Blocking} register. + Description: The priority for queue 0 + End bit: 2 + Name: prio0 + Start bit: 0 + Width: 3 + - Default value: 1 + Description: The priority for queue 1 + End bit: 5 + Name: prio1 + Start bit: 3 + Width: 3 + - Default value: 2 + Description: The priority for queue 2 + End bit: 8 + Name: prio2 + Start bit: 6 + Width: 3 + - Default value: 3 + Description: The priority for queue 3 + End bit: 11 + Name: prio3 + Start bit: 9 + Width: 3 + - Default value: 4 + Description: The priority for queue 4 End bit: 14 - Name: blockingEn - Start bit: 14 - Width: 1 - Number of entries: 8 - Short name: rg_maxSDU - Start address: 0x1128 + Name: prio4 + Start bit: 12 + Width: 3 + - Default value: 5 + Description: The priority for queue 5 + End bit: 0x11 + Name: prio5 + Start bit: 15 + Width: 3 + - Default value: 6 + Description: The priority for queue 6 + End bit: 0x14 + Name: prio6 + Start bit: 0x12 + Width: 3 + - Default value: 7 + Description: The priority for queue 7 + End bit: 0x17 + Name: prio7 + Start bit: 0x15 + Width: 3 + Index: Egress port + Number of entries: 5 + Short name: rg_q2prio + Start address: 0x4d73 Type: rw - Width: 15 + Width: 0x18 Max SDU Filter Blocking: Address step: 1 Attributes: [] Default value: 0 Description: Blocking status of the stream filter. - End address: 0x1137 + End address: 0x479a Fields: - Default value: 0 Description: When this field is set to 1 by the core, the corresponding stream filter is under the blocking status. As a consequence, all packets to this stream filter will be dropped. Clear this field to allow packets enter the stream filter again. @@ -4127,9 +4420,9 @@ conf bus 0: Name: blocked Start bit: 0 Width: 1 - Number of entries: 8 + Number of entries: 0x10 Short name: rg_sduBlocking - Start address: 0x1130 + Start address: 0x478b Type: rw Width: 1 Maximum Allowed VLAN Drop: @@ -4141,7 +4434,7 @@ conf bus 0: type: drop Default value: 0 Description: "Number of packets dropped due to too many VLAN tags. Packets\n are dropped if number of VLANS is above the limit setup in\n the \\register{Source Port Table}.\\ipppDrop" - End address: 0x173 + End address: 0x174 Fields: - Default value: 0 Description: Number of dropped packets. @@ -4151,7 +4444,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_pac_count_drop_12 - Start address: 0x173 + Start address: 0x174 Statistics: block: ipp_pip name: ipppDrop @@ -4167,7 +4460,7 @@ conf bus 0: type: drop Default value: 0 Description: "Number of packets dropped due to insufficient VLAN tags. Packets\n are dropped if number of VLANS is below the limit setup in\n the \\register{Source Port Table}.\\ipppDrop" - End address: 0x172 + End address: 0x173 Fields: - Default value: 0 Description: Number of dropped packets. @@ -4177,7 +4470,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_pac_count_drop_11 - Start address: 0x172 + Start address: 0x173 Statistics: block: ipp_pip name: ipppDrop @@ -4188,27 +4481,27 @@ conf bus 0: Address step: 1 Attributes: - no_random_check - Default value: 0x400 + Default value: 0x800 Description: Minimum number of cells available in the buffer memory - End address: 0x1463 + End address: 0x4da5 Fields: - - Default value: 0x400 + - Default value: 0x800 Description: Number of cells. - End bit: 10 + End bit: 11 Name: cells Start bit: 0 - Width: 11 + Width: 12 Number of entries: 1 Short name: rg_min_buff_avail - Start address: 0x1463 + Start address: 0x4da5 Type: r - Width: 11 + Width: 12 Output Disable: Address step: 1 Attributes: [] Default value: 0 Description: Bitmask for disabling the egress queues on egress ports. - End address: 0x1468 + End address: 0x4daa Fields: - Default value: 0 Description: If set, stop scheduling new packets for output from queue 0 on this egress port. @@ -4261,7 +4554,7 @@ conf bus 0: Index: Egress port Number of entries: 5 Short name: rg_disable_queue_output - Start address: 0x1464 + Start address: 0x4da6 Type: rw Width: 8 PB Packet Head Counter: @@ -4272,7 +4565,7 @@ conf bus 0: name: pbTxPkt Default value: 0 Description: Number of packet first cells through the Shared Buffer Memory module. \pbTxPkt - End address: 0x1550 + End address: 0x4efa Fields: - Default value: 0 Description: Number of packet headers. @@ -4282,7 +4575,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_pb_ofirst - Start address: 0x1550 + Start address: 0x4efa Statistics: block: pb_out name: pbTxPkt @@ -4296,7 +4589,7 @@ conf bus 0: name: pbTxPkt Default value: 0 Description: Number of packet last cells through the Shared Buffer Memory module. \pbTxPkt - End address: 0x1551 + End address: 0x4efb Fields: - Default value: 0 Description: Number of packet tails. @@ -4306,7 +4599,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_pb_olast - Start address: 0x1551 + Start address: 0x4efb Statistics: block: pb_out name: pbTxPkt @@ -4321,7 +4614,7 @@ conf bus 0: type: error Default value: 0 Description: Number of errors occured in the PS-converter. \psError - End address: 0x1647 + End address: 0x4ffc Fields: - Default value: 0 Description: Number of packets which have empty cycles caused by the internal PS-converter but not the external halt during packet transmissions. @@ -4337,7 +4630,7 @@ conf bus 0: Width: 8 Number of entries: 5 Short name: rg_ps_error - Start address: 0x1643 + Start address: 0x4ff8 Statistics: block: ps_out name: psError @@ -4352,7 +4645,7 @@ conf bus 0: name: psTxPkt Default value: 0 Description: Number of packet first cells through the Parallel to Serial module.\psTxPkt - End address: 0x1641 + End address: 0x4ff6 Fields: - Default value: 0 Description: Number of packet headers. @@ -4362,7 +4655,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_ps_ofirst - Start address: 0x1641 + Start address: 0x4ff6 Statistics: block: ps_out name: psTxPkt @@ -4376,7 +4669,7 @@ conf bus 0: name: psTxPkt Default value: 0 Description: Number of packet last cells through the Parallel to Serial module.\psTxPkt - End address: 0x1642 + End address: 0x4ff7 Fields: - Default value: 0 Description: Number of packet tails. @@ -4386,201 +4679,75 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_ps_olast - Start address: 0x1642 + Start address: 0x4ff7 Statistics: block: ps_out name: psTxPkt Type: rw Width: 0x18 - PSFP Matching Frame Counter: - Address step: 1 + PSFP Statistics: + Address step: 0x10 Attributes: - block: ipp_mmp name: psfp Default value: 0 - Description: Number of packets that hit stream filter entries - End address: 0x1190 + Description: Per stream filter packet counters of PSFP. + End address: 0x490b Fields: - Default value: 0 - Description: Number of packets. - End bit: 0x17 - Name: packets + Description: Number of packets that hit stream filter entries. + End bit: 0x3f + Name: match Start bit: 0 - Width: 0x18 - Number of entries: 8 - Short name: rg_psfp_match - Start address: 0x1189 + Width: 0x40 + - Default value: 0 + Description: Number of packets passing the max SDU filter. + End bit: 0x7f + Name: sduPass + Start bit: 0x40 + Width: 0x40 + - Default value: 0 + Description: Number of packets dropped by the max SDU filter. + End bit: 0xbf + Name: sduDrop + Start bit: 0x80 + Width: 0x40 + - Default value: 0 + Description: Number of packets passing the stream gate. + End bit: 0xff + Name: gatePass + Start bit: 0xc0 + Width: 0x40 + - Default value: 0 + Description: Number of packets dropped by the stream gate. + End bit: 0x13f + Name: gateDrop + Start bit: 0x100 + Width: 0x40 + - Default value: 0 + Description: Number of packets dropped by the flow meter. + End bit: 0x17f + Name: mmpDrop + Start bit: 0x140 + Width: 0x40 + Index: Stream Filter ID + Number of entries: 0x10 + Short name: bk_psfp_stat_0 + Start address: 0x480c Statistics: block: ipp_mmp name: psfp Type: rw - Width: 0x18 - PSFP Not Passing Frame Counter: - Address step: 1 + Width: 0x180 + Port 0 Queue Drop Counter: + Address step: 2 Attributes: - - block: ipp_mmp - name: psfp - Default value: 0 - Description: Number of packets dropped by the stream gate - End address: 0x11b0 - Fields: - - Default value: 0 - Description: Number of packets. - End bit: 0x17 - Name: packets - Start bit: 0 - Width: 0x18 - Number of entries: 8 - Short name: rg_psfp_gate_drop - Start address: 0x11a9 - Statistics: - block: ipp_mmp - name: psfp - Type: rw - Width: 0x18 - PSFP Not Passing SDU Counter: - Address step: 1 - Attributes: - - block: ipp_mmp - name: psfp - Default value: 0 - Description: Number of packets dropped by the max SDU filter - End address: 0x11a0 - Fields: - - Default value: 0 - Description: Number of packets. - End bit: 0x17 - Name: packets - Start bit: 0 - Width: 0x18 - Number of entries: 8 - Short name: rg_psfp_sdu_drop - Start address: 0x1199 - Statistics: - block: ipp_mmp - name: psfp - Type: rw - Width: 0x18 - PSFP Passing Frame Counter: - Address step: 1 - Attributes: - - block: ipp_mmp - name: psfp - Default value: 0 - Description: Number of packets passing the stream gate - End address: 0x11a8 - Fields: - - Default value: 0 - Description: Number of packets. - End bit: 0x17 - Name: packets - Start bit: 0 - Width: 0x18 - Number of entries: 8 - Short name: rg_psfp_gate_pass - Start address: 0x11a1 - Statistics: - block: ipp_mmp - name: psfp - Type: rw - Width: 0x18 - PSFP Passing SDU Counter: - Address step: 1 - Attributes: - - block: ipp_mmp - name: psfp - Default value: 0 - Description: Number of packets passing the max SDU filter - End address: 0x1198 - Fields: - - Default value: 0 - Description: Number of packets. - End bit: 0x17 - Name: packets - Start bit: 0 - Width: 0x18 - Number of entries: 8 - Short name: rg_psfp_sdu_pass - Start address: 0x1191 - Statistics: - block: ipp_mmp - name: psfp - Type: rw - Width: 0x18 - PSFP Red Frames Counter: - Address step: 1 - Attributes: - - block: ipp_mmp - name: psfp - Default value: 0 - Description: Number of packets dropped by the flow meter - End address: 0x11b8 - Fields: - - Default value: 0 - Description: Number of packets. - End bit: 0x17 - Name: packets - Start bit: 0 - Width: 0x18 - Number of entries: 8 - Short name: rg_psfp_mmp_drop - Start address: 0x11b1 - Statistics: - block: ipp_mmp - name: psfp - Type: rw - Width: 0x18 - PTP Tick Configuration: - Address step: 1 - Attributes: [] - Default value: 0x14007a12 - Description: Global register for setting the frequency of the ptp tick - End address: 6 - Fields: - - Default value: 0x7a12 - Description: The master PTP Tick will be issued once every $rg_tick_div.clkDivider/256$ core clock cycles. If set to zero, there will be no tick. - End bit: 0x18 - Name: clkDivider - Start bit: 0 - Width: 0x19 - - Default value: 10 - Description: The four ticks derived from the master ptp tick are issued once every $rg_tick_div.stepDivider^{tick_number+1}$ master ticks. The master tick is tick number 0. If stepDivider is set to zero, there will be no ticks except possibly the master tick. - End bit: 0x1c - Name: stepDivider - Start bit: 0x19 - Width: 4 - Number of entries: 1 - Short name: rg_ptp_tick_div - Start address: 6 - Type: rw - Width: 0x1d - PTP Tick Select: - Address step: 1 - Attributes: [] - Default value: 0 - Description: Global register for setting clock input to the ptp tick divider - End address: 7 - Fields: - - Default value: 0 - Description: 'Select the source clock for the PTP Tick divider. 0: disabled, 1: core clock, 2: debug_write_data[1], 3: reserved' - End bit: 1 - Name: clkSelect - Start bit: 0 - Width: 2 - Number of entries: 1 - Short name: rg_ptp_tick_sel - Start address: 7 - Type: rw - Width: 2 - Port 0 Queue Drop Counter: - Address step: 2 - Attributes: - - block: pb_in - name: erm - type: drop + - block: pb_in + name: erm + type: drop Default value: 0 Description: Number of packets and bytes dropped on each queue by the egress resource manager. \erm - End address: 0x13ef + End address: 0x4d2c Fields: - Default value: 0 Description: Total number of dropped packets. @@ -4597,7 +4764,7 @@ conf bus 0: Index: Egress Queue Number of entries: 8 Short name: r_count_drop_erm_p0_ss0 - Start address: 0x13e0 + Start address: 0x4d1d Statistics: block: pb_in name: erm @@ -4612,7 +4779,7 @@ conf bus 0: type: drop Default value: 0 Description: Number of packets and bytes dropped on each queue by the egress resource manager. \erm - End address: 0x13ff + End address: 0x4d3c Fields: - Default value: 0 Description: Total number of dropped packets. @@ -4629,7 +4796,7 @@ conf bus 0: Index: Egress Queue Number of entries: 8 Short name: r_count_drop_erm_p1_ss0 - Start address: 0x13f0 + Start address: 0x4d2d Statistics: block: pb_in name: erm @@ -4644,7 +4811,7 @@ conf bus 0: type: drop Default value: 0 Description: Number of packets and bytes dropped on each queue by the egress resource manager. \erm - End address: 0x140f + End address: 0x4d4c Fields: - Default value: 0 Description: Total number of dropped packets. @@ -4661,7 +4828,7 @@ conf bus 0: Index: Egress Queue Number of entries: 8 Short name: r_count_drop_erm_p2_ss0 - Start address: 0x1400 + Start address: 0x4d3d Statistics: block: pb_in name: erm @@ -4676,7 +4843,7 @@ conf bus 0: type: drop Default value: 0 Description: Number of packets and bytes dropped on each queue by the egress resource manager. \erm - End address: 0x141f + End address: 0x4d5c Fields: - Default value: 0 Description: Total number of dropped packets. @@ -4693,7 +4860,7 @@ conf bus 0: Index: Egress Queue Number of entries: 8 Short name: r_count_drop_erm_p3_ss0 - Start address: 0x1410 + Start address: 0x4d4d Statistics: block: pb_in name: erm @@ -4708,7 +4875,7 @@ conf bus 0: type: drop Default value: 0 Description: Number of packets and bytes dropped on each queue by the egress resource manager. \erm - End address: 0x142f + End address: 0x4d6c Fields: - Default value: 0 Description: Total number of dropped packets. @@ -4725,7 +4892,7 @@ conf bus 0: Index: Egress Queue Number of entries: 8 Short name: r_count_drop_erm_p4_ss0 - Start address: 0x1420 + Start address: 0x4d5d Statistics: block: pb_in name: erm @@ -4737,61 +4904,61 @@ conf bus 0: Attributes: [] Default value: 0x1f Description: Determine if port move is allowed on static entries. - End address: 0xb1e + End address: 0x3cca Fields: - Default value: 0x1f - Description: This field configures which source ports that are allowed to change their static GID and MAC to other ports. One bit for each port where bit 0 corresponds to port 0. When the L2 forwarding information base identifies a GID, MAC SA and source port combination that conflicts with a existing static entry, if the previous binded port has a coressponding bit set to 1 in this field, it allows the learning engine to update the GID and MAC to the current source port. + Description: This field configures which source ports are allowed to change their static GID and MAC to other ports. One bit for each port where bit 0 corresponds to port 0. When the L2 forwarding information base identifies a GID, MAC SA and source port combination that conflicts with a existing static entry, if the previously bound port has a corresponding bit set to 1 in this field, it allows the learning engine to update the GID and MAC to the current source port. End bit: 4 Name: allowPortMoveOnStatic Start bit: 0 Width: 5 Number of entries: 1 Short name: rg_portMove - Start address: 0xb1e + Start address: 0x3cca Type: rw Width: 5 Port Shaper Bucket Capacity Configuration: Address step: 1 Attributes: [] - Default value: 0x8ef8 + Default value: 0x927c Description: Token Bucket Capacity Configuration for Port Shaper - End address: 0x154d + End address: 0x4ef7 Fields: - - Default value: 0x8ef8 + - Default value: 0x927c Description: Capacity of the token bucket - End bit: 0x11 + End bit: 0x13 Name: bucketCapacity Start bit: 0 - Width: 0x12 + Width: 0x14 Number of entries: 1 Short name: rg_port_shaper_bucket_cap - Start address: 0x154d + Start address: 0x4ef7 Type: rw - Width: 0x12 + Width: 0x14 Port Shaper Bucket Threshold Configuration: Address step: 1 Attributes: [] - Default value: 0x2fa8 + Default value: 0x30d4 Description: Token Bucket Threshold Configuration for Port Shaper - End address: 0x154e + End address: 0x4ef8 Fields: - - Default value: 0x2fa8 + - Default value: 0x30d4 Description: Minimum number of tokens in bucket for the status to be set to accept. - End bit: 0x11 + End bit: 0x13 Name: threshold Start bit: 0 - Width: 0x12 + Width: 0x14 Number of entries: 1 Short name: rg_port_shaper_bucket_thr - Start address: 0x154e + Start address: 0x4ef8 Type: rw - Width: 0x12 + Width: 0x14 Port Shaper Enable: Address step: 1 Attributes: [] Default value: 0 Description: Bitmask to turn Port Shaper ON/OFF (1/0) for Egress Port - End address: 0x154f + End address: 0x4ef9 Fields: - Default value: 0 Description: Bitmask where the index is the Egress Port @@ -4801,20 +4968,20 @@ conf bus 0: Width: 5 Number of entries: 1 Short name: rg_port_shaper_enable - Start address: 0x154f + Start address: 0x4ef9 Type: rw Width: 5 Port Shaper Rate Configuration: Address step: 1 Attributes: [] Default value: - 0: 0xc00988 - 1: 0xc00988 - 2: 0xc00988 - 3: 0xc00988 - 4: 0xc000f4 + 0: 0xc009c4 + 1: 0xc009c4 + 2: 0xc009c4 + 3: 0xc009c4 + 4: 0xc000fa Description: Token Bucket rate Configuration for Port Shaper - End address: 0x154c + End address: 0x4ef6 Fields: - Default value: default: 0 @@ -4829,12 +4996,12 @@ conf bus 0: Start bit: 0 Width: 1 - Default value: - default: 0x4c4 - 0: 0x4c4 - 1: 0x4c4 - 2: 0x4c4 - 3: 0x4c4 - 4: 0x7a + default: 0x4e2 + 0: 0x4e2 + 1: 0x4e2 + 2: 0x4e2 + 3: 0x4e2 + 4: 0x7d Description: The number of tokens added each tick End bit: 15 Name: tokens @@ -4847,7 +5014,7 @@ conf bus 0: 2: 0 3: 0 4: 0 - Description: Select one of the five available PTP ticks. The tick frequencies are configured globaly in the PTP Tick Configuration register. + Description: Select one of the five available core ticks. The tick frequencies are configured globally in the core Tick Configuration register. End bit: 0x12 Name: tick Start bit: 0x10 @@ -4872,91 +5039,64 @@ conf bus 0: Width: 1 Number of entries: 5 Short name: rg_port_shaper_rate - Start address: 0x1548 + Start address: 0x4ef2 Type: rw Width: 0x1c - Queue Off Drop: - Address step: 1 - Attributes: - - drop_counter_no_check - - block: ipp_pip - name: preEppDrop - type: drop - Default value: 0 - Description: Number of packets dropped due to the queue being turned off.\preEppDrop - End address: 0x1037 - Fields: - - Default value: 0 - Description: Number of dropped packets. - End bit: 0x17 - Name: packets - Start bit: 0 - Width: 0x18 - Index: Egress Port - Number of entries: 5 - Short name: rg_pac_count_drop_5 - Start address: 0x1033 - Statistics: - block: ipp_pip - name: preEppDrop - type: drop - Type: rw - Width: 0x18 - Queue Shaper Bucket Capacity Configuration: + Prio Shaper Bucket Capacity Configuration: Address step: 1 Attributes: [] Default value: 0x927c - Description: Token Bucket Capacity Configuration for Queue Shaper - End address: 0x1544 + Description: Token Bucket Capacity Configuration for Prio Shaper + End address: 0x4eee Fields: - Default value: 0x927c Description: Capacity of the token bucket - End bit: 0x11 + End bit: 0x13 Name: bucketCapacity Start bit: 0 - Width: 0x12 + Width: 0x14 Number of entries: 1 - Short name: rg_queue_shaper_bucket_cap - Start address: 0x1544 + Short name: rg_prio_shaper_bucket_cap + Start address: 0x4eee Type: rw - Width: 0x12 - Queue Shaper Bucket Threshold Configuration: + Width: 0x14 + Prio Shaper Bucket Threshold Configuration: Address step: 1 Attributes: [] Default value: 0x30d4 - Description: Token Bucket Threshold Configuration for Queue Shaper - End address: 0x1545 + Description: Token Bucket Threshold Configuration for Prio Shaper + End address: 0x4eef Fields: - Default value: 0x30d4 Description: Minimum number of tokens in bucket for the status to be set to accept. - End bit: 0x11 + End bit: 0x13 Name: threshold Start bit: 0 - Width: 0x12 + Width: 0x14 Number of entries: 1 - Short name: rg_queue_shaper_bucket_thr - Start address: 0x1545 + Short name: rg_prio_shaper_bucket_thr + Start address: 0x4eef Type: rw - Width: 0x12 - Queue Shaper Enable: + Width: 0x14 + Prio Shaper Enable: Address step: 2 Attributes: [] Default value: 0 - Description: Bitmask to turn Queue Shaper ON/OFF (1/0) for Egress Port * 8 + Egress Queue - End address: 0x1547 + Description: Bitmask to turn Prio Shaper ON/OFF (1/0) for Egress Port * 8 + Egress Prio + End address: 0x4ef1 Fields: - Default value: 0 - Description: Bitmask where the index is the Egress Port * 8 + Egress Queue + Description: Bitmask where the index is the Egress Port * 8 + Egress Prio End bit: 0x27 Name: enable Start bit: 0 Width: 0x28 Number of entries: 1 - Short name: rg_queue_shaper_enable - Start address: 0x1546 + Short name: rg_prio_shaper_enable + Start address: 0x4ef0 Type: rw Width: 0x28 - Queue Shaper Rate Configuration: + Prio Shaper Rate Configuration: Address step: 1 Attributes: [] Default value: @@ -5000,8 +5140,8 @@ conf bus 0: 0x25: 0xc000fa 0x26: 0xc000fa 0x27: 0xc000fa - Description: Token Bucket rate Configuration for Queue Shaper - End address: 0x1543 + Description: Token Bucket rate Configuration for Prio Shaper + End address: 0x4eed Fields: - Default value: default: 0 @@ -5139,7 +5279,7 @@ conf bus 0: 0x25: 0 0x26: 0 0x27: 0 - Description: Select one of the five available PTP ticks. The tick frequencies are configured globaly in the PTP Tick Configuration register. + Description: Select one of the five available core ticks. The tick frequencies are configured globally in the core Tick Configuration register. End bit: 0x12 Name: tick Start bit: 0x10 @@ -5192,69 +5332,474 @@ conf bus 0: Start bit: 0x13 Width: 8 - Default value: 0 - Description: If set the bucket will work in AVB-mode. That is, the bucket will be set to the threshold level when there are no packets queuedand the bucket will not receive any tokens while the output is gated by the egress transmission gate.. + Description: If set the bucket will work in AVB-mode. That is, the bucket will be set to the threshold level when there are no packets queued. End bit: 0x1b Name: avb Start bit: 0x1b Width: 1 Number of entries: 0x28 - Short name: rg_queue_shaper_rate - Start address: 0x151c + Short name: rg_prio_shaper_rate + Start address: 0x4ec6 Type: rw Width: 0x1c - Recovery Tick: + Queue Off Drop: Address step: 1 - Attributes: [] + Attributes: + - drop_counter_no_check + - block: ipp_pip + name: preEppDrop + type: drop Default value: 0 - Description: Recovery timeout is counting based on this tick. - End address: 0x11e9 + Description: Number of packets dropped due to the queue being turned off.\preEppDrop + End address: 0x469a Fields: - Default value: 0 - Description: Select one of the 5 available ticks. The tick frequencies are configured globaly in the Core Tick Configuration register. - End bit: 2 - Name: timeoutTick + Description: Number of dropped packets. + End bit: 0x17 + Name: packets Start bit: 0 - Width: 3 - Number of entries: 1 - Short name: rg_recov_tick - Start address: 0x11e9 + Width: 0x18 + Index: Egress Port + Number of entries: 5 + Short name: rg_pac_count_drop_5 + Start address: 0x4696 + Statistics: + block: ipp_pip + name: preEppDrop + type: drop Type: rw - Width: 3 - Resource Limiter Set: + Width: 0x18 + Queue Shaper Bucket Capacity Configuration: Address step: 1 Attributes: [] - Default value: 0x4d - Description: This resource limiter is for comparing how many cells are ahead of the incoming packet for scheduling. - End address: 0x13d0 + Default value: 0x927c + Description: Token Bucket Capacity Configuration for Queue Shaper + End address: 0x4ec2 Fields: - - Default value: 0x4d - Description: A packet will never get enqueued when the egress queue length has reached this number of cells. An incoming packet will be terminated and dropped if the enqueued cells in the corresponding egress queue is more than this value. - End bit: 10 - Name: limit + - Default value: 0x927c + Description: Capacity of the token bucket + End bit: 0x13 + Name: bucketCapacity Start bit: 0 - Width: 11 - - Default value: 0 - Description: The queue is guaranteed to be able to hold a certain number of cells independent of congestion in other queues. - End bit: 0x15 - Name: guarantee - Start bit: 11 - Width: 11 - Index: Pointer from the \register{Egress Resource Manager Pointer} - Number of entries: 0x14 - Short name: rg_eql - Start address: 0x13bd + Width: 0x14 + Number of entries: 1 + Short name: rg_queue_shaper_bucket_cap + Start address: 0x4ec2 Type: rw - Width: 0x16 - SP Error Counter: + Width: 0x14 + Queue Shaper Bucket Threshold Configuration: Address step: 1 - Attributes: - - no_default_check - - block: sp_bridge - name: spError - type: error - Default value: 0 - Description: Number of packet datapath errors during RX clock crossing. \spError - End address: 0x162 + Attributes: [] + Default value: 0x30d4 + Description: Token Bucket Threshold Configuration for Queue Shaper + End address: 0x4ec3 + Fields: + - Default value: 0x30d4 + Description: Minimum number of tokens in bucket for the status to be set to accept. + End bit: 0x13 + Name: threshold + Start bit: 0 + Width: 0x14 + Number of entries: 1 + Short name: rg_queue_shaper_bucket_thr + Start address: 0x4ec3 + Type: rw + Width: 0x14 + Queue Shaper Enable: + Address step: 2 + Attributes: [] + Default value: 0 + Description: Bitmask to turn Queue Shaper ON/OFF (1/0) for Egress Port * 8 + Egress Queue + End address: 0x4ec5 + Fields: + - Default value: 0 + Description: Bitmask where the index is the Egress Port * 8 + Egress Queue + End bit: 0x27 + Name: enable + Start bit: 0 + Width: 0x28 + Number of entries: 1 + Short name: rg_queue_shaper_enable + Start address: 0x4ec4 + Type: rw + Width: 0x28 + Queue Shaper Rate Configuration: + Address step: 1 + Attributes: [] + Default value: + 0: 0xc009c4 + 1: 0xc009c4 + 2: 0xc009c4 + 3: 0xc009c4 + 4: 0xc009c4 + 5: 0xc009c4 + 6: 0xc009c4 + 7: 0xc009c4 + 8: 0xc009c4 + 9: 0xc009c4 + 10: 0xc009c4 + 11: 0xc009c4 + 12: 0xc009c4 + 13: 0xc009c4 + 14: 0xc009c4 + 15: 0xc009c4 + 0x10: 0xc009c4 + 0x11: 0xc009c4 + 0x12: 0xc009c4 + 0x13: 0xc009c4 + 0x14: 0xc009c4 + 0x15: 0xc009c4 + 0x16: 0xc009c4 + 0x17: 0xc009c4 + 0x18: 0xc009c4 + 0x19: 0xc009c4 + 0x1a: 0xc009c4 + 0x1b: 0xc009c4 + 0x1c: 0xc009c4 + 0x1d: 0xc009c4 + 0x1e: 0xc009c4 + 0x1f: 0xc009c4 + 0x20: 0xc000fa + 0x21: 0xc000fa + 0x22: 0xc000fa + 0x23: 0xc000fa + 0x24: 0xc000fa + 0x25: 0xc000fa + 0x26: 0xc000fa + 0x27: 0xc000fa + Description: Token Bucket rate Configuration for Queue Shaper + End address: 0x4ec1 + Fields: + - Default value: + default: 0 + 0: 0 + 1: 0 + 2: 0 + 3: 0 + 4: 0 + 5: 0 + 6: 0 + 7: 0 + 8: 0 + 9: 0 + 10: 0 + 11: 0 + 12: 0 + 13: 0 + 14: 0 + 15: 0 + 0x10: 0 + 0x11: 0 + 0x12: 0 + 0x13: 0 + 0x14: 0 + 0x15: 0 + 0x16: 0 + 0x17: 0 + 0x18: 0 + 0x19: 0 + 0x1a: 0 + 0x1b: 0 + 0x1c: 0 + 0x1d: 0 + 0x1e: 0 + 0x1f: 0 + 0x20: 0 + 0x21: 0 + 0x22: 0 + 0x23: 0 + 0x24: 0 + 0x25: 0 + 0x26: 0 + 0x27: 0 + Description: If set the bucket will count packets, if cleared bytes + End bit: 0 + Name: packetsNotBytes + Start bit: 0 + Width: 1 + - Default value: + default: 0x4e2 + 0: 0x4e2 + 1: 0x4e2 + 2: 0x4e2 + 3: 0x4e2 + 4: 0x4e2 + 5: 0x4e2 + 6: 0x4e2 + 7: 0x4e2 + 8: 0x4e2 + 9: 0x4e2 + 10: 0x4e2 + 11: 0x4e2 + 12: 0x4e2 + 13: 0x4e2 + 14: 0x4e2 + 15: 0x4e2 + 0x10: 0x4e2 + 0x11: 0x4e2 + 0x12: 0x4e2 + 0x13: 0x4e2 + 0x14: 0x4e2 + 0x15: 0x4e2 + 0x16: 0x4e2 + 0x17: 0x4e2 + 0x18: 0x4e2 + 0x19: 0x4e2 + 0x1a: 0x4e2 + 0x1b: 0x4e2 + 0x1c: 0x4e2 + 0x1d: 0x4e2 + 0x1e: 0x4e2 + 0x1f: 0x4e2 + 0x20: 0x7d + 0x21: 0x7d + 0x22: 0x7d + 0x23: 0x7d + 0x24: 0x7d + 0x25: 0x7d + 0x26: 0x7d + 0x27: 0x7d + Description: The number of tokens added each tick + End bit: 15 + Name: tokens + Start bit: 1 + Width: 15 + - Default value: + default: 0 + 0: 0 + 1: 0 + 2: 0 + 3: 0 + 4: 0 + 5: 0 + 6: 0 + 7: 0 + 8: 0 + 9: 0 + 10: 0 + 11: 0 + 12: 0 + 13: 0 + 14: 0 + 15: 0 + 0x10: 0 + 0x11: 0 + 0x12: 0 + 0x13: 0 + 0x14: 0 + 0x15: 0 + 0x16: 0 + 0x17: 0 + 0x18: 0 + 0x19: 0 + 0x1a: 0 + 0x1b: 0 + 0x1c: 0 + 0x1d: 0 + 0x1e: 0 + 0x1f: 0 + 0x20: 0 + 0x21: 0 + 0x22: 0 + 0x23: 0 + 0x24: 0 + 0x25: 0 + 0x26: 0 + 0x27: 0 + Description: Select one of the five available core ticks. The tick frequencies are configured globally in the core Tick Configuration register. + End bit: 0x12 + Name: tick + Start bit: 0x10 + Width: 3 + - Default value: + default: 0x18 + 0: 0x18 + 1: 0x18 + 2: 0x18 + 3: 0x18 + 4: 0x18 + 5: 0x18 + 6: 0x18 + 7: 0x18 + 8: 0x18 + 9: 0x18 + 10: 0x18 + 11: 0x18 + 12: 0x18 + 13: 0x18 + 14: 0x18 + 15: 0x18 + 0x10: 0x18 + 0x11: 0x18 + 0x12: 0x18 + 0x13: 0x18 + 0x14: 0x18 + 0x15: 0x18 + 0x16: 0x18 + 0x17: 0x18 + 0x18: 0x18 + 0x19: 0x18 + 0x1a: 0x18 + 0x1b: 0x18 + 0x1c: 0x18 + 0x1d: 0x18 + 0x1e: 0x18 + 0x1f: 0x18 + 0x20: 0x18 + 0x21: 0x18 + 0x22: 0x18 + 0x23: 0x18 + 0x24: 0x18 + 0x25: 0x18 + 0x26: 0x18 + 0x27: 0x18 + Description: Extra bytes per packet to correct for IFG in byte mode. Default is 4 byte FCS plus 20 byte IFG. + End bit: 0x1a + Name: ifgCorrection + Start bit: 0x13 + Width: 8 + - Default value: 0 + Description: If set the bucket will work in AVB-mode. That is, the bucket will be set to the threshold level when there are no packets queuedand the bucket will not receive any tokens while the output is gated by the egress transmission gate.. + End bit: 0x1b + Name: avb + Start bit: 0x1b + Width: 1 + Number of entries: 0x28 + Short name: rg_queue_shaper_rate + Start address: 0x4e9a + Type: rw + Width: 0x1c + Recovery Tick: + Address step: 1 + Attributes: [] + Default value: 0 + Description: Recovery timeout is counting based on this tick. + End address: 0x493c + Fields: + - Default value: 0 + Description: Select one of the 5 available ticks. The tick frequencies are configured globally in the Core Tick Configuration register. + End bit: 2 + Name: timeoutTick + Start bit: 0 + Width: 3 + Number of entries: 1 + Short name: rg_recov_tick + Start address: 0x493c + Type: rw + Width: 3 + Resource Limiter Set: + Address step: 1 + Attributes: [] + Default value: 0xff018027 + Description: This resource limiter is for comparing how many cells are ahead of the incoming packet for scheduling. + End address: 0x4d17 + Fields: + - Default value: 0x27 + Description: A packet will never get enqueued when the egress queue length has reached this number of cells. An incoming packet will be terminated and dropped if the enqueued cells in the corresponding egress queue is more than this value. + End bit: 11 + Name: limit + Start bit: 0 + Width: 12 + - Default value: 0x18 + Description: The queue is guaranteed to be able to hold a certain number of cells independent of congestion in other queues. + End bit: 0x17 + Name: guarantee + Start bit: 12 + Width: 12 + - Default value: 0xff + Description: Maximum allowed packet length in cells for this limiter. Packet with cells more than this value will be dropped. If the value is set to 0, the corresponding queue will stop accepting all new cells to the buffer memory. + End bit: 0x1f + Name: maxCells + Start bit: 0x18 + Width: 8 + Index: Port and Queue Index defined in Port and Queue Table. + Number of entries: 0x28 + Short name: rg_eql + Start address: 0x4cf0 + Type: rw + Width: 0x20 + SMON Set 0 Byte Counter: + Address step: 1 + Attributes: + - block: ipp_pip + name: smon + Default value: 0 + Description: Number of bytes counted in SMON Set 0. \smon + End address: 0x4671 + Fields: + - Default value: 0 + Description: Number of bytes. + End bit: 0x17 + Name: bytes + Start bit: 0 + Width: 0x18 + Index: VLAN PCP + Number of entries: 8 + Short name: rg_pac_byte_smon_0 + Start address: 0x466a + Statistics: + block: ipp_pip + name: smon + Type: rw + Width: 0x18 + SMON Set 0 Packet Counter: + Address step: 1 + Attributes: + - block: ipp_pip + name: smon + Default value: 0 + Description: Number of packets counted in SMON Set 0. \smon + End address: 0x4669 + Fields: + - Default value: 0 + Description: Number of packets. + End bit: 0x17 + Name: packets + Start bit: 0 + Width: 0x18 + Index: VLAN PCP + Number of entries: 8 + Short name: rg_pac_pkt_smon_0 + Start address: 0x4662 + Statistics: + block: ipp_pip + name: smon + Type: rw + Width: 0x18 + SMON Set Search: + Address step: 1 + Attributes: [] + Default value: 0 + Description: If both source port and VLAN ID match one of the entries, the corresponding SMON counter will be updated. + End address: 0x3cc5 + Fields: + - Default value: 0 + Description: Source port + End bit: 2 + Name: srcPort + Start bit: 0 + Width: 3 + - Default value: 0 + Description: VLAN ID + End bit: 14 + Name: vid + Start bit: 3 + Width: 12 + Number of entries: 1 + Short name: rg_smonCam + Start address: 0x3cc5 + Type: rw + Width: 15 + SP Error Counter: + Address step: 1 + Attributes: + - no_default_check + - block: sp_bridge + name: spError + type: error + Default value: 0 + Description: Number of packet datapath errors during RX clock crossing. \spError + End address: 0x164 Fields: - Default value: 0 Description: Number of errors. @@ -5264,7 +5809,7 @@ conf bus 0: Width: 0x18 Number of entries: 5 Short name: rg_sp_error_cnt - Start address: 0x15e + Start address: 0x160 Statistics: block: sp_bridge name: spError @@ -5279,7 +5824,7 @@ conf bus 0: name: spFifo Default value: 0 Description: Debug values for the serial/parallel converter fifo. \spFifo - End address: 0x15d + End address: 0x15f Fields: - Default value: 0 Description: The current SP fifo level. @@ -5295,7 +5840,7 @@ conf bus 0: Width: 12 Number of entries: 5 Short name: rg_fifo_debug - Start address: 0x159 + Start address: 0x15b Statistics: block: sp_bridge name: spFifo @@ -5311,7 +5856,7 @@ conf bus 0: type: error Default value: 0 Description: 'Number of packets dropped due to: FIFO overflow in the SP-converter. \spOverflow' - End address: 0x158 + End address: 0x15a Fields: - Default value: 0 Description: Number of dropped packets on this ingress port. @@ -5321,7 +5866,7 @@ conf bus 0: Width: 0x18 Number of entries: 5 Short name: rg_count_sp_overflow - Start address: 0x154 + Start address: 0x156 Statistics: block: sp_bridge name: spOverflow @@ -5336,7 +5881,7 @@ conf bus 0: name: spRxPkt Default value: 0 Description: Number of packet first cells before RX clock crossing. \spRxPkt - End address: 0x153 + End address: 0x155 Fields: - Default value: 0 Description: Number of packet headers. @@ -5346,7 +5891,7 @@ conf bus 0: Width: 0x18 Number of entries: 5 Short name: rg_sp_ifirst - Start address: 0x14f + Start address: 0x151 Statistics: block: sp_bridge name: spRxPkt @@ -5360,7 +5905,7 @@ conf bus 0: name: spRxPkt Default value: 0 Description: Number of packet last cells before RX clock crossing. \spRxPkt - End address: 0x167 + End address: 0x169 Fields: - Default value: 0 Description: Number of packet tails. @@ -5370,7 +5915,7 @@ conf bus 0: Width: 0x18 Number of entries: 5 Short name: rg_sp_ilast - Start address: 0x163 + Start address: 0x165 Statistics: block: sp_bridge name: spRxPkt @@ -5384,7 +5929,7 @@ conf bus 0: name: spTxPkt Default value: 0 Description: Number of packet first cells through the Serial to Parallel module. \spTxPkt - End address: 0x14d + End address: 0x14f Fields: - Default value: 0 Description: Number of packet headers. @@ -5394,7 +5939,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_sp_ofirst - Start address: 0x14d + Start address: 0x14f Statistics: block: sp_out name: spTxPkt @@ -5408,7 +5953,7 @@ conf bus 0: name: spTxPkt Default value: 0 Description: Number of packet last cells through the Serial to Parallel module. \spTxPkt - End address: 0x14e + End address: 0x150 Fields: - Default value: 0 Description: Number of packet tails. @@ -5418,7 +5963,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_sp_olast - Start address: 0x14e + Start address: 0x150 Statistics: block: sp_out name: spTxPkt @@ -5447,7 +5992,7 @@ conf bus 0: Attributes: [] Default value: 0x3ff Description: Configuration of MAC addresses used to redirect packets to CPU. - End address: 0xb10 + End address: 0x45a0 Fields: - Default value: 0x1f Description: Send to CPU portmask, bit 0 port 0, bit 1 port 1 etc. If source port bit is set then packets that have the destination MAC address equal to 01:80:C2:00:00:00 are sent to the CPU port. @@ -5475,7 +6020,7 @@ conf bus 0: Width: 0x30 Number of entries: 1 Short name: rg_send2Cpu - Start address: 0xb0f + Start address: 0x459f Type: rw Width: 0x3f Sequence Recovery Config: @@ -5483,7 +6028,7 @@ conf bus 0: Attributes: [] Default value: 0x11 Description: Configurations for the sequence recovery function. - End address: 0x124a + End address: 0x499d Fields: - Default value: 1 Description: Apply sequence recovery @@ -5515,174 +6060,166 @@ conf bus 0: Name: takeNoSequence Start bit: 0x25 Width: 1 + Index: FRER ID Number of entries: 0x10 - Short name: rg_seq_recov_config - Start address: 0x122b + Short name: config_frer_seq_0 + Start address: 0x497e + Statistics: null Type: rw Width: 0x26 - Sequence Recovery Discarded Counter: + Sequence Recovery Reset: Address step: 1 Attributes: - - block: ipp_mmp - name: frer + - no_default_check Default value: 0 - Description: Number of packets dropped by the recovery function due to a duplicated sequence number. - End address: 0x136a + Description: Reset the sequence history of the sequence recovery function and allow any sequence number for the next packet. + End address: 0x493b Fields: - Default value: 0 - Description: Number of packets. - End bit: 0x17 - Name: packets + Description: Set to one to reset the sequence recovery function. The reset is applied to the next packet of the stream, then hardware clears the bit. + End bit: 0 + Name: reset Start bit: 0 - Width: 0x18 + Width: 1 Number of entries: 0x10 - Short name: rg_recov_sequence_discarded - Start address: 0x135b - Statistics: - block: ipp_mmp - name: frer + Short name: rg_seq_recov_reset + Start address: 0x492c Type: rw - Width: 0x18 - Sequence Recovery Lost Counter: + Width: 1 + Source Port Default ACL Action: Address step: 1 - Attributes: - - block: ipp_mmp - name: frer + Attributes: [] Default value: 0 - Description: Number of packets with sequence numbers moved out of the sequence history window under the vector recovery algorithm. - End address: 0x139a + Description: The default ACL action which will be taken on a source port if the \field{Source Port Table}{enableDefaultPortAcl} is set and the ACL lookup misses. The action will also be taken if the \field{Source Port Table}{forcePortAclAction} is set and then it will override the result from the ACL even if the ACL was hit or not. + End address: 0x419e Fields: - Default value: 0 - Description: Number of packets. - End bit: 0x17 - Name: packets + Description: If set, this entry contains a valid stream handle + End bit: 0 + Name: streamValid Start bit: 0 - Width: 0x18 - Number of entries: 0x10 - Short name: rg_recov_sequence_lost - Start address: 0x138b - Statistics: - block: ipp_mmp - name: frer - Type: rw - Width: 0x18 - Sequence Recovery Out Of Order Counter: - Address step: 1 - Attributes: - - block: ipp_mmp - name: frer - Default value: 0 - Description: Number of packets accepted by the recovery function but with sequence number not equals previous sequence number plus one. - End address: 0x137a - Fields: + Width: 1 - Default value: 0 - Description: Number of packets. - End bit: 0x17 - Name: packets - Start bit: 0 - Width: 0x18 - Number of entries: 0x10 - Short name: rg_recov_sequence_out_of_order - Start address: 0x136b - Statistics: - block: ipp_mmp - name: frer - Type: rw - Width: 0x18 - Sequence Recovery Passed Counter: - Address step: 1 - Attributes: - - block: ipp_mmp - name: frer - Default value: 0 - Description: Number of packets accepted by the recovery function. - End address: 0x135a - Fields: + Description: Stream handle. + End bit: 5 + Name: streamHandle + Start bit: 1 + Width: 5 - Default value: 0 - Description: Number of packets. - End bit: 0x17 - Name: packets - Start bit: 0 - Width: 0x18 - Number of entries: 0x10 - Short name: rg_recov_sequence_passed - Start address: 0x134b - Statistics: - block: ipp_mmp - name: frer - Type: rw - Width: 0x18 - Sequence Recovery Reset: - Address step: 1 - Attributes: - - no_default_check - Default value: 0 - Description: Reset the sequence history of the sequence recovery function and allow any sequence number for the next packet. - End address: 0x11e8 - Fields: + Description: When set the selected statistics counter will be updated. + End bit: 6 + Name: updateCounter + Start bit: 6 + Width: 1 + - Default value: 0 + Description: Which counter in Ingress Configurable ACL Match Counter to update. + End bit: 8 + Name: counter + Start bit: 7 + Width: 2 + - Default value: 0 + Description: If set, the packet shall be dropped and the \register{Ingress Configurable ACL Drop} counter is incremented. + End bit: 9 + Name: dropEnable + Start bit: 9 + Width: 1 + - Default value: 0 + Description: If set, the packet shall be sent to the CPU port. + End bit: 10 + Name: sendToCpu + Start bit: 10 + Width: 1 + - Default value: 0 + Description: Send the packet to a specific port. \tabTwo{Disabled.}{Send to port configured in destPort.} + End bit: 11 + Name: sendToPort + Start bit: 11 + Width: 1 + - Default value: 0 + Description: The port which the packet shall be sent to. + End bit: 14 + Name: destPort + Start bit: 12 + Width: 3 + - Default value: 0 + Description: If set, the packet shall have a forced color. + End bit: 15 + Name: forceColor + Start bit: 15 + Width: 1 + - Default value: 0 + Description: Initial color of the packet if the forceColor field is set. + End bit: 0x11 + Name: color + Start bit: 0x10 + Width: 2 + - Default value: 0 + Description: If set, this entry contains a valid MMP pointer + End bit: 0x12 + Name: mmpValid + Start bit: 0x12 + Width: 1 + - Default value: 0 + Description: Ingress MMP pointer. + End bit: 0x15 + Name: mmpPtr + Start bit: 0x13 + Width: 3 - Default value: 0 - Description: Set to one to reset the sequence recovery function. Hardware clears the reset after one clock cycle. - End bit: 0 - Name: reset - Start bit: 0 + Description: Ingress MMP pointer order. + End bit: 0x16 + Name: mmpOrder + Start bit: 0x16 Width: 1 - Number of entries: 0x10 - Short name: rg_seq_recov_reset - Start address: 0x11d9 - Type: rw - Width: 1 - Sequence Recovery Rogue Counter: - Address step: 1 - Attributes: - - block: ipp_mmp - name: frer - Default value: 0 - Description: Number of packets dropped by the vector recovery algorithm due to its sequnece number out of the sequence history window. - End address: 0x138a - Fields: - Default value: 0 - Description: Number of packets. + Description: If set, the packet shall have a forced egress queue. Please see Egress Queue Selection Diagram in Figure \ref{fig:determineEgressQueue} End bit: 0x17 - Name: packets - Start bit: 0 - Width: 0x18 - Number of entries: 0x10 - Short name: rg_recov_sequence_rogue - Start address: 0x137b - Statistics: - block: ipp_mmp - name: frer + Name: forceQueue + Start bit: 0x17 + Width: 1 + - Default value: 0 + Description: The egress queue to be assigned if the forceQueue field in this entry is set to 1. + End bit: 0x1a + Name: eQueue + Start bit: 0x18 + Width: 3 + Number of entries: 5 + Short name: r_defaultPortAclAction + Start address: 0x419a Type: rw - Width: 0x18 - Sequence Recovery Tagless Counter: + Width: 0x1b + Source Port Default ACL Action Drop: Address step: 1 Attributes: - - block: ipp_mmp - name: frer + - drop_counter_no_check + - block: ipp_pip + name: ipppDrop + type: drop Default value: 0 - Description: Number of packets received without sequence number. - End address: 0x13aa + Description: Number of packets dropped due to the table \register{Source Port Default ACL Action} says drop.\ipppDrop + End address: 0x177 Fields: - Default value: 0 - Description: Number of packets. + Description: Number of dropped packets. End bit: 0x17 Name: packets Start bit: 0 Width: 0x18 - Number of entries: 0x10 - Short name: rg_recov_sequence_tagless - Start address: 0x139b + Number of entries: 1 + Short name: rg_pac_count_drop_61 + Start address: 0x177 Statistics: - block: ipp_mmp - name: frer + block: ipp_pip + name: ipppDrop + type: drop Type: rw Width: 0x18 Source Port Table: Address step: 2 Attributes: [] - Default value: 0x10000000001 + Default value: 0x20000000001 Description: This table configures various functions that are dependent on which port the packet enters the switch. \newline \ifdef{\texVlanIngressPortOperations}{ A VLAN operation (e.g. push, pop, swap) to be performed can be selected by the \field{Source Port Table}{vlanSingleOp} field in \register{Source Port Table}. For the push and swap operations the information used to create the new VLAN header is controlled by the fields \field{Source Port Table}{vidSel}, \field{Source Port Table}{cfiDeiSel}, \field{Source Port Table}{pcpSel} and \field{Source Port Table}{typeSel}. Other configurations are VLAN LUT index,}{Configurations including} \ifdef{\texMirroring}{input mirroring,}{} spanning tree state, Ingress VID offset, special VID treatment, multicast learning, \ifdef{\texLThree}{min/max number of VLANs and L3 priority selection}{and min/max number of VLANs}. - End address: 0xaea + End address: 0x45d0 Fields: - Default value: 1 Description: If hardware learning is turned on and this is set to one, the unknown source MAC address from this port will be learned. @@ -5715,172 +6252,226 @@ conf bus 0: Start bit: 4 Width: 1 - Default value: 0 - Description: This is a pointer to the entry used to build the lookup key in the table \register{Ingress Configurable ACL Rules Setup}. - End bit: 7 + Description: Default pointer of rule to use for this source port if pre-lookup results in a non-valid entry in the \register{Ingress Configurable ACL Pre Lookup}. This is a pointer to the entry used to build the lookup key in the table \register{Ingress Configurable ACL Rules Setup}. + End bit: 8 Name: aclRule Start bit: 5 - Width: 3 + Width: 4 - Default value: 0 - Description: The source port VLAN operation to perform on the packet. \tabFive{No operation.} {Swap.} {Push.} {Pop.} {Penultimate pop(remove all VLAN headers).} - End bit: 10 + Description: The source port VLAN operation to perform on the packet. \tabFive{No operation.} {Swap.} {Push.} {Pop.} {Penultimate pop (remove all VLAN headers).} + End bit: 11 Name: vlanSingleOp - Start bit: 8 + Start bit: 9 Width: 3 - Default value: 0 Description: Selects which VID to use when building a new VLAN header in a source port push or swap operation. If the selected VLAN header doesn't exist in the packet then this table entry's \field{Source Port Table}{defaultVid} will be used. \ifdef{\texVlanLutOperations}{The \register{Ingress VLAN LUT Operation} will also use this selection but instead of defaultVid it will use \field{Egress VLAN LUT Operation}{vid}.}{} \tabThree{From outermost VLAN in the original packet (if any).} {From this table entry's \field{Source Port Table}{defaultVid}.} {From the second VLAN in the original packet (if any).} - End bit: 12 + End bit: 13 Name: vidSel - Start bit: 11 + Start bit: 12 Width: 2 - Default value: 0 Description: Selects which CFI/DEI to use when building a new VLAN header in a source port push or swap operation. If the selected VLAN header doesn't exist in the packet then this table entry's \field{Source Port Table}{defaultCfiDei} will be used. \tabThree{From outermost VLAN in the original packet (if any).} {From this table entry's \field{Source Port Table}{defaultCfiDei}.} {From the second VLAN in the original packet (if any).} - End bit: 14 + End bit: 15 Name: cfiDeiSel - Start bit: 13 + Start bit: 14 Width: 2 - Default value: 0 Description: Selects which PCP to use when building a new VLAN header in a source port push or swap operation. If the selected VLAN header doesn't exist in the packet then this table entry's \field{Source Port Table}{defaultPcp} will be used. \tabThree{From outermost VLAN in the original packet. (if any)} {From this table entry's \field{Source Port Table}{defaultPcp}.} {From the second VLAN in the original packet (if any).} - End bit: 0x10 + End bit: 0x11 Name: pcpSel - Start bit: 15 + Start bit: 0x10 Width: 2 - Default value: 0 Description: Selects which TPID to use when building a new VLAN header in a push or swap operation. \tabThree{C-VLAN - 0x8100.} {S-VLAN - 0x88A8.} {User defined VLAN type from register \register{Egress Ethernet Type for VLAN tag} field \field{Egress Ethernet Type for VLAN tag}{typeValue}.} - End bit: 0x12 + End bit: 0x13 Name: typeSel - Start bit: 0x11 + Start bit: 0x12 Width: 2 - Default value: 0 Description: Controls how a packets Ingress VID is assigned. If the selected source is from a VLAN header in the incoming packet and the packet doesn't have that header, then this table entry's \field{Source Port Table}{defaultVid} will be used. \tabThree{ packet based - the Ingress VID is assigned from the incoming packets outermost VLAN header.} { port-based - the packets Ingress VID is assigned from this table entry's \field{Source Port Table}{defaultVid}} { mixed - if there are two VLANs in the incoming packet, the inner VLAN is chosen. If the incoming packet has only 0 or 1 VLAN, then it will select this table entry's \field{Source Port Table}{defaultVid}} - End bit: 0x14 + End bit: 0x15 Name: vlanAssignment - Start bit: 0x13 + Start bit: 0x14 Width: 2 - Default value: 0 Description: The default VID. \ifdef{\texVlanIngressPortOperations}{This is used in source port VLAN operations (see \field{Source Port Table}{vidSel}).}{} It is used to assign Ingress VID (see \field{Source Port Table}{vlanAssignment}). It is used when creating an internal VLAN header for incoming packets that has no VLAN header. - End bit: 0x20 + End bit: 0x21 Name: defaultVid - Start bit: 0x15 + Start bit: 0x16 Width: 12 - Default value: 0 Description: 'The default CFI / DEI bit. \ifdef{\texVlanIngressPortOperations}{ This is used in source port VLAN operations (see \field{Source Port Table}{cfiDeiSel}).}{} It is used when creating an internal VLAN header for incoming packets that has no VLAN header. ' - End bit: 0x21 + End bit: 0x22 Name: defaultCfiDei - Start bit: 0x21 + Start bit: 0x22 Width: 1 - Default value: 0 Description: 'The default PCP bits. \ifdef{\texVlanIngressPortOperations}{ This is used in source port VLAN operations (see .\field{Source Port Table}{pcpSel}).}{} It is used when creating an internal VLAN header for incoming packets that has no VLAN header. ' - End bit: 0x24 + End bit: 0x25 Name: defaultPcp - Start bit: 0x22 + Start bit: 0x23 Width: 3 - Default value: 0 Description: 'The minimum number of VLAN headers a packet must have to be allowed on this port. Otherwise the packet will be dropped and the \register{Minimum Allowed VLAN Drop} will be incremented. \tabFour {All packets are accepted.} { 1 or more tags are accepted.} { 2 or more tags are accepted.} { No packets are accepted. } ' - End bit: 0x26 + End bit: 0x27 Name: minAllowedVlans - Start bit: 0x25 + Start bit: 0x26 Width: 2 - Default value: 2 Description: 'The maximum number of VLAN headers a packet is allowed to have to enter on this port. Otherwise the packet will be dropped and the \register{Maximum Allowed VLAN Drop} will be incremented. \tabFour {Only untagged packets are accepted.} { 0 to 1 tags are accepted.} {Any number of VLANs are accepted.} {Any number of VLANs are accepted.} ' - End bit: 0x28 + End bit: 0x29 Name: maxAllowedVlans - Start bit: 0x27 + Start bit: 0x28 Width: 2 - Default value: 0 - Description: By default packets on non-VLAN member source port are dropped before entering the L2 lookup process. Set this field to one to ignore the VLAN membership check on the source port. However L2 lookup can never forward packets to non-VLAN member destinations. - End bit: 0x29 + Description: By default packets on non-VLAN member source ports are dropped before entering the L2 lookup process. Set this field to one to ignore the VLAN membership check on the source port. However L2 lookup can never forward packets to non-VLAN member destinations. + End bit: 0x2a Name: ignoreVlanMembership - Start bit: 0x29 + Start bit: 0x2a Width: 1 - Default value: 0 Description: If set, the learning engine allows Ethernet multicast source MAC addresses to be learned. - End bit: 0x2a + End bit: 0x2b Name: learnMulticastSaMac - Start bit: 0x2a + Start bit: 0x2b Width: 1 - Default value: 0 Description: The spanning tree state for this ingress port. The state Disabled implies that spanning tree protocol is not enabled and hence frames will be forwarded on this egress port. \tabFive{Disabled.} {Blocking.} {Listening.} {Learning.} {Forwarding.} - End bit: 0x2d + End bit: 0x2e Name: spt - Start bit: 0x2b + Start bit: 0x2c Width: 3 + - Default value: 0 + Description: If enabled then the default acl for this port will be done if the ACL misses in its lookup. \tabTwo{Disabled. No default action taken.}{Enabled. If ACL lookup misses then this ACL actil will be carried out instead.} + End bit: 0x2f + Name: enableDefaultPortAcl + Start bit: 0x2f + Width: 1 + - Default value: 0 + Description: 'If enabled then the default acl for this port will always be done, if the ACL is hit then the port ACL will overwrite the ACL result.\tabTwo{Disabled. Not action forced.}{Enabled. The port ACL overwrites and result from the ingress ACL.} ' + End bit: 0x30 + Name: forcePortAclAction + Start bit: 0x30 + Width: 1 + - Default value: 0 + Description: Pre lookup bits which is used by this port in the pre-lookup tables in the ingress ACLS. Same value is used for all pre ACL lookups which has the source port bits in it. + End bit: 0x32 + Name: preLookupAclBits + Start bit: 0x31 + Width: 2 Number of entries: 5 Short name: r_srcPortMem - Start address: 0xae1 + Start address: 0x45c7 Type: rw - Width: 0x2e - Stream Filter Lookup Table: + Width: 0x33 + Stream Filter Instance Table: Address step: 1 Attributes: [] Default value: 0 - Description: 'This table optionally takes the streamHandle and priority of the packet to select a stream filter. If a packet hits multiple entries, the earliest one will be returned as the hit index. Reference: 8.6.5.1 of IEEE Std 802.1Qci-2017' - End address: 0xb67 + Description: 'Parameters of each stream filter. Reference: 8.6.5.3 of IEEE Std 802.1Q-2022' + End address: 0x3ca4 Fields: - - Default value: 0 - Description: If set, this is a valid entry for comparison - End bit: 0 - Name: enable - Start bit: 0 - Width: 1 - - Default value: 0 - Description: Determines if the streamHandle field in this entry shall be compared. \tabTwo{Do not compare} {Include the streamHandle comparison in the entry comparison} - End bit: 1 - Name: compareStreamHandle - Start bit: 1 - Width: 1 - - Default value: 0 - Description: Stream ID assigned from ACL hits. - End bit: 6 - Name: streamHandle - Start bit: 2 - Width: 5 - - Default value: 0 - Description: Determines if the priority filed in this entry shall be compared. \tabTwo{Do not compare} {Include the priority comparison in the entry comparison} - End bit: 7 - Name: comparePriority - Start bit: 7 - Width: 1 - - Default value: 0 - Description: L2 Priority of the packet. - End bit: 10 - Name: priority - Start bit: 8 - Width: 3 - Default value: 0 Description: Gate ID for the stream gate control - End bit: 14 + End bit: 3 Name: gateId - Start bit: 11 + Start bit: 0 Width: 4 - Default value: 0 Description: If set, this entry contains a valid MMP pointer. - End bit: 15 + End bit: 4 Name: mmpValid - Start bit: 15 + Start bit: 4 Width: 1 - Default value: 0 Description: Ingress MMP pointer. - End bit: 0x11 + End bit: 7 Name: mmpPtr - Start bit: 0x10 - Width: 2 + Start bit: 5 + Width: 3 - Default value: 0 Description: Ingress MMP pointer order. - End bit: 0x12 + End bit: 8 Name: mmpOrder - Start bit: 0x12 + Start bit: 8 + Width: 1 + - Default value: 0 + Description: 'Maximum SDU size in octets (IEEE 802.1Q Maximum SDU size). The SDU size is the MSDU size: the packet length without DA, SA, VLAN tags, R-tag and FCS. A packet is dropped if its SDU size exceeds this value. Value 0 means no check.' + End bit: 0x16 + Name: maxSDU + Start bit: 9 + Width: 14 + - Default value: 0 + Description: If this field is set to 1, a packet failing the maximum SDU check sets \register{Max SDU Filter Blocking} to 1 and then all traffic of the same stream filter is blocked. The blocking status can be cleared by writing 0 to this field or to \register{Max SDU Filter Blocking}. + End bit: 0x17 + Name: blockingEn + Start bit: 0x17 + Width: 1 + Index: Stream filter ID + Number of entries: 0x10 + Short name: r_streamFilterInstance_ss0 + Start address: 0x3c95 + Statistics: null + Type: rw + Width: 0x18 + Stream Filter Lookup Table: + Address step: 1 + Attributes: [] + Default value: 0 + Description: 'Selects the stream filter of a packet with a stream handle from its stream handle and priority. Each entry holds the stream filter with the lowest ID whose stream handle and priority specifications match the entry. valid is cleared when no stream filter matches. When a stream filter is added, write its \register{Stream Filter Instance Table} entry before the entries of this table that point to it. When it is removed, update this table first. Reference: 8.6.5.3 of IEEE Std 802.1Q-2022' + End address: 0x3c8c + Fields: + - Default value: 0 + Description: If set, the packet is associated with the stream filter in the filterId field. If cleared, no stream filter matches and the packet is not subject to stream filtering. + End bit: 0 + Name: valid + Start bit: 0 + Width: 1 + - Default value: 0 + Description: Stream filter ID, the index to \register{Stream Filter Instance Table}. + End bit: 4 + Name: filterId + Start bit: 1 + Width: 4 + Index: \{stream handle, priority\} + Number of entries: 0x100 + Short name: r_streamFilterByHandle_ss0 + Start address: 0x3b8d + Statistics: null + Type: rw + Width: 5 + Stream Filter No Handle Lookup Table: + Address step: 1 + Attributes: [] + Default value: 0 + Description: 'Selects the stream filter of a packet without a stream handle from its priority. Each entry holds the stream filter with the lowest ID whose stream handle specification is a wildcard and whose priority specification matches the entry. valid is cleared when no stream filter matches. The update order is the same as for the \register{Stream Filter Lookup Table}. Reference: 8.6.5.3 of IEEE Std 802.1Q-2022' + End address: 0x3c94 + Fields: + - Default value: 0 + Description: If set, the packet is associated with the stream filter in the filterId field. If cleared, no stream filter matches and the packet is not subject to stream filtering. + End bit: 0 + Name: valid + Start bit: 0 Width: 1 + - Default value: 0 + Description: Stream filter ID, the index to \register{Stream Filter Instance Table}. + End bit: 4 + Name: filterId + Start bit: 1 + Width: 4 + Index: Priority Number of entries: 8 - Short name: rg_streamFilter - Start address: 0xb60 + Short name: r_streamFilterNoHandle_ss0 + Start address: 0x3c8d + Statistics: null Type: rw - Width: 0x13 + Width: 5 Stream Gate Blocking Enable: Address step: 1 Attributes: [] Default value: 0 Description: Enable blocking stream gate when a closed gate receives a packet, or the total number of L2 payload bytes exceed a certain limit in the current time interval for a open gate. - End address: 0x1147 + End address: 0x47aa Fields: - Default value: 0 Description: After setting this field to 1, any packet hits a closed gate will put the gate under a blocking status and drop all traffic to the gate regardless of open or closed. @@ -5896,7 +6487,7 @@ conf bus 0: Width: 1 Number of entries: 0x10 Short name: rg_gateBlockingEn - Start address: 0x1138 + Start address: 0x479b Type: rw Width: 2 Stream Gate Invalid RX Blocking: @@ -5904,7 +6495,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Blocking status of the stream gate due to invalid RX. - End address: 0x1157 + End address: 0x47ba Fields: - Default value: 0 Description: When this field is set to 1 by the core, the corresponding stream gate is under the blocking status. As a consequence, all packets to this stream gate will be dropped. Clear this field to allow packets enter the stream gate again. @@ -5914,7 +6505,7 @@ conf bus 0: Width: 1 Number of entries: 0x10 Short name: rg_invalidRxBlocking - Start address: 0x1148 + Start address: 0x47ab Type: rw Width: 1 Stream Gate Max MSDU Blocking: @@ -5922,7 +6513,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Blocking status of the stream gate due to exceeding maximum MSDU. - End address: 0x1167 + End address: 0x47ca Fields: - Default value: 0 Description: When this field is set to 1 by the core, the corresponding stream gate is under the blocking status. As a consequence, all packets to this stream gate will be dropped. Clear this field to allow packets enter the stream gate again. @@ -5932,7 +6523,7 @@ conf bus 0: Width: 1 Number of entries: 0x10 Short name: rg_maxMsduBlocking - Start address: 0x1158 + Start address: 0x47bb Type: rw Width: 1 Stream Handle To FRER Mapping Table: @@ -5940,7 +6531,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Assign a FRER ID to the stream. When a single FRER ID is used for multiple stream handles, usually that FRER ID is in recovery mode and each stream handle represents a member stream. - End address: 0xb5f + End address: 0x3cc4 Fields: - Default value: 0 Description: Streams belong to the same FRER ID will be subjected to the same FRER instance. @@ -5948,9 +6539,11 @@ conf bus 0: Name: frerId Start bit: 0 Width: 4 + Index: Stream handle Number of entries: 0x20 - Short name: rg_stream2Frer - Start address: 0xb40 + Short name: r_stream2Frer_ss0 + Start address: 0x3ca5 + Statistics: null Type: rw Width: 4 Time to Age: @@ -5958,10 +6551,10 @@ conf bus 0: Attributes: [] Default value: 0x1ffffffff4 Description: Interval period after which \hyperref[sec:FIB]{FIB} entries are aged out. - End address: 0x41 + End address: 0x43 Fields: - Default value: 0x14 - Description: Number of minimum aging processes for an non-static entry to get aged out. + Description: Number of minimum aging processes for a non-static entry to get aged out. End bit: 4 Name: ageCnt Start bit: 0 @@ -5973,14 +6566,14 @@ conf bus 0: Start bit: 5 Width: 0x20 - Default value: 0 - Description: Select one of the 5 available ticks. The tick frequencies are configured globaly in the \register{Core Tick Configuration} register. + Description: Select one of the 5 available ticks. The tick frequencies are configured globally in the \register{Core Tick Configuration} register. End bit: 0x27 Name: tick Start bit: 0x25 Width: 3 Number of entries: 1 Short name: rg_age_tick_config - Start address: 0x40 + Start address: 0x42 Type: rw Width: 0x28 Unknown Egress Drop: @@ -5992,7 +6585,7 @@ conf bus 0: type: drop Default value: 0 Description: "Number of packets dropped during egress packet processing due\n to unknown reasons. Internal error caused by packet drop with an\n invalid Drop ID.\\epppDrop" - End address: 0x155c + End address: 0x4f06 Fields: - Default value: 0 Description: Number of dropped packets. @@ -6003,7 +6596,7 @@ conf bus 0: Index: Egress port Number of entries: 5 Short name: rg_pac_count_drop_2 - Start address: 0x1558 + Start address: 0x4f02 Statistics: block: epp_pip name: epppDrop @@ -6019,7 +6612,7 @@ conf bus 0: type: drop Default value: 0 Description: "Number of packets dropped during ingress packet processing due\n to unknown reasons. Internal error caused by packet drop with an\n invalid Drop ID.\\ipppDrop" - End address: 0x16a + End address: 0x16b Fields: - Default value: 0 Description: Number of dropped packets. @@ -6029,7 +6622,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_pac_count_drop_0 - Start address: 0x16a + Start address: 0x16b Statistics: block: ipp_pip name: ipppDrop @@ -6045,7 +6638,7 @@ conf bus 0: type: drop Default value: 0 Description: Number of packets dropped due to the packets source port notbeing part of the packets VLAN membership.\ipppDrop - End address: 0x171 + End address: 0x172 Fields: - Default value: 0 Description: Number of dropped packets. @@ -6055,7 +6648,7 @@ conf bus 0: Width: 0x18 Number of entries: 1 Short name: rg_pac_count_drop_10 - Start address: 0x171 + Start address: 0x172 Statistics: block: ipp_pip name: ipppDrop @@ -6067,7 +6660,7 @@ conf bus 0: Attributes: [] Default value: 0 Description: Mapping table from VLAN PCP and DEI field to packet initial color. - End address: 0xd98 + End address: 0x3d50 Fields: - Default value: 0 Description: Packet initial color. @@ -6077,7 +6670,7 @@ conf bus 0: Width: 2 Number of entries: 0x10 Short name: r_pcpDei2Color - Start address: 0xd89 + Start address: 0x3d41 Type: rw Width: 2 VLAN PCP To Queue Mapping Table: @@ -6085,7 +6678,7 @@ conf bus 0: Attributes: [] Default value: 1 Description: Mapping table from VLAN PCP priority bits to ingress/egress queues. - End address: 0xfa8 + End address: 0x3f60 Fields: - Default value: 1 Description: Egress queue. @@ -6095,7 +6688,7 @@ conf bus 0: Width: 3 Number of entries: 8 Short name: r_prio2Queue - Start address: 0xfa1 + Start address: 0x3f59 Type: rw Width: 3 VLAN Table: @@ -6103,7 +6696,7 @@ conf bus 0: Attributes: [] Default value: 0x1f Description: 'Defines the VLAN port membership, which GID to use in L2 lookups, the MSPT to use, if routing is allowed and a VLAN operation (e.g. push, pop, swap) to be performed. \newline \ifdef{\texVlanTableUniqueSrcOps}{ The VLAN operation is selected by the pointer to the \register{VLAN Table VID Operations Table}. }{ \ifdef{\texVlanIdOperations}{ The VLAN operation is selected by the \field{VLAN Table} {vlanSingleOp} field. For the push and swap operations the information used to create the new VLAN header is controlled by the fields \field{VLAN Table}{vidSel}, \field{VLAN Table}{cfiDeiSel}, \field{VLAN Table}{pcpSel} and \field{VLAN Table}{typeSel}. }{}} ' - End address: 0x2dc + End address: 0x3388 Fields: - Default value: 0x1f Description: 'VLAN membership portmask. The packets source port must be a member of the VLAN, otherwise the packet will be dropped and the \register{VLAN Member Drop} will be incremented. The membership mask will also limit the destination ports for L2 unicast, multicast, broadcast and flooding. If this results in an empty destination port mask then the packet is dropped and the \register{Empty Mask Drop} will be incremented. ' @@ -6125,68 +6718,68 @@ conf bus 0: Width: 1 - Default value: 0 Description: Ingress MMP pointer. - End bit: 8 + End bit: 9 Name: mmpPtr Start bit: 7 - Width: 2 + Width: 3 - Default value: 0 Description: Ingress MMP pointer order. - End bit: 9 + End bit: 10 Name: mmpOrder - Start bit: 9 + Start bit: 10 Width: 1 - Default value: 0 - Description: The ingress VLAN operation to perform on the packet. \tabFive{No operation.} {Swap.} {Push.} {Pop.} {Penultimate Pop(remove all VLANS).} - End bit: 12 + Description: The ingress VLAN operation to perform on the packet. \tabFive{No operation.} {Swap.} {Push.} {Pop.} {Penultimate Pop (remove all VLANS).} + End bit: 13 Name: vlanSingleOp - Start bit: 10 + Start bit: 11 Width: 3 - Default value: 0 Description: Selects which VID to use when building a new VLAN header in a push or swap operation. If the selected VLAN header doesn't exist in the packet then this table entry's \field{VLAN Table}{vid} will be used. \tabThree{From the outermost VLAN in the original packet (if any).} {From this table entry's \field{VLAN Table}{vid}.} {From the second VLAN in the original packet (if any).} - End bit: 14 + End bit: 15 Name: vidSel - Start bit: 13 + Start bit: 14 Width: 2 - Default value: 0 Description: Selects which CFI/DEI to use when building a new VLAN header in a push or swap operation. If the selected VLAN header doesn't exist in the packet then this table entry's \field{VLAN Table}{cfiDei} will be used. \tabThree{From outermost VLAN in the original packet (if any).} {From this table entry's \field{VLAN Table}{cfiDei}.} {From the second VLAN in the original packet (if any).} - End bit: 0x10 + End bit: 0x11 Name: cfiDeiSel - Start bit: 15 + Start bit: 0x10 Width: 2 - Default value: 0 Description: Selects which PCP to use when building a new VLAN header in a push or swap operation. If the selected VLAN header doesn't exist in the packet then this table entry's \field{VLAN Table}{pcp} will be used. \tabThree{From outermost VLAN in the original packet. (if any)} {From this table entry's \field{VLAN Table}{pcp}.} {From the second VLAN in the original packet (if any).} - End bit: 0x12 + End bit: 0x13 Name: pcpSel - Start bit: 0x11 + Start bit: 0x12 Width: 2 - Default value: 0 Description: The VID used in VLAN push or swap operation if selected by \field{VLAN Table}{vidSel}. - End bit: 0x1e + End bit: 0x1f Name: vid - Start bit: 0x13 + Start bit: 0x14 Width: 12 - Default value: 0 Description: The PCP used in VLAN push or swap operation if selected by \field{VLAN Table}{pcpSel}. - End bit: 0x21 + End bit: 0x22 Name: pcp - Start bit: 0x1f + Start bit: 0x20 Width: 3 - Default value: 0 Description: The CFI/DEI used in VLAN push or swap operation if selected by \field{VLAN Table}{cfiDeiSel} - End bit: 0x22 + End bit: 0x23 Name: cfiDei - Start bit: 0x22 + Start bit: 0x23 Width: 1 - Default value: 0 Description: Selects which TPID to use when building a new VLAN header in a push or swap operation. \tabThree{C-VLAN - 0x8100.} {S-VLAN - 0x88A8.} {User defined VLAN type from register \register{Egress Ethernet Type for VLAN tag} field \field{Egress Ethernet Type for VLAN tag}{typeValue}.} - End bit: 0x24 + End bit: 0x25 Name: typeSel - Start bit: 0x23 + Start bit: 0x24 Width: 2 - Index: The packet's Ingress VID determined by source port settings in \register{Source Port Table}. - Number of entries: 0x20 + Index: The packet's Ingress VID which is determined by the source port settings in \register{Source Port Table}. + Number of entries: 0x1000 Short name: r_vlanTable_ss0 - Start address: 0x29d + Start address: 0x1389 Statistics: null Type: rw - Width: 0x25 + Width: 0x26 diff --git a/drivers/net/dsa/pasw/dev-saline/saline.c b/drivers/net/dsa/pasw/dev-saline/saline.c index b167286..9c8f7df 100644 --- a/drivers/net/dsa/pasw/dev-saline/saline.c +++ b/drivers/net/dsa/pasw/dev-saline/saline.c @@ -154,7 +154,7 @@ struct saline_hw_bar0 { u8 regs[SZ_64K]; } ptp_tx_ts; struct { - u8 regs[SZ_64K]; + u8 regs[SZ_256K]; } pasw; } __packed; @@ -714,7 +714,7 @@ static int saline_probe_sw(struct saline *ssw) .reg_bits = 32, .val_bits = 32, .reg_shift = -2, - .max_register = SZ_16K - 1, + .max_register = sizeof_field(struct saline_hw_bar0, pasw) / 4 - 1, }; struct dsa_chip_data *chip; diff --git a/drivers/net/dsa/pasw/include/linux/dsa/tag_pasw.h b/drivers/net/dsa/pasw/include/linux/dsa/tag_pasw.h index 6920057..ec6c692 100644 --- a/drivers/net/dsa/pasw/include/linux/dsa/tag_pasw.h +++ b/drivers/net/dsa/pasw/include/linux/dsa/tag_pasw.h @@ -3,6 +3,7 @@ #ifndef __TAG_PASW_H #define __TAG_PASW_H +#include #include /* MODULE_ALIAS_DSA_TAG_DRIVER relies on ${PROTO} + ${PROTO}_VALUE @@ -14,6 +15,26 @@ #define ETH_P_PASW_PQ_TO_CPU 0x9999 #define PASW_TAG_PQ_FROM_CPU_LEN 5 -#define PASW_TAG_PQ_TO_CPU_LEN 15 +#define PASW_TAG_PQ_TO_CPU_LEN 16 + +/* Byte offsets in the To CPU tag */ +#define PASW_TAG_PQ_TO_CPU_PORT 2 +#define PASW_TAG_PQ_TO_CPU_REASON 3 /* 16 bits */ +#define PASW_TAG_PQ_TO_CPU_FLAGS 5 /* BIT(0): PTP, BIT(1): valid timestamp */ +#define PASW_TAG_PQ_TO_CPU_TS_NS 6 /* 32 bits, LE */ +#define PASW_TAG_PQ_TO_CPU_TS_SEC 10 /* 48 bits, LE */ + +#define PASW_NR_RESERVED_MC 0x20 + +/* The switch sends the IEEE reserved groups, 01:80:C2:00:00:00-1F, to + * the CPU only. + */ +static inline bool pasw_is_reserved_mc(const u8 *addr) +{ + static const u8 mask[ETH_ALEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, + (u8)~(PASW_NR_RESERVED_MC - 1) }; + + return ether_addr_equal_masked(addr, eth_reserved_addr_base, mask); +} #endif /* __TAG_PASW_H */ diff --git a/drivers/net/dsa/pasw/pasw-abi.c b/drivers/net/dsa/pasw/pasw-abi.c index 3f61c21..c7223a0 100644 --- a/drivers/net/dsa/pasw/pasw-abi.c +++ b/drivers/net/dsa/pasw/pasw-abi.c @@ -28,21 +28,22 @@ #endif /* field_get */ +#include #include #include #include "pasw.h" #include "pasw-abi.h" -u64 pasw_hash(u64 key, u8 key_bits, u8 hash_bits) +u32 pasw_hash(const unsigned long *key, unsigned int key_bits, u8 hash_bits) { - u64 hash = 0; - u8 i = 0; + unsigned int i; + u32 hash = 0; for (i = 0; i < key_bits; i += hash_bits) - hash ^= field_get(GENMASK(i + hash_bits, i), key); + hash ^= bitmap_read(key, i, min_t(unsigned int, hash_bits, key_bits - i)); - return hash & ((1 << hash_bits) - 1); + return hash; } static u64 pasw_field_get(const u32 *word, const struct pasw_field *f) @@ -152,7 +153,7 @@ int pasw_var_mod(struct pasw *sw, const struct pasw_var *v, u32 clr, u32 set) return 0; } -u64 pasw_table_hash(const struct pasw_table *t, u64 key, u8 key_bits) +u32 pasw_table_hash(const struct pasw_table *t, const unsigned long *key, unsigned int key_bits) { u32 hash_bits; @@ -175,6 +176,11 @@ void pasw_table_hashway(const struct pasw_table *t, u32 idx, u32 *hash, u32 *way *way = field_get(way_mask, idx); } +static u32 pasw_row_reg(const struct pasw_row *row, u32 base) +{ + return base + row->idx * row->table->stride; +} + int pasw_row_load(struct pasw_row *row, struct pasw *sw) { const struct pasw_table *t = row->table; @@ -182,8 +188,29 @@ int pasw_row_load(struct pasw_row *row, struct pasw *sw) if (!pasw_table_ok(t)) return -EOPNOTSUPP; - return regmap_bulk_read(sw->regs, t->reg + row->idx * t->stride, - row->word, t->stride); + return regmap_bulk_read(sw->regs, pasw_row_reg(row, t->reg), row->word, t->words); +} + +/* Returns 1 if the row's replica differs from it, 0 if it matches or + * the table has no replica. + */ +int pasw_row_cmp_replica(const struct pasw_row *row, struct pasw *sw) +{ + const struct pasw_table *t = row->table; + u32 word[__PASW_ROW_WORDS]; + int err; + + if (!pasw_table_ok(t)) + return -EOPNOTSUPP; + + if (!t->replica_reg) + return 0; + + err = regmap_bulk_read(sw->regs, pasw_row_reg(row, t->replica_reg), word, t->words); + if (err) + return err; + + return !!memcmp(word, row->word, t->words * sizeof(*word)); } int pasw_row_store(const struct pasw_row *row, struct pasw *sw) @@ -194,18 +221,38 @@ int pasw_row_store(const struct pasw_row *row, struct pasw *sw) if (!pasw_table_ok(t)) return -EOPNOTSUPP; - err = regmap_bulk_write(sw->regs, t->reg + row->idx * t->stride, - row->word, t->stride); + err = regmap_bulk_write(sw->regs, pasw_row_reg(row, t->reg), row->word, t->words); if (err) return err; if (t->replica_reg) - err = regmap_bulk_write(sw->regs, t->replica_reg + row->idx * t->stride, - row->word, t->stride); + err = regmap_bulk_write(sw->regs, pasw_row_reg(row, t->replica_reg), + row->word, t->words); return err; } +int pasw_table_clear(struct pasw *sw, const struct pasw_table *t) +{ + size_t n = t->len * t->stride; + u32 *zero; + int err; + + if (!pasw_table_ok(t)) + return -EOPNOTSUPP; + + zero = kcalloc(n, sizeof(*zero), GFP_KERNEL); + if (!zero) + return -ENOMEM; + + err = regmap_bulk_write(sw->regs, t->reg, zero, n); + if (!err && t->replica_reg) + err = regmap_bulk_write(sw->regs, t->replica_reg, zero, n); + + kfree(zero); + return err; +} + int pasw_row_get(const struct pasw_row *row, const struct pasw_field *field, u64 *val) { const struct pasw_table *t = row->table; @@ -248,3 +295,23 @@ int pasw_row_mod(struct pasw_row *row, const struct pasw_field *field, u64 clr, return 0; } +#define PASW_ROW_BITS (__PASW_ROW_WORDS * 32) + +int pasw_row_set_bits(struct pasw_row *row, const struct pasw_bits *b, const unsigned long *val) +{ + DECLARE_BITMAP(word, PASW_ROW_BITS); + unsigned int i, n; + + if (!pasw_table_ok(row->table) || !pasw_bits_ok(b)) + return -EOPNOTSUPP; + + bitmap_from_arr32(word, row->word, PASW_ROW_BITS); + for (i = 0; i < b->width; i += BITS_PER_LONG) { + n = min_t(unsigned int, BITS_PER_LONG, b->width - i); + bitmap_write(word, bitmap_read(val, i, n), b->start + i, n); + } + bitmap_to_arr32(row->word, word, PASW_ROW_BITS); + + return 0; +} + diff --git a/drivers/net/dsa/pasw/pasw-abi.h b/drivers/net/dsa/pasw/pasw-abi.h index fe4b7ea..ed89ea2 100644 --- a/drivers/net/dsa/pasw/pasw-abi.h +++ b/drivers/net/dsa/pasw/pasw-abi.h @@ -3,7 +3,7 @@ #ifndef _PASW_ABI_H #define _PASW_ABI_H -u64 pasw_hash(u64 key, u8 key_bits, u8 hash_bits); +u32 pasw_hash(const unsigned long *key, unsigned int key_bits, u8 hash_bits); struct pasw; @@ -19,6 +19,17 @@ static inline bool pasw_field_ok(const struct pasw_field *f) bool pasw_field_fits(const struct pasw_field *f, u64 val); +/* A field that may be wider than 64 bits, accessed as a bitmap */ +struct pasw_bits { + u16 start; + u16 width; +}; + +static inline bool pasw_bits_ok(const struct pasw_bits *b) +{ + return b && b->width; +} + struct pasw_var { u32 reg; struct pasw_field field; @@ -39,6 +50,7 @@ struct pasw_table { u32 len:20; u32 stride:6; u32 ways:4; + u8 words; /* holding data, out of stride */ /* Some tables are replicated to allow for parallel * lookups. For such tables, this holds the base @@ -56,25 +68,30 @@ static inline bool pasw_table_ok(const struct pasw_table *t) return t && t->len; } -u64 pasw_table_hash(const struct pasw_table *t, u64 key, u8 key_bits); +u32 pasw_table_hash(const struct pasw_table *t, const unsigned long *key, unsigned int key_bits); void pasw_table_hashway(const struct pasw_table *t, u32 idx, u32 *hash, u32 *way); struct pasw_row { const struct pasw_table *table; u32 idx; -#define __PASW_ROW_WORDS 8 +#define __PASW_ROW_WORDS 17 u32 word[__PASW_ROW_WORDS]; }; +int pasw_table_clear(struct pasw *sw, const struct pasw_table *t); + int pasw_row_load(struct pasw_row *row, struct pasw *sw); int pasw_row_store(const struct pasw_row *row, struct pasw *sw); +int pasw_row_cmp_replica(const struct pasw_row *row, struct pasw *sw); int pasw_row_get(const struct pasw_row *row, const struct pasw_field *f, u64 *val); int pasw_row_geti(const struct pasw_row *row, const struct pasw_field *field); int pasw_row_set(struct pasw_row *row, const struct pasw_field *f, u64 val); int pasw_row_mod(struct pasw_row *row, const struct pasw_field *f, u64 clr, u64 set); +int pasw_row_set_bits(struct pasw_row *row, const struct pasw_bits *b, const unsigned long *val); + struct pasw_stat_field { struct pasw_field field; const char *name; diff --git a/drivers/net/dsa/pasw/pasw-abi.yml b/drivers/net/dsa/pasw/pasw-abi.yml index 2a91c19..55a10ca 100644 --- a/drivers/net/dsa/pasw/pasw-abi.yml +++ b/drivers/net/dsa/pasw/pasw-abi.yml @@ -2,6 +2,12 @@ attributes: design_name: type: "const char *" + # An attribute with a `default` takes the reset value of that + # register field. The core version is the one the specs describe. + core_version: + type: u32 + default: ["Core Version", "version"] + nr_of_l2_gids: src: ["defines", "c_GID"] nr_of_ports: @@ -14,9 +20,28 @@ attributes: type: "enum pasw_tag_format" # Optional - nr_of_ptp_ticks: + acl_fields: + mandatory: false + src: ["confAclFields", "_CONF_INGRESS", 0] + match: const_name + members: + sel: id + width: size + entries: + da: DA_MAC + sa: SA_MAC + vid: OUTER_VID + has_vlan: HAS_VLANS + pcp: OUTER_PCP + etype: ETH_TYPE + sport: SOURCE_PORT + acl_key_bits: + mandatory: false + type: u16 + src: ["confAclSearchSize", "_CONF_INGRESS", 0] + acl_max_fields: mandatory: false - src: ["ptp_tick", "nr_of_ticks"] + src: ["confAclRulesPerEntry", "_CONF_INGRESS", 0] variables: l2_aging: @@ -29,16 +54,9 @@ variables: src: ["Core Tick Configuration", "clkDivider"] tick_step: src: ["Core Tick Configuration", "stepDivider"] - ptp_tick_div: - src: ["PTP Tick Configuration", "clkDivider"] - ptp_tick_step: - src: ["PTP Tick Configuration", "stepDivider"] egress_gate_pending: src: ["Egress Transmission Gate Update Status", "pending"] mandatory: false - ptp_tick_sel: - src: ["PTP Tick Select", "clkSelect"] - mandatory: false shaper_capacity: src: ["Queue Shaper Bucket Capacity Configuration", "bucketCapacity"] mandatory: false @@ -51,7 +69,63 @@ variables: # Fields can be defined as a bit range of a register field using # `slice: [lo, hi]`, which is used to split up the 80-bit timestamps, # encoded as {sec[47:0], ns[31:0]}, used by the transmission gates. +# +# Fields marked `wide` are described by their start bit and width +# (struct pasw_bits) instead, and are accessed as bitmaps. This is +# used for the ACL keys, which are wider than 64 bits. tables: + acl_mask: + src: "Ingress Configurable ACL Search Mask" + mandatory: false + fields: + mask_large: + wide: true + mask_small: + wide: true + acl_rule: + src: "Ingress Configurable ACL Rules Setup" + mandatory: false + fields: + field_select_bitmask: + acl_sel: + src: "Ingress Configurable ACL Selection" + mandatory: false + fields: + select_small_or_large: + select_tcam_or_table: + acl_tcam: + src: "Ingress Configurable ACL TCAM" + mandatory: false + fields: + valid: + mask: + wide: true + <<: &acl_compare_fields + compare_data: + wide: true + acl_tcam_ans: + src: "Ingress Configurable ACL TCAM Answer" + mandatory: false + fields: &acl_action_fields + drop_enable: + e_queue: + force_queue: + send_to_cpu: + send_to_port: + dest_port: + stream_handle: + stream_valid: + acl_small: + src: "Ingress Configurable ACL Small Table" + mandatory: false + fields: &acl_hash_fields + valid: + <<: [*acl_compare_fields, *acl_action_fields] + acl_large: + src: "Ingress Configurable ACL Large Table" + mandatory: false + like: acl_small + fields: *acl_hash_fields egress_gate_cfg: src: "Egress Transmission Gate Configuration" mandatory: false @@ -128,6 +202,7 @@ tables: fields: mac_addr: gid: + replica: "L2 SA Hash Lookup Table" l2_coll_aging: src: "L2 Aging Collision Table" fields: @@ -174,6 +249,10 @@ tables: mandatory: false spt: mandatory: false + use_acl: + mandatory: false + acl_rule: + mandatory: false vlan: src: "VLAN Table" fields: diff --git a/drivers/net/dsa/pasw/pasw-acl.c b/drivers/net/dsa/pasw/pasw-acl.c new file mode 100644 index 0000000..6e85032 --- /dev/null +++ b/drivers/net/dsa/pasw/pasw-acl.c @@ -0,0 +1,699 @@ +// SPDX-License-Identifier: GPL-2.0-only + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "pasw.h" +#include "pasw-abi.h" +#include "pasw-acl.h" + +struct pasw_acl_node { + struct list_head list; + struct pasw_acl_rule rule; +}; + +#define PASW_ACL_KEY_MAX 256 + +struct pasw_acl_entry { + bool valid; + DECLARE_BITMAP(key, PASW_ACL_KEY_MAX); + DECLARE_BITMAP(mask, PASW_ACL_KEY_MAX); + struct pasw_acl_action act; + + /* Only for debugfs */ + enum pasw_acl_owner owner; + unsigned long cookie; +}; + +/* All ports share one key layout. Entries from different layouts could + * otherwise match each other's packets, as the valid bits only count + * the selected fields. + */ +struct pasw_acl_state { + u16 layout; + struct pasw_acl_entry *tcam, *small, *large; +}; + +struct pasw_acls { + struct mutex lock; + struct list_head rules; /* in order of precedence */ + unsigned int nr_rules; + + u8 order[__MAX_PASW_ACL_FIELDS]; /* supported fields, by select bit */ + u8 nr_fields; + u16 avail; + + struct pasw_acl_state cur, next; +}; + +struct pasw_acl_cand { + struct pasw_acl_entry e; + bool tcam; +}; + +typedef int (*pasw_acl_store_fn)(struct pasw *sw, u32 idx, const struct pasw_acl_entry *old, + const struct pasw_acl_entry *e); + +static u8 pasw_acl_width(struct pasw *sw, u8 fid) +{ + return sw->abi->attr.acl_fields[fid].width; +} + +static u16 pasw_acl_rule_fields(const struct pasw_acl_rule *r) +{ + u16 fields = 0; + u8 fid; + + for (fid = 0; fid < __MAX_PASW_ACL_FIELDS; fid++) { + if (r->mask[fid]) + fields |= BIT(fid); + } + + return fields; +} + +static u32 pasw_acl_select(struct pasw *sw, u16 layout) +{ + unsigned long fields = layout; + u32 sel = 0; + u8 fid; + + for_each_set_bit(fid, &fields, __MAX_PASW_ACL_FIELDS) + sel |= BIT(sw->abi->attr.acl_fields[fid].sel); + + return sel; +} + +/* One valid bit per possible field, then the fields in the layout */ +static unsigned int pasw_acl_layout_bits(struct pasw *sw, u16 layout) +{ + unsigned int bits = sw->abi->attr.acl_max_fields; + unsigned long fields = layout; + u8 fid; + + for_each_set_bit(fid, &fields, __MAX_PASW_ACL_FIELDS) + bits += pasw_acl_width(sw, fid); + + return bits; +} + +static int pasw_acl_layout_check(struct pasw *sw, u16 layout, + struct netlink_ext_ack *extack) +{ + + if (layout & ~sw->acls->avail) { + NL_SET_ERR_MSG_MOD(extack, "The ACL does not support matching on this field"); + return -EOPNOTSUPP; + } + + if (hweight16(layout) > sw->abi->attr.acl_max_fields) { + NL_SET_ERR_MSG_FMT_MOD(extack, "The ACL can match on at most %u key fields", + sw->abi->attr.acl_max_fields); + return -EOPNOTSUPP; + } + + if (pasw_acl_layout_bits(sw, layout) > sw->abi->attr.acl_key_bits) { + NL_SET_ERR_MSG_FMT_MOD(extack, "The ACL key fields do not fit in %u bits", + sw->abi->attr.acl_key_bits); + return -EOPNOTSUPP; + } + + return 0; +} + +static void pasw_acl_bits_write(unsigned long *map, u64 val, unsigned int start, + unsigned int nbits) +{ + bitmap_write(map, lower_32_bits(val), start, min(nbits, 32U)); + if (nbits > 32) + bitmap_write(map, upper_32_bits(val), start + 32, nbits - 32); +} + +/* The key starts with one valid bit per possible field, followed by + * the selected fields in select bit order. A rule matches the valid + * bit of each field it matches on. Returns true when the rule matches + * every bit of the key. + */ +static bool pasw_acl_encode(struct pasw *sw, u16 layout, const struct pasw_acl_rule *r, + unsigned long *key, unsigned long *mask) +{ + unsigned int off = sw->abi->attr.acl_max_fields, vbit = 0; + struct pasw_acls *acls = sw->acls; + bool exact = true; + u8 fid, i, width; + u64 m, full; + + bitmap_zero(key, PASW_ACL_KEY_MAX); + bitmap_zero(mask, PASW_ACL_KEY_MAX); + for (i = 0; i < acls->nr_fields; i++) { + fid = acls->order[i]; + if (!(layout & BIT(fid))) + continue; + + width = pasw_acl_width(sw, fid); + full = GENMASK_ULL(width - 1, 0); + m = r->mask[fid] & full; + exact &= m == full; + + if (m) { + __set_bit(vbit, key); + __set_bit(vbit, mask); + pasw_acl_bits_write(key, r->val[fid] & m, off, width); + pasw_acl_bits_write(mask, m, off, width); + } + + off += width; + vbit++; + } + + return exact; +} + +static bool pasw_acl_entry_eq(const struct pasw_acl_entry *a, const struct pasw_acl_entry *b) +{ + return a->valid == b->valid && + bitmap_equal(a->key, b->key, PASW_ACL_KEY_MAX) && + bitmap_equal(a->mask, b->mask, PASW_ACL_KEY_MAX) && + !memcmp(&a->act, &b->act, sizeof(a->act)); +} + +static void pasw_acl_state_clear(struct pasw *sw, struct pasw_acl_state *st) +{ + st->layout = 0; + memset(st->tcam, 0, pasw_table(sw, acl_tcam)->len * sizeof(*st->tcam)); + memset(st->small, 0, pasw_table(sw, acl_small)->len * sizeof(*st->small)); + memset(st->large, 0, pasw_table(sw, acl_large)->len * sizeof(*st->large)); +} + +static struct pasw_acl_entry *pasw_acl_hash_slot(const struct pasw_table *t, + struct pasw_acl_entry *tab, unsigned int key_bits, + const unsigned long *key, bool *taken) +{ + u32 per = t->len / t->ways, hash, way; + struct pasw_acl_entry *free = NULL, *e; + + hash = pasw_table_hash(t, key, key_bits); + for (way = 0; way < t->ways; way++) { + e = &tab[way * per + hash]; + if (e->valid && bitmap_equal(e->key, key, PASW_ACL_KEY_MAX)) + *taken = true; + else if (!e->valid && !free) + free = e; + } + + return free; +} + +static bool pasw_acl_overlaps(const struct pasw_acl_entry *wild, const struct pasw_acl_entry *exact) +{ + DECLARE_BITMAP(masked, PASW_ACL_KEY_MAX); + + bitmap_and(masked, exact->key, wild->mask, PASW_ACL_KEY_MAX); + return bitmap_equal(masked, wild->key, PASW_ACL_KEY_MAX); +} + +static int pasw_acl_plan(struct pasw *sw, struct pasw_acl_state *st, + struct netlink_ext_ack *extack) +{ + struct pasw_acls *acls = sw->acls; + struct pasw_acl_cand *cands, *c; + struct pasw_acl_entry *slot; + struct pasw_acl_node *n; + unsigned int ntcam = 0; + int nr = 0, i, j, err; + bool taken; + + pasw_acl_state_clear(sw, st); + + list_for_each_entry(n, &acls->rules, list) + st->layout |= pasw_acl_rule_fields(&n->rule); + + err = pasw_acl_layout_check(sw, st->layout, extack); + if (err) + return err; + + cands = kcalloc(acls->nr_rules, sizeof(*cands), GFP_KERNEL); + if (!cands) + return -ENOMEM; + + list_for_each_entry(n, &acls->rules, list) { + c = &cands[nr++]; + c->tcam = !pasw_acl_encode(sw, st->layout, &n->rule, c->e.key, c->e.mask); + c->e.valid = true; + c->e.act = n->rule.act; + c->e.owner = n->rule.owner; + c->e.cookie = n->rule.cookie; + } + + /* The TCAM wins over the hash tables, so an exact entry must go + * to the TCAM if a wildcard entry with lower precedence would + * also match it. + */ + for (i = nr - 1; i >= 0; i--) { + if (cands[i].tcam) + continue; + + for (j = i + 1; j < nr; j++) { + if (cands[j].tcam && pasw_acl_overlaps(&cands[j].e, &cands[i].e)) { + cands[i].tcam = true; + break; + } + } + } + + for (i = 0, c = cands; i < nr; i++, c++) { + if (c->tcam) + continue; + + taken = false; + slot = pasw_acl_hash_slot(pasw_table(sw, acl_small), st->small, + sw->abi->attr.acl_key_bits, c->e.key, &taken); + slot = pasw_acl_hash_slot(pasw_table(sw, acl_large), st->large, + sw->abi->attr.acl_key_bits, c->e.key, &taken) ? : slot; + + /* An earlier rule with the same key shadows this one */ + if (taken) + continue; + + if (slot) + *slot = c->e; + else + c->tcam = true; + } + + for (i = 0, c = cands; i < nr; i++, c++) { + if (!c->tcam) + continue; + + if (ntcam == pasw_table(sw, acl_tcam)->len) { + NL_SET_ERR_MSG_MOD(extack, "The ACL TCAM is full"); + err = -ENOSPC; + break; + } + + st->tcam[ntcam++] = c->e; + } + + kfree(cands); + return err; +} + +#define pasw_acl_row_set_action(_row, _t, _act) \ + ({ \ + const struct pasw_acl_action *__act = (_act); \ + int __err; \ + \ + __err = pasw_row_set(_row, &(_t)->send_to_cpu, __act->cpu); \ + __err = __err ? : pasw_row_set(_row, &(_t)->drop_enable, __act->drop); \ + __err = __err ? : pasw_row_set(_row, &(_t)->send_to_port, __act->redirect); \ + __err = __err ? : pasw_row_set(_row, &(_t)->dest_port, __act->port); \ + __err = __err ? : pasw_row_set(_row, &(_t)->force_queue, __act->force_queue); \ + __err = __err ? : pasw_row_set(_row, &(_t)->e_queue, __act->queue); \ + __err; \ + }) + +static int pasw_acl_store_hash(struct pasw *sw, const struct pasw_t_acl_small *t, u32 idx, + const struct pasw_acl_entry *e) +{ + struct pasw_row row = { .table = &t->table, .idx = idx }; + int err = 0; + + if (e->valid) { + err = pasw_row_set(&row, &t->valid, 1); + err = err ? : pasw_row_set_bits(&row, &t->compare_data, e->key); + err = err ? : pasw_acl_row_set_action(&row, t, &e->act); + } + + return err ? : pasw_row_store(&row, sw); +} + +static int pasw_acl_store_small(struct pasw *sw, u32 idx, const struct pasw_acl_entry *old, + const struct pasw_acl_entry *e) +{ + return pasw_acl_store_hash(sw, pasw_t(sw, acl_small), idx, e); +} + +static int pasw_acl_store_large(struct pasw *sw, u32 idx, const struct pasw_acl_entry *old, + const struct pasw_acl_entry *e) +{ + return pasw_acl_store_hash(sw, pasw_t(sw, acl_large), idx, e); +} + +/* The TCAM compares against the stored data without applying the mask, + * so the key must already be masked, which pasw_acl_encode() does. + * Invalidate the old entry and write the answer before the new one + * becomes valid. + */ +static int pasw_acl_store_tcam(struct pasw *sw, u32 idx, const struct pasw_acl_entry *old, + const struct pasw_acl_entry *e) +{ + const struct pasw_t_acl_tcam_ans *ta = pasw_t(sw, acl_tcam_ans); + const struct pasw_t_acl_tcam *t = pasw_t(sw, acl_tcam); + struct pasw_row row = { .table = &t->table, .idx = idx }; + struct pasw_row ans = { .table = &ta->table, .idx = idx }; + int err = 0; + + if (old->valid) + err = pasw_row_store(&row, sw); + + if (err || !e->valid) + return err; + + err = pasw_acl_row_set_action(&ans, ta, &e->act); + err = err ? : pasw_row_store(&ans, sw); + err = err ? : pasw_row_set_bits(&row, &t->mask, e->mask); + err = err ? : pasw_row_set_bits(&row, &t->compare_data, e->key); + err = err ? : pasw_row_set(&row, &t->valid, 1); + return err ? : pasw_row_store(&row, sw); +} + +static int pasw_acl_store_table(struct pasw *sw, struct pasw_acl_entry *cur, + const struct pasw_acl_entry *next, u32 len, + pasw_acl_store_fn store) +{ + int err; + u32 i; + + for (i = 0; i < len; i++) { + if (!pasw_acl_entry_eq(&cur[i], &next[i])) { + err = store(sw, i, &cur[i], &next[i]); + if (err) + return err; + } + + cur[i] = next[i]; + } + + return 0; +} + +static int pasw_acl_store(struct pasw *sw) +{ + const struct pasw_t_src_port *tsp = pasw_t(sw, src_port); + const struct pasw_t_acl_rule *tr = pasw_t(sw, acl_rule); + struct pasw_acl_state *cur = &sw->acls->cur; + struct pasw_acl_state *next = &sw->acls->next; + struct dsa_port *dp; + struct pasw_row row; + int err; + + err = pasw_acl_store_table(sw, cur->tcam, next->tcam, pasw_table(sw, acl_tcam)->len, + pasw_acl_store_tcam); + err = err ? : pasw_acl_store_table(sw, cur->small, next->small, + pasw_table(sw, acl_small)->len, pasw_acl_store_small); + err = err ? : pasw_acl_store_table(sw, cur->large, next->large, + pasw_table(sw, acl_large)->len, pasw_acl_store_large); + if (err || cur->layout == next->layout) + return err; + + row = (struct pasw_row) { .table = &tr->table }; + err = pasw_row_set(&row, &tr->field_select_bitmask, pasw_acl_select(sw, next->layout)); + err = err ? : pasw_row_store(&row, sw); + if (err) + return err; + + if (!cur->layout != !next->layout) { + dsa_switch_for_each_user_port(dp, &sw->ds) { + row = (struct pasw_row) { .table = &tsp->table, .idx = dp->index }; + err = pasw_row_load(&row, sw); + err = err ? : pasw_row_set(&row, &tsp->acl_rule, 0); + err = err ? : pasw_row_set(&row, &tsp->use_acl, !!next->layout); + err = err ? : pasw_row_store(&row, sw); + if (err) + return err; + } + } + + cur->layout = next->layout; + return 0; +} + +static int pasw_acl_commit(struct pasw *sw, struct netlink_ext_ack *extack) +{ + int err; + + lockdep_assert_held(&sw->acls->lock); + + err = pasw_acl_plan(sw, &sw->acls->next, extack); + return err ? : pasw_acl_store(sw); +} + +static struct pasw_acl_node *pasw_acl_find(struct pasw_acls *acls, enum pasw_acl_owner owner, + unsigned long cookie, int port) +{ + struct pasw_acl_node *n; + + list_for_each_entry(n, &acls->rules, list) { + if (n->rule.owner == owner && n->rule.cookie == cookie && n->rule.port == port) + return n; + } + + return NULL; +} + +static bool pasw_acl_before(const struct pasw_acl_rule *a, const struct pasw_acl_rule *b) +{ + if (a->owner != b->owner) + return a->owner < b->owner; + + return a->prio < b->prio; +} + +int pasw_acl_add(struct pasw *sw, const struct pasw_acl_rule *rule, + struct netlink_ext_ack *extack) +{ + struct pasw_acls *acls = sw->acls; + struct pasw_acl_node *new, *n; + struct pasw_acl_rule *r; + int err; + + if (!acls) { + NL_SET_ERR_MSG_MOD(extack, "The switch has no ACL engine"); + return -EOPNOTSUPP; + } + + new = kzalloc(sizeof(*new), GFP_KERNEL); + if (!new) + return -ENOMEM; + + r = &new->rule; + *r = *rule; + if (r->port >= 0) { + r->val[PASW_ACL_FIELDS_SPORT] = r->port; + r->mask[PASW_ACL_FIELDS_SPORT] = ~0ULL; + } + + mutex_lock(&acls->lock); + + if (pasw_acl_find(acls, rule->owner, rule->cookie, rule->port)) { + err = -EEXIST; + goto err_free; + } + + list_for_each_entry(n, &acls->rules, list) { + if (pasw_acl_before(rule, &n->rule)) + break; + } + list_add_tail(&new->list, &n->list); + acls->nr_rules++; + + err = pasw_acl_commit(sw, extack); + if (err) { + list_del(&new->list); + acls->nr_rules--; + pasw_acl_commit(sw, NULL); + goto err_free; + } + + mutex_unlock(&acls->lock); + return 0; + +err_free: + mutex_unlock(&acls->lock); + kfree(new); + return err; +} + +void pasw_acl_del(struct pasw *sw, enum pasw_acl_owner owner, unsigned long cookie, int port) +{ + struct pasw_acls *acls = sw->acls; + struct pasw_acl_node *n; + int err; + + if (!acls) + return; + + mutex_lock(&acls->lock); + + n = pasw_acl_find(acls, owner, cookie, port); + if (n) { + list_del(&n->list); + acls->nr_rules--; + kfree(n); + + err = pasw_acl_commit(sw, NULL); + if (err) + dev_err(sw->dev, "Failed to remove ACL rule: %pe\n", ERR_PTR(err)); + } + + mutex_unlock(&acls->lock); +} + +static void pasw_acl_show_table(struct seq_file *s, const char *name, unsigned int bits, + const struct pasw_acl_entry *e, u32 len) +{ + u32 i; + + for (i = 0; i < len; i++, e++) { + if (!e->valid) + continue; + + seq_printf(s, "%-5s %3u key %*pb mask %*pb cpu %d drop %d redirect %d/%u queue %d/%u owner %d cookie %lx\n", + name, i, bits, e->key, bits, e->mask, e->act.cpu, e->act.drop, + e->act.redirect, e->act.port, e->act.force_queue, e->act.queue, + e->owner, e->cookie); + } +} + +int pasw_acl_show(struct seq_file *s, struct pasw *sw) +{ + struct pasw_acls *acls = sw->acls; + struct pasw_acl_state *cur; + unsigned int bits; + + if (!acls) + return 0; + + mutex_lock(&acls->lock); + cur = &acls->cur; + bits = pasw_acl_layout_bits(sw, cur->layout); + + seq_printf(s, "fields %#06x select %#06x\n", cur->layout, pasw_acl_select(sw, cur->layout)); + pasw_acl_show_table(s, "tcam", bits, cur->tcam, pasw_table(sw, acl_tcam)->len); + pasw_acl_show_table(s, "small", bits, cur->small, pasw_table(sw, acl_small)->len); + pasw_acl_show_table(s, "large", bits, cur->large, pasw_table(sw, acl_large)->len); + + mutex_unlock(&acls->lock); + return 0; +} + +static int pasw_acl_state_alloc(struct pasw *sw, struct pasw_acl_state *st) +{ + struct device *dev = sw->dev; + + st->tcam = devm_kcalloc(dev, pasw_table(sw, acl_tcam)->len, sizeof(*st->tcam), GFP_KERNEL); + st->small = devm_kcalloc(dev, pasw_table(sw, acl_small)->len, sizeof(*st->small), GFP_KERNEL); + st->large = devm_kcalloc(dev, pasw_table(sw, acl_large)->len, sizeof(*st->large), GFP_KERNEL); + + return st->tcam && st->small && st->large ? 0 : -ENOMEM; +} + +static int pasw_acl_cmp_sel(const void *a, const void *b, const void *priv) +{ + const struct pasw *sw = priv; + + return sw->abi->attr.acl_fields[*(const u8 *)a].sel - + sw->abi->attr.acl_fields[*(const u8 *)b].sel; +} + +/* Start from empty tables, the core is not reset when the driver is + * reloaded. + */ +static int pasw_acl_clear_hw(struct pasw *sw) +{ + const struct pasw_table *tabs[] = { + pasw_table(sw, acl_tcam), pasw_table(sw, acl_tcam_ans), + pasw_table(sw, acl_small), pasw_table(sw, acl_large), + pasw_table(sw, acl_rule), + }; + const struct pasw_t_src_port *tsp = pasw_t(sw, src_port); + const struct pasw_t_acl_mask *tm = pasw_t(sw, acl_mask); + DECLARE_BITMAP(ones, PASW_ACL_KEY_MAX); + struct pasw_row row; + unsigned int t; + int err; + u32 i; + + for (t = 0; t < ARRAY_SIZE(tabs); t++) { + err = pasw_table_clear(sw, tabs[t]); + if (err) + return err; + } + + for (i = 0; i < tsp->table.len; i++) { + row = (struct pasw_row) { .table = &tsp->table, .idx = i }; + err = pasw_row_load(&row, sw); + err = err ? : pasw_row_set(&row, &tsp->use_acl, 0); + err = err ? : pasw_row_store(&row, sw); + if (err) + return err; + } + + bitmap_fill(ones, PASW_ACL_KEY_MAX); + row = (struct pasw_row) { .table = &tm->table }; + err = pasw_row_set_bits(&row, &tm->mask_small, ones); + err = err ? : pasw_row_set_bits(&row, &tm->mask_large, ones); + err = err ? : pasw_row_store(&row, sw); + if (err) + return err; + + /* Prefer the TCAM when a key hits in several tables */ + row = (struct pasw_row) { .table = pasw_table(sw, acl_sel) }; + return pasw_row_store(&row, sw); +} + +int pasw_acl_setup(struct pasw *sw) +{ + struct pasw_acls *acls; + int err; + u8 fid; + + if (!pasw_table_ok(pasw_table(sw, acl_rule)) || + !pasw_table_ok(pasw_table(sw, acl_mask)) || + !pasw_table_ok(pasw_table(sw, acl_sel)) || + !pasw_table_ok(pasw_table(sw, acl_small)) || + !pasw_table_ok(pasw_table(sw, acl_large)) || + !pasw_table_ok(pasw_table(sw, acl_tcam)) || + !pasw_table_ok(pasw_table(sw, acl_tcam_ans)) || + !pasw_field_ok(&pasw_t(sw, src_port)->use_acl) || + !pasw_field_ok(&pasw_t(sw, src_port)->acl_rule) || + !sw->abi->attr.acl_max_fields) + return 0; + + if (sw->abi->attr.acl_key_bits > PASW_ACL_KEY_MAX) { + dev_warn(sw->dev, "ACL keys of %u bits are not supported\n", + sw->abi->attr.acl_key_bits); + return 0; + } + + acls = devm_kzalloc(sw->dev, sizeof(*acls), GFP_KERNEL); + if (!acls) + return -ENOMEM; + + mutex_init(&acls->lock); + INIT_LIST_HEAD(&acls->rules); + + for (fid = 0; fid < __MAX_PASW_ACL_FIELDS; fid++) { + if (!pasw_acl_width(sw, fid)) + continue; + + acls->avail |= BIT(fid); + acls->order[acls->nr_fields++] = fid; + } + sort_r(acls->order, acls->nr_fields, sizeof(acls->order[0]), pasw_acl_cmp_sel, NULL, sw); + + err = pasw_acl_state_alloc(sw, &acls->cur); + err = err ? : pasw_acl_state_alloc(sw, &acls->next); + err = err ? : pasw_acl_clear_hw(sw); + if (err) + return err; + + sw->acls = acls; + return 0; +} diff --git a/drivers/net/dsa/pasw/pasw-acl.h b/drivers/net/dsa/pasw/pasw-acl.h new file mode 100644 index 0000000..2079831 --- /dev/null +++ b/drivers/net/dsa/pasw/pasw-acl.h @@ -0,0 +1,45 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef _PASW_ACL_H +#define _PASW_ACL_H + +#include "pasw-abi.h" + +struct netlink_ext_ack; +struct seq_file; + +/* Rules from earlier owners take precedence */ +enum pasw_acl_owner { + PASW_ACL_TC, +}; + +struct pasw_acl_action { + bool cpu; + bool drop; + bool redirect; + bool force_queue; + u8 port; + u8 queue; +}; + +/* A field with a zero mask is not matched */ +struct pasw_acl_rule { + enum pasw_acl_owner owner; + unsigned long cookie; + u32 prio; /* within an owner, lower wins */ + int port; /* -1: every user port */ + + u64 val[__MAX_PASW_ACL_FIELDS]; + u64 mask[__MAX_PASW_ACL_FIELDS]; + + struct pasw_acl_action act; +}; + +int pasw_acl_add(struct pasw *sw, const struct pasw_acl_rule *rule, + struct netlink_ext_ack *extack); +void pasw_acl_del(struct pasw *sw, enum pasw_acl_owner owner, unsigned long cookie, int port); + +int pasw_acl_show(struct seq_file *s, struct pasw *sw); +int pasw_acl_setup(struct pasw *sw); + +#endif /* _PASW_ACL_H */ diff --git a/drivers/net/dsa/pasw/pasw-clk.c b/drivers/net/dsa/pasw/pasw-clk.c index e565132..edf98f4 100644 --- a/drivers/net/dsa/pasw/pasw-clk.c +++ b/drivers/net/dsa/pasw/pasw-clk.c @@ -9,8 +9,6 @@ #include "pasw-abi.h" #include "pasw-clk.h" -#define PASW_PTP_TICK_SEL_CORE 1 - struct pasw_tick { struct clk_hw clkhw; struct pasw *sw; @@ -23,7 +21,6 @@ struct pasw_clks { struct clk *core; struct pasw_tick *tick; - struct pasw_tick *ptp_tick; }; /* The master tick's divider has divshift fractional bits. Since @@ -89,20 +86,12 @@ struct clk_ops pasw_tick_ops = { .set_rate = pasw_tick_set_rate, }; -struct pasw_tick *pasw_tick_get(struct pasw *sw, enum pasw_tick_type type, u8 idx) +struct pasw_tick *pasw_tick_get(struct pasw *sw, u8 idx) { - switch (type) { - case PASW_TICK: - if (idx >= sw->abi->attr.nr_of_ticks) - return NULL; - return &sw->clks->tick[idx]; - case PASW_PTP_TICK: - if (idx >= sw->abi->attr.nr_of_ptp_ticks) - return NULL; - return &sw->clks->ptp_tick[idx]; - } + if (idx >= sw->abi->attr.nr_of_ticks) + return NULL; - return NULL; + return &sw->clks->tick[idx]; } unsigned long pasw_tick_rate(struct pasw_tick *tick) @@ -123,11 +112,9 @@ unsigned long pasw_tick_ticks(struct pasw_tick *tick, unsigned long ns) return ns / mult; } -static struct pasw_tick *pasw_clk_setup_tick(struct pasw *sw, const char *name, - const struct pasw_var *div, - const struct pasw_var *step, - u8 nr_ticks) +static struct pasw_tick *pasw_clk_setup_tick(struct pasw *sw) { + u8 nr_ticks = sw->abi->attr.nr_of_ticks; struct pasw_tick *tick; int err; u8 i; @@ -138,12 +125,12 @@ static struct pasw_tick *pasw_clk_setup_tick(struct pasw *sw, const char *name, tick[0] = (struct pasw_tick) { .clkhw = { - .init = CLK_HW_INIT(devm_kasprintf(sw->dev, GFP_KERNEL, "%s-%s0", - dev_name(sw->dev), name), + .init = CLK_HW_INIT(devm_kasprintf(sw->dev, GFP_KERNEL, "%s-tick0", + dev_name(sw->dev)), __clk_get_name(sw->clks->core), &pasw_tick_ops, 0), }, .sw = sw, - .div = div, + .div = &sw->abi->var.tick_div, .divshift = 8, }; @@ -157,12 +144,12 @@ static struct pasw_tick *pasw_clk_setup_tick(struct pasw *sw, const char *name, for (i = 1; i < nr_ticks; i++) { tick[i] = (struct pasw_tick) { .clkhw = { - .init = CLK_HW_INIT_HW(devm_kasprintf(sw->dev, GFP_KERNEL, "%s-%s%u", - dev_name(sw->dev), name, i), + .init = CLK_HW_INIT_HW(devm_kasprintf(sw->dev, GFP_KERNEL, "%s-tick%u", + dev_name(sw->dev), i), &tick[i - 1].clkhw, &pasw_tick_ops, 0), }, .sw = sw, - .div = step, + .div = &sw->abi->var.tick_step, .ro = i > 1, }; @@ -189,25 +176,7 @@ int pasw_clk_setup(struct pasw *sw) return PTR_ERR(sw->clks->core); } - sw->clks->tick = pasw_clk_setup_tick(sw, "tick", - &sw->abi->var.tick_div, - &sw->abi->var.tick_step, - sw->abi->attr.nr_of_ticks); - if (IS_ERR(sw->clks->tick)) - return PTR_ERR(sw->clks->tick); - - if (sw->abi->attr.nr_of_ptp_ticks) { - sw->clks->ptp_tick = pasw_clk_setup_tick(sw, "ptp-tick", - &sw->abi->var.ptp_tick_div, - &sw->abi->var.ptp_tick_step, - sw->abi->attr.nr_of_ptp_ticks); - if (IS_ERR(sw->clks->ptp_tick)) - return PTR_ERR(sw->clks->ptp_tick); - - if (pasw_var_ok(&sw->abi->var.ptp_tick_sel)) - return pasw_var_set(sw, &sw->abi->var.ptp_tick_sel, - PASW_PTP_TICK_SEL_CORE); - } + sw->clks->tick = pasw_clk_setup_tick(sw); - return 0; + return PTR_ERR_OR_ZERO(sw->clks->tick); } diff --git a/drivers/net/dsa/pasw/pasw-clk.h b/drivers/net/dsa/pasw/pasw-clk.h index 2819a91..ef85b1f 100644 --- a/drivers/net/dsa/pasw/pasw-clk.h +++ b/drivers/net/dsa/pasw/pasw-clk.h @@ -3,13 +3,8 @@ #ifndef _PASW_CLK_H #define _PASW_CLK_H -enum pasw_tick_type { - PASW_TICK, - PASW_PTP_TICK, -}; - struct pasw_tick; -struct pasw_tick *pasw_tick_get(struct pasw *sw, enum pasw_tick_type type, u8 idx); +struct pasw_tick *pasw_tick_get(struct pasw *sw, u8 idx); unsigned long pasw_tick_rate(struct pasw_tick *tick); int pasw_tick_rate_set(struct pasw_tick *tick, unsigned long rate); unsigned long pasw_tick_ticks(struct pasw_tick *tick, unsigned long ns); diff --git a/drivers/net/dsa/pasw/pasw-core.c b/drivers/net/dsa/pasw/pasw-core.c index 8bb50a6..09c9d41 100644 --- a/drivers/net/dsa/pasw/pasw-core.c +++ b/drivers/net/dsa/pasw/pasw-core.c @@ -7,6 +7,7 @@ #include "pasw.h" #include "pasw-abi.h" +#include "pasw-acl.h" #include "pasw-clk.h" #include "pasw-l2.h" #include "pasw-vlan.h" @@ -338,6 +339,7 @@ static int pasw_dso_setup(struct dsa_switch *ds) err = err ? : pasw_tc_setup(sw); err = err ? : pasw_vlan_setup(sw); err = err ? : pasw_l2_setup(sw); + err = err ? : pasw_acl_setup(sw); return err; } @@ -411,9 +413,9 @@ static const struct dsa_switch_ops pasw_dsos = { .port_txtstamp = pasw_dso_port_txtstamp, /* TC */ .port_setup_tc = pasw_dso_port_setup_tc, -/* .cls_flower_add = pasw_dso_cls_flower_add, */ -/* .cls_flower_del = pasw_dso_cls_flower_del, */ -/* .cls_flower_stats = pasw_dso_cls_flower_stats, */ + .cls_flower_add = pasw_dso_cls_flower_add, + .cls_flower_del = pasw_dso_cls_flower_del, + .cls_flower_stats = pasw_dso_cls_flower_stats, /* DCB */ .port_get_default_prio = pasw_dso_port_get_default_prio, .port_set_default_prio = pasw_dso_port_set_default_prio, @@ -445,8 +447,19 @@ u8 pasw_prio_from_queue(struct pasw *sw, u8 q) int pasw_init(struct pasw *sw) { + u32 version; int err; + err = pasw_var_get(sw, &sw->abi->var.version, &version); + if (err) + return err; + + if (version != sw->abi->attr.core_version) { + dev_err(sw->dev, "Core version %#010x is not supported, the driver is built for %#010x\n", + version, sw->abi->attr.core_version); + return -ENODEV; + } + sw->ds.priv = sw; sw->ds.dev = sw->dev; sw->ds.ops = &pasw_dsos; diff --git a/drivers/net/dsa/pasw/pasw-debugfs.c b/drivers/net/dsa/pasw/pasw-debugfs.c index a746c21..4ea4097 100644 --- a/drivers/net/dsa/pasw/pasw-debugfs.c +++ b/drivers/net/dsa/pasw/pasw-debugfs.c @@ -4,6 +4,8 @@ #include "pasw.h" #include "pasw-abi.h" +#include "pasw-acl.h" +#include "pasw-l2.h" static struct dentry *pasw_debugfsdir; @@ -72,9 +74,42 @@ static int pasw_debugfs_stats_show(struct seq_file *s, void *offset) DEFINE_SHOW_ATTRIBUTE(pasw_debugfs_stats); +static int pasw_debugfs_acl_show(struct seq_file *s, void *offset) +{ + return pasw_acl_show(s, s->private); +} + +DEFINE_SHOW_ATTRIBUTE(pasw_debugfs_acl); + +static int pasw_debugfs_fdb_show(struct seq_file *s, void *offset) +{ + return pasw_l2_show(s, s->private); +} + +/* Size the buffer for a full table up front, as seq_file would + * otherwise walk the table again each time it grows the buffer. + */ +static int pasw_debugfs_fdb_open(struct inode *inode, struct file *file) +{ + struct pasw *sw = inode->i_private; + size_t lines = 1 + pasw_table(sw, l2_da_hash)->len + pasw_table(sw, l2_coll)->len; + + return single_open_size(file, pasw_debugfs_fdb_show, sw, lines * 96); +} + +static const struct file_operations pasw_debugfs_fdb_fops = { + .owner = THIS_MODULE, + .open = pasw_debugfs_fdb_open, + .read = seq_read, + .llseek = seq_lseek, + .release = single_release, +}; + int pasw_debugfs_setup(struct pasw *sw) { sw->debugfs = debugfs_create_dir(dev_name(sw->dev), pasw_debugfsdir); + debugfs_create_file("acl", 0444, sw->debugfs, sw, &pasw_debugfs_acl_fops); + debugfs_create_file("fdb", 0444, sw->debugfs, sw, &pasw_debugfs_fdb_fops); debugfs_create_file("stats", 0444, sw->debugfs, sw, &pasw_debugfs_stats_fops); return 0; } diff --git a/drivers/net/dsa/pasw/pasw-l2.c b/drivers/net/dsa/pasw/pasw-l2.c index 0feb340..cb7607b 100644 --- a/drivers/net/dsa/pasw/pasw-l2.c +++ b/drivers/net/dsa/pasw/pasw-l2.c @@ -2,6 +2,8 @@ #include #include +#include +#include #include "pasw.h" #include "pasw-abi.h" @@ -182,6 +184,14 @@ static int pasw_l2_flush_all(struct pasw *sw) return pasw_l2_flush(sw, &match); } +static u32 pasw_l2_hash(struct pasw *sw, u16 gid, u64 addr) +{ + DECLARE_BITMAP(key, 64); + + bitmap_from_u64(key, addr | ((u64)gid << 48)); + return pasw_table_hash(pasw_table(sw, l2_da_hash), key, 49); +} + static int __pasw_l2_fdb_del(struct pasw *sw, struct pasw_l2_match *match, u16 gid, u64 addr) { @@ -190,8 +200,7 @@ static int __pasw_l2_fdb_del(struct pasw *sw, struct pasw_l2_match *match, u64 caddr; match->hash.match = true; - match->hash.val = pasw_table_hash(pasw_table(sw, l2_da_hash), - addr | ((u64)gid << 48), 49), + match->hash.val = pasw_l2_hash(sw, gid, addr); pasw_l2_iter_init(sw, &iter, match); while ((err = pasw_l2_iter_next(sw, &iter)) == 1) { @@ -224,15 +233,14 @@ static int __pasw_l2_fdb_del_learned(struct pasw *sw, u16 gid, u64 addr) return err; } -int pasw_l2_fdb_add_static(struct pasw *sw, int port, u16 gid, const u8 *addr) +static int __pasw_l2_fdb_add_static(struct pasw *sw, int port, u16 gid, const u8 *addr) { u64 addr64 = ether_addr_to_u64(addr); struct pasw_l2_match match = { .status = PASW_L2_INVALID_BIT, .hash = { .match = true, - .val = pasw_table_hash(pasw_table(sw, l2_da_hash), - addr64 | ((u64)gid << 48), 49), + .val = pasw_l2_hash(sw, gid, addr64), }, }; struct pasw_l2_iter iter; @@ -273,6 +281,17 @@ int pasw_l2_fdb_add_static(struct pasw *sw, int port, u16 gid, const u8 *addr) return err; } +/* The reserved groups always go to the CPU only, see + * pasw_l2_trap_reserved_mc(). + */ +int pasw_l2_fdb_add_static(struct pasw *sw, int port, u16 gid, const u8 *addr) +{ + if (pasw_is_reserved_mc(addr)) + return port == sw->abi->attr.cpu_port ? 0 : -EBUSY; + + return __pasw_l2_fdb_add_static(sw, port, gid, addr); +} + int pasw_l2_fdb_del_static(struct pasw *sw, int port, u16 gid, const u8 *addr) { struct pasw_l2_match match = { @@ -284,6 +303,9 @@ int pasw_l2_fdb_del_static(struct pasw *sw, int port, u16 gid, const u8 *addr) }; int err; + if (pasw_is_reserved_mc(addr)) + return 0; + err = pasw_l2_set_hw_learn_age(sw, false); if (err) return err; @@ -301,7 +323,7 @@ int pasw_l2_set_aging_time(struct pasw *sw, unsigned int msecs) { #define PASW_L2_AGE_CNT 20 struct pasw_row age_time = { .table = pasw_table(sw, l2_age_time) }; - struct pasw_tick *tick = pasw_tick_get(sw, PASW_TICK, 0); + struct pasw_tick *tick = pasw_tick_get(sw, 0); unsigned long ticks; int err; @@ -322,6 +344,95 @@ int pasw_l2_set_aging_time(struct pasw *sw, unsigned int msecs) return err ? :pasw_row_store(&age_time, sw); } +static void pasw_l2_show_replica(struct seq_file *s, struct pasw *sw, + const struct pasw_row *row, const char *name) +{ + int diff = pasw_row_cmp_replica(row, sw); + + if (diff) + seq_printf(s, " %s%s", diff < 0 ? "?" : "!", name); +} + +/* Lists every entry in use. Learned entries show their age status. + * Replicas that differ from their primary are marked with a "!", ones + * that could not be read with a "?". + */ +int pasw_l2_show(struct seq_file *s, struct pasw *sw) +{ + struct pasw_l2_match match = { + .status = PASW_L2_VALID_BITS | PASW_L2_RESERVED_BIT | PASW_L2_STATIC_BIT, + }; + const struct pasw_t_l2_da_hash *ta = pasw_t(sw, l2_da_hash); + const struct pasw_t_l2_dst *td = pasw_t(sw, l2_dst); + int err, status, gid; + struct pasw_l2_iter iter; + u32 hash, way, dst; + char loc[16], st[8]; + u8 addr[ETH_ALEN]; + u64 addr64; + + seq_puts(s, "IDX LOCATION STATUS GID ADDRESS DESTINATION REPLICAS\n"); + + pasw_l2_iter_init(sw, &iter, &match); + while ((err = pasw_l2_iter_next(sw, &iter)) == 1) { + status = pasw_row_geti(&iter.entry->aging, &pasw_t(sw, l2_aging)->status); + gid = pasw_row_geti(&iter.entry->addr, &ta->gid); + pasw_row_get(&iter.entry->addr, &ta->mac_addr, &addr64); + u64_to_ether_addr(addr64, addr); + + if (iter.entry == &iter.hash) { + pasw_table_hashway(pasw_table(sw, l2_da_hash), iter.dst.idx, &hash, &way); + snprintf(loc, sizeof(loc), "%02x:%u", hash, way); + } else { + snprintf(loc, sizeof(loc), "coll %u", iter.entry->addr.idx); + } + + if (status == PASW_L2_STATIC) + strscpy(st, "static"); + else if (status == PASW_L2_RESERVED) + strscpy(st, "rsvd"); + else + snprintf(st, sizeof(st), "%d", status); + + seq_printf(s, "0x%03x %-8s %-6s %3d %pM ", iter.dst.idx, loc, st, gid, addr); + + dst = pasw_row_geti(&iter.dst, &td->dst); + if (pasw_row_geti(&iter.dst, &td->pkt_drop)) + seq_printf(s, "%-11s", "drop"); + else if (pasw_row_geti(&iter.dst, &td->uc)) + seq_printf(s, "port%-7u", dst); + else + seq_printf(s, "mc%-9u", dst); + + /* Only the tables of the hash entries have replicas */ + pasw_l2_show_replica(s, sw, &iter.entry->addr, "sa"); + pasw_l2_show_replica(s, sw, &iter.entry->aging_stat, "aging-stat"); + pasw_l2_show_replica(s, sw, &iter.dst, "dst"); + + seq_putc(s, '\n'); + } + + return err; +} + +/* Bridges decide which of the IEEE reserved groups to forward. On + * standalone ports, every frame goes to the CPU anyway. + */ +static int pasw_l2_trap_reserved_mc(struct pasw *sw) +{ + u8 addr[ETH_ALEN]; + int err, i; + + ether_addr_copy(addr, eth_reserved_addr_base); + for (i = 0; i < PASW_NR_RESERVED_MC; i++, addr[5]++) { + err = __pasw_l2_fdb_add_static(sw, sw->abi->attr.cpu_port, 0, addr); + if (err) + return err; + } + + return 0; +} + int pasw_l2_setup(struct pasw *sw) { unsigned int aging_time = jiffies_to_msecs(BR_DEFAULT_AGEING_TIME); @@ -329,5 +440,6 @@ int pasw_l2_setup(struct pasw *sw) err = pasw_l2_flush_all(sw); err = err ? : pasw_l2_set_aging_time(sw, aging_time); + err = err ? : pasw_l2_trap_reserved_mc(sw); return err; } diff --git a/drivers/net/dsa/pasw/pasw-l2.h b/drivers/net/dsa/pasw/pasw-l2.h index d6fb6f4..885ed09 100644 --- a/drivers/net/dsa/pasw/pasw-l2.h +++ b/drivers/net/dsa/pasw/pasw-l2.h @@ -5,6 +5,8 @@ #include "pasw-abi.h" +struct seq_file; + enum pasw_l2_status { PASW_L2_INVALID = 0, PASW_L2_RESERVED = 30, @@ -61,6 +63,7 @@ int pasw_l2_fdb_add_static(struct pasw *sw, int port, u16 gid, const u8 *addr); int pasw_l2_fdb_del_static(struct pasw *sw, int port, u16 gid, const u8 *addr); int pasw_l2_set_aging_time(struct pasw *sw, unsigned int msecs); +int pasw_l2_show(struct seq_file *s, struct pasw *sw); int pasw_l2_setup(struct pasw *sw); #endif /* _PASW_L2_H */ diff --git a/drivers/net/dsa/pasw/pasw-tc.c b/drivers/net/dsa/pasw/pasw-tc.c index c45933c..1dfd539 100644 --- a/drivers/net/dsa/pasw/pasw-tc.c +++ b/drivers/net/dsa/pasw/pasw-tc.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only +#include #include #include #include @@ -7,9 +8,10 @@ #include "pasw.h" #include "pasw-abi.h" +#include "pasw-acl.h" #include "pasw-clk.h" -/* The shapers' tick rates are derived from PTP tick 0, which is set +/* The shapers' tick rates are derived from core tick 0, which is set * up to run at 1 MHz. Each subsequent tick is 10x slower. */ #define PASW_TC_SHAPER_TICK_HZ (1 * HZ_PER_MHZ) @@ -201,13 +203,13 @@ static int pasw_tc_shaper_tick(struct pasw *sw, enum pasw_tc_shaper_type type, u64 rate, u32 burst, u8 *tick, u32 *tokens) { const struct pasw_field *tokf = &pasw_t(sw, shaper_rate)->tokens; - int i, n = sw->abi->attr.nr_of_ptp_ticks, sel = -1; + int i, n = sw->abi->attr.nr_of_ticks, sel = -1; bool cbs = type == PASW_TC_SHAPER_CBS; unsigned long tick_rate; u64 tok; for (i = cbs ? 0 : n - 1; i >= 0 && i < n; i += cbs ? 1 : -1) { - tick_rate = pasw_tick_rate(pasw_tick_get(sw, PASW_PTP_TICK, i)); + tick_rate = pasw_tick_rate(pasw_tick_get(sw, i)); if (!tick_rate) continue; @@ -677,6 +679,149 @@ static int pasw_tc_query_caps(struct pasw *sw, struct tc_query_caps_base *base) return 0; } +static int pasw_tc_flower_match(struct flow_rule *rule, struct pasw_acl_rule *r, + struct netlink_ext_ack *extack) +{ + struct flow_dissector *d = rule->match.dissector; + + if (d->used_keys & ~(BIT_ULL(FLOW_DISSECTOR_KEY_CONTROL) | + BIT_ULL(FLOW_DISSECTOR_KEY_BASIC) | + BIT_ULL(FLOW_DISSECTOR_KEY_ETH_ADDRS) | + BIT_ULL(FLOW_DISSECTOR_KEY_VLAN))) { + NL_SET_ERR_MSG_MOD(extack, "Only MAC addresses, VLAN and EtherType can be matched"); + return -EOPNOTSUPP; + } + + if (flow_rule_match_has_control_flags(rule, extack)) + return -EOPNOTSUPP; + + if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { + struct flow_match_basic m; + + flow_rule_match_basic(rule, &m); + if (m.mask->ip_proto) { + NL_SET_ERR_MSG_MOD(extack, "Matching on the IP protocol is not supported"); + return -EOPNOTSUPP; + } + + r->val[PASW_ACL_FIELDS_ETYPE] = ntohs(m.key->n_proto); + r->mask[PASW_ACL_FIELDS_ETYPE] = ntohs(m.mask->n_proto); + } + + if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) { + struct flow_match_eth_addrs m; + + flow_rule_match_eth_addrs(rule, &m); + r->val[PASW_ACL_FIELDS_DA] = ether_addr_to_u64(m.key->dst); + r->mask[PASW_ACL_FIELDS_DA] = ether_addr_to_u64(m.mask->dst); + r->val[PASW_ACL_FIELDS_SA] = ether_addr_to_u64(m.key->src); + r->mask[PASW_ACL_FIELDS_SA] = ether_addr_to_u64(m.mask->src); + } + + if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { + struct flow_match_vlan m; + + flow_rule_match_vlan(rule, &m); + + /* The switch can not tell C-tags from S-tags. Matching on + * the VID or PCP already requires a tag. + */ + if (!m.mask->vlan_id && !m.mask->vlan_priority) { + r->val[PASW_ACL_FIELDS_HAS_VLAN] = !!m.mask->vlan_tpid; + r->mask[PASW_ACL_FIELDS_HAS_VLAN] = !!m.mask->vlan_tpid; + } + + r->val[PASW_ACL_FIELDS_VID] = m.key->vlan_id; + r->mask[PASW_ACL_FIELDS_VID] = m.mask->vlan_id; + r->val[PASW_ACL_FIELDS_PCP] = m.key->vlan_priority; + r->mask[PASW_ACL_FIELDS_PCP] = m.mask->vlan_priority; + } + + return 0; +} + +static int pasw_tc_flower_action(struct pasw *sw, struct flow_rule *rule, + struct pasw_acl_rule *r, struct netlink_ext_ack *extack) +{ + const struct flow_action_entry *act; + struct dsa_port *dp; + int i; + + flow_action_for_each(i, act, &rule->action) { + switch (act->id) { + case FLOW_ACTION_DROP: + r->act.drop = true; + break; + case FLOW_ACTION_TRAP: + r->act.cpu = true; + break; + case FLOW_ACTION_REDIRECT: + dp = dsa_port_from_netdev(act->dev); + if (IS_ERR(dp) || dp->ds != &sw->ds) { + NL_SET_ERR_MSG_MOD(extack, "Can only redirect to a port on the same switch"); + return -EOPNOTSUPP; + } + + r->act.redirect = true; + r->act.port = dp->index; + break; + case FLOW_ACTION_PRIORITY: + if (act->priority >= sw->abi->attr.nr_of_queues) { + NL_SET_ERR_MSG_FMT_MOD(extack, "Priority must be below %u", + sw->abi->attr.nr_of_queues); + return -EOPNOTSUPP; + } + + r->act.force_queue = true; + r->act.queue = pasw_queue_from_prio(sw, act->priority); + break; + default: + NL_SET_ERR_MSG_MOD(extack, "Only drop, trap, redirect and skbedit priority are supported"); + return -EOPNOTSUPP; + } + } + + return 0; +} + +int pasw_dso_cls_flower_add(struct dsa_switch *ds, int port, + struct flow_cls_offload *cls, bool ingress) +{ + struct flow_rule *rule = flow_cls_offload_flow_rule(cls); + struct netlink_ext_ack *extack = cls->common.extack; + struct pasw *sw = ds->priv; + struct pasw_acl_rule r = { + .owner = PASW_ACL_TC, + .cookie = cls->cookie, + .prio = cls->common.prio, + .port = port, + }; + int err; + + if (!ingress) { + NL_SET_ERR_MSG_MOD(extack, "Only ingress filters can be offloaded"); + return -EOPNOTSUPP; + } + + err = pasw_tc_flower_match(rule, &r, extack); + err = err ? : pasw_tc_flower_action(sw, rule, &r, extack); + return err ? : pasw_acl_add(sw, &r, extack); +} + +int pasw_dso_cls_flower_del(struct dsa_switch *ds, int port, + struct flow_cls_offload *cls, bool ingress) +{ + pasw_acl_del(ds->priv, PASW_ACL_TC, cls->cookie, port); + return 0; +} + +/* The ACL engine has four shared match counters, not one per rule */ +int pasw_dso_cls_flower_stats(struct dsa_switch *ds, int port, + struct flow_cls_offload *cls, bool ingress) +{ + return 0; +} + int pasw_dso_port_setup_tc(struct dsa_switch *ds, int port, enum tc_setup_type type, void *type_data) { @@ -702,7 +847,7 @@ int pasw_dso_port_setup_tc(struct dsa_switch *ds, int port, static int pasw_tc_setup_shapers(struct pasw *sw) { - struct pasw_tick *tick = pasw_tick_get(sw, PASW_PTP_TICK, 0); + struct pasw_tick *tick = pasw_tick_get(sw, 0); struct pasw_row en = { .table = pasw_table(sw, shaper_en) }; int err; diff --git a/drivers/net/dsa/pasw/pasw-vlan.c b/drivers/net/dsa/pasw/pasw-vlan.c index bc47f82..f029102 100644 --- a/drivers/net/dsa/pasw/pasw-vlan.c +++ b/drivers/net/dsa/pasw/pasw-vlan.c @@ -27,16 +27,20 @@ struct pasw_vlan_port { struct pasw_vlan *vlan; }; +/* Each port uses at most one VLAN at a time, so the pool only holds + * one per port, taken from the top of the VID range. + */ struct pasw_vlans { struct pasw_vlan *vlan; + unsigned int nr; struct pasw_vlan_port *port; }; #define pasw_vlan_foreach(_sw, _vlan) \ for ((_vlan) = (_sw)->vlans->vlan; \ - (_vlan) < &(_sw)->vlans->vlan[pasw_table(_sw, vlan)->len]; \ + (_vlan) < &(_sw)->vlans->vlan[(_sw)->vlans->nr]; \ (_vlan)++) #define pasw_vlan_foreach_reverse(_sw, _vlan) \ - for ((_vlan) = &(_sw)->vlans->vlan[pasw_table(_sw, vlan)->len - 1]; \ + for ((_vlan) = &(_sw)->vlans->vlan[(_sw)->vlans->nr - 1]; \ (_vlan) >= (_sw)->vlans->vlan; \ (_vlan)--) @@ -46,12 +50,14 @@ static int pasw_vlan_flush(struct pasw *sw, struct pasw_vlan *vlan) return pasw_row_store(&vlan->ve, sw); } -static int pasw_vlan_put(struct pasw *sw, struct pasw_vlan *vlan) +static int pasw_vlan_put(struct pasw *sw, struct pasw_vlan *vlan, int port) { int err; - if (--vlan->refcnt) - return 0; + if (--vlan->refcnt) { + err = pasw_row_mod(&vlan->ve, &pasw_t(sw, vlan)->port_mask, BIT(port), 0); + return err ? : pasw_row_store(&vlan->ve, sw); + } err = pasw_vlan_flush(sw, vlan); if (err) @@ -103,9 +109,11 @@ int pasw_vlan_port_set_bridged(struct pasw *sw, int port, unsigned brnum, u16 *p int err; if (vp->vlan) { - err = pasw_vlan_put(sw, vp->vlan); + err = pasw_vlan_put(sw, vp->vlan, port); if (err) return err; + + vp->vlan = NULL; } vlan = pasw_vlan_get(sw, &brnum); @@ -121,7 +129,7 @@ int pasw_vlan_port_set_bridged(struct pasw *sw, int port, unsigned brnum, u16 *p *pvid = vlan->vid; return 0; err_put: - pasw_vlan_put(sw, vlan); + pasw_vlan_put(sw, vlan, port); return err; } @@ -132,9 +140,11 @@ int pasw_vlan_port_set_standalone(struct pasw *sw, int port, u16 *pvid) int err; if (vp->vlan) { - err = pasw_vlan_put(sw, vp->vlan); + err = pasw_vlan_put(sw, vp->vlan, port); if (err) return err; + + vp->vlan = NULL; } vlan = pasw_vlan_get(sw, NULL); @@ -152,38 +162,39 @@ int pasw_vlan_port_set_standalone(struct pasw *sw, int port, u16 *pvid) *pvid = vlan->vid; return 0; err_put: - pasw_vlan_put(sw, vlan); + pasw_vlan_put(sw, vlan, port); return err; } int pasw_vlan_setup(struct pasw *sw) { + const struct pasw_table *t = pasw_table(sw, vlan); struct pasw_vlan *vlan; int err; u16 i; + /* Every port is a member of every VLAN out of reset */ + err = pasw_table_clear(sw, t); + if (err) + return err; + sw->vlans = devm_kzalloc(sw->dev, sizeof(*sw->vlans), GFP_KERNEL); if (!sw->vlans) return -ENOMEM; - sw->vlans->vlan = devm_kzalloc(sw->dev, - pasw_table(sw, vlan)->len * sizeof(*sw->vlans->vlan), + sw->vlans->nr = min_t(unsigned int, t->len, sw->abi->attr.nr_of_ports); + sw->vlans->vlan = devm_kcalloc(sw->dev, sw->vlans->nr, sizeof(*sw->vlans->vlan), GFP_KERNEL); if (!sw->vlans->vlan) return -ENOMEM; - i = 0; + i = t->len - sw->vlans->nr; pasw_vlan_foreach(sw, vlan) { vlan->vid = i; vlan->ve = (struct pasw_row) { .idx = i, - .table = pasw_table(sw, vlan), + .table = t, }; - - err = pasw_vlan_flush(sw, vlan); - if (err) - return err; - i++; } diff --git a/drivers/net/dsa/pasw/pasw.h b/drivers/net/dsa/pasw/pasw.h index 7fd8c19..187879f 100644 --- a/drivers/net/dsa/pasw/pasw.h +++ b/drivers/net/dsa/pasw/pasw.h @@ -13,6 +13,7 @@ struct phylink_mac_ops; struct regmap; struct pasw_abi; +struct pasw_acls; struct pasw_clks; struct pasw_tc; struct pasw_vlans; @@ -46,6 +47,7 @@ struct pasw { struct dsa_switch ds; struct dentry *debugfs; + struct pasw_acls *acls; struct pasw_vlans *vlans; struct pasw_clks *clks; struct pasw_tc *tc; @@ -73,6 +75,12 @@ int pasw_dso_port_get_apptrust(struct dsa_switch *ds, int port, u8 *sel, int *ns int pasw_tc_setup(struct pasw *sw); int pasw_dso_port_setup_tc(struct dsa_switch *ds, int port, enum tc_setup_type type, void *type_data); +int pasw_dso_cls_flower_add(struct dsa_switch *ds, int port, + struct flow_cls_offload *cls, bool ingress); +int pasw_dso_cls_flower_del(struct dsa_switch *ds, int port, + struct flow_cls_offload *cls, bool ingress); +int pasw_dso_cls_flower_stats(struct dsa_switch *ds, int port, + struct flow_cls_offload *cls, bool ingress); /* pasw-debugfs.c */ #ifdef CONFIG_DEBUG_FS diff --git a/drivers/net/dsa/pasw/tag_pasw.c b/drivers/net/dsa/pasw/tag_pasw.c index 047aa25..e4a1d25 100644 --- a/drivers/net/dsa/pasw/tag_pasw.c +++ b/drivers/net/dsa/pasw/tag_pasw.c @@ -63,12 +63,12 @@ static void pasw_tag_pq_rcv_tstamp(struct sk_buff *skb, u8 *tag) * the port. But at the moment (for saline) we only support L2 * PTP anyways. */ - if ((tag[4] & 0x3) != 0x3) + if ((tag[PASW_TAG_PQ_TO_CPU_FLAGS] & 0x3) != 0x3) return; - sec = (u64)get_unaligned_le32(tag + 9) | - ((u64)get_unaligned_le16(tag + 13) << 32); - ns = get_unaligned_le32(tag + 5); + sec = (u64)get_unaligned_le32(tag + PASW_TAG_PQ_TO_CPU_TS_SEC) | + ((u64)get_unaligned_le16(tag + PASW_TAG_PQ_TO_CPU_TS_SEC + 4) << 32); + ns = get_unaligned_le32(tag + PASW_TAG_PQ_TO_CPU_TS_NS); shhwtstamps = skb_hwtstamps(skb); memset(shhwtstamps, 0, sizeof(struct skb_shared_hwtstamps)); @@ -84,12 +84,19 @@ static struct sk_buff *pasw_tag_pq_rcv(struct sk_buff *skb, struct net_device *d tag[1] != (ETH_P_PASW_PQ_TO_CPU & 0xff)) return NULL; - user = dsa_conduit_find_user(dev, 0, tag[2]); + user = dsa_conduit_find_user(dev, 0, tag[PASW_TAG_PQ_TO_CPU_PORT]); if (!user) return NULL; skb->dev = user; - dsa_default_offload_fwd_mark(skb); + + /* Reason 0: the switch forwarded the frame to the CPU along + * with any other ports. Anything else is a trap, as are the + * reserved groups, which only go to the CPU. + */ + if (!get_unaligned_be16(tag + PASW_TAG_PQ_TO_CPU_REASON) && + !pasw_is_reserved_mc(eth_hdr(skb)->h_dest)) + dsa_default_offload_fwd_mark(skb); pasw_tag_pq_rcv_tstamp(skb, tag); diff --git a/drivers/net/dsa/pasw/tools/abigen.py b/drivers/net/dsa/pasw/tools/abigen.py index e77a4bd..15b1059 100755 --- a/drivers/net/dsa/pasw/tools/abigen.py +++ b/drivers/net/dsa/pasw/tools/abigen.py @@ -11,6 +11,14 @@ def each(self, sect): yield { "name": n } | (spec if spec else {}) +def enum_prefix(name): + return f"PASW_{name.upper()}" + + +def words(cfg): + return (cfg["Width"] + 31) // 32 + + class Design: class Field: def __init__(self, reg, cfg): @@ -50,6 +58,10 @@ def initializer(self, var): return out + def bits(self): + start, end = self.cfg["Start bit"], self.cfg["End bit"] + return f"{{ .start = {start}, .width = {end - start + 1} }}" + class Stat: def __init__(self, long, cfg): self.long, self.cfg = long, cfg @@ -71,6 +83,7 @@ def table(self): out += f".reg = {self.cfg['Start address']}, " out += f".len = {self.cfg['Number of entries']}, " out += f".stride = {self.cfg['Address step']}, " + out += f".words = {words(self.cfg)}, " out += "},\n" out += f"\t\t.name = \"{self.short}\",\n" out += f"\t\t.nr_fields = {self.nr_fields},\n" @@ -131,6 +144,26 @@ def _cpu_port_format(self, abi): return "PASW_TAG_2B_PORT_QUEUE" return "PASW_TAG_UNSUPPORTED" + @staticmethod + def _list_attr(abi, attr): + prefix = enum_prefix(abi["name"]) + ids = { match: id for id, match in abi["entries"].items() } + + out = [] + for entry in attr: + if id := ids.get(entry.get(abi["match"])): + members = ", ".join(f".{m} = {entry[k]}" for m, k in abi["members"].items()) + out.append(f"[{prefix}_{id.upper()}] = {{ {members} }}") + + return "{ " + ", ".join(out) + " }" if out else None + + @staticmethod + def _lookup(spec, key): + try: + return spec[key] + except (KeyError, IndexError, TypeError): + return {} + def attr_by_abi(self, abi): if abi["name"] in self._computed_attrs: return self._computed_attrs[abi["name"]](abi) @@ -142,10 +175,13 @@ def attr_by_abi(self, abi): case list(): path = src - attr = reduce(lambda spec, key: spec.get(key, {}), path, self.spec["hwconf"]) + attr = reduce(Design.Conf._lookup, path, self.spec["hwconf"]) if not attr: return None + if "entries" in abi: + return self._list_attr(abi, attr) + if abi.get("type") == "const char *": return "\"" + attr + "\"" @@ -155,6 +191,7 @@ def attr_by_abi(self, abi): def __init__(self, name, abi, regs, conf): self.name, self.abi, self.regs, self.conf = name, abi, Design.Regs(regs), Design.Conf(conf) self.tables = [] + self.max_words = 0 def available(self, abi, reg=None, field=None, table=None): if reg or field: @@ -178,6 +215,8 @@ def emit(self, pr): nr_stats = self.emit_stats(pr) self.emit_tables(pr) + pr.writeln(f"static_assert({self.max_words} <= __PASW_ROW_WORDS);\n") + pr.writeln(f"static const struct pasw_abi {self.name}_pasw_abi = {{") pr.writeln("\t.attr = {") self.emit_attrs(pr) @@ -212,6 +251,7 @@ def emit_stats(self, pr): tables = "" nr_stats = 0 for stat in self.regs.each_stat(): + self.max_words = max(self.max_words, words(stat.cfg)) pr.writeln(stat.fields(self.name)) if tables: tables += "\n" @@ -237,11 +277,13 @@ def emit_table(self, pr, tabi): replica = self.regs.reg_by_name(tabi["replica"]) if "replica" in tabi else None self.tables.append(name) + self.max_words = max(self.max_words, words(reg.cfg)) - pr.writeln(f"static const struct pasw_t_{name} {self.name}_pasw_t_{name} = {{") + pr.writeln(f"static const struct pasw_t_{tabi.get('like', name)} {self.name}_pasw_t_{name} = {{") pr.writeln("\t.table = {") pr.writeln(f"\t\t.reg = {reg.cfg['Start address']:>5},") pr.writeln(f"\t\t.stride = {reg.cfg['Address step']:>5},") + pr.writeln(f"\t\t.words = {words(reg.cfg):>5},") pr.writeln(f"\t\t.len = {reg.cfg['Number of entries']:>5},") if ways := reg.cfg.get("Number of tables"): pr.writeln(f"\t\t.ways = {ways:>5},") @@ -257,7 +299,8 @@ def emit_table(self, pr, tabi): continue rf = rf.sliced(fabi) - pr.writeln(f"\t.{f:<{align}} = {rf.initializer(False)},") + init = rf.bits() if fabi.get("wide") else rf.initializer(False) + pr.writeln(f"\t.{f:<{align}} = {init},") pr.writeln("};\n") @@ -266,8 +309,15 @@ def emit_attrs(self, pr): for aabi in self.abi.each("attributes"): self.emit_attr(pr, aabi, align) + def attr_default(self, aabi): + f = self.regs.field(*aabi["default"]) + return f"0x{f.cfg['Default value']:x}" if f else None + def emit_attr(self, pr, aabi, align): - a = self.conf.attr_by_abi(aabi) + if "default" in aabi: + a = self.attr_default(aabi) + else: + a = self.conf.attr_by_abi(aabi) if a == None: if aabi.get("mandatory", True): raise ValueError(f"Design \"{self.name}\" does not define mandatory attribute \"{aabi['name']}\"") @@ -335,9 +385,24 @@ def emit(self, type, member, array=""): pr.writeln("#endif\n") for tabi in abi.each("tables"): + if "like" in tabi: + continue + with StructPrinter(pr, f"pasw_t_{tabi['name']}") as ts: ts.emit("struct pasw_table", "table") - [ ts.emit("struct pasw_field", f) for f in sorted(tabi["fields"]) ] + for f, fabi in sorted(tabi["fields"].items()): + wide = fabi and fabi.get("wide") + ts.emit("struct pasw_bits" if wide else "struct pasw_field", f) + + for aabi in abi.each("attributes"): + if "entries" not in aabi: + continue + + with EnumPrinter(pr, f"pasw_{aabi['name']}", prefix=enum_prefix(aabi["name"])) as e: + [ e.emit(id) for id in aabi["entries"] ] + + with StructPrinter(pr, f"pasw_attr_{aabi['name']}") as ts: + [ ts.emit("u8", m) for m in aabi["members"] ] with StructPrinter(pr, "pasw_abi") as a: with StructPrinter(a, "", member="attr") as attrs: @@ -348,7 +413,11 @@ def emit(self, type, member, array=""): # it in the ABI continue - attrs.emit(aabi.get("type", "u8"), aabi["name"]) + if "entries" in aabi: + attrs.emit(f"struct pasw_attr_{aabi['name']}", aabi["name"], + f"[__MAX_{enum_prefix(aabi['name'])}]") + else: + attrs.emit(aabi.get("type", "u8"), aabi["name"]) with StructPrinter(a, "", member="var") as vars: for vabi in abi.each("variables"): @@ -356,7 +425,7 @@ def emit(self, type, member, array=""): with StructPrinter(a, "", member="table") as tables: for tabi in abi.each("tables"): - tables.emit(f"const struct pasw_t_{tabi['name']} *", tabi["name"]) + tables.emit(f"const struct pasw_t_{tabi.get('like', tabi['name'])} *", tabi["name"]) with StructPrinter(a, "", member="stats") as stats: stats.emit("size_t", "nr_stats") diff --git a/drivers/net/dsa/pasw/tools/pasw b/drivers/net/dsa/pasw/tools/pasw index 565ddd9..6eabc0d 100755 --- a/drivers/net/dsa/pasw/tools/pasw +++ b/drivers/net/dsa/pasw/tools/pasw @@ -10,7 +10,7 @@ from functools import reduce class Mem32: WORD_SHIFT = 2 - def Open(mempath: str, offs:int=0, size:int=(64 << 10)): + def Open(mempath: str, offs:int=0, size:int=(256 << 10)): mf = open(mempath, "r+b") mem = mmap.mmap(mf.fileno(), length=size, offset=offs) return Mem32(mem)