@@ -23,16 +23,16 @@ pub mod ports;
2323fn table_name ( type_ : TableType ) -> & ' static str {
2424 match type_ {
2525 TableType :: RouteIdxIpv4 => {
26- "pipe.Ingress.l3_router.Router4 .lookup_idx.lookup"
26+ "pipe.Ingress.l3_router.router4 .lookup_idx.lookup"
2727 }
2828 TableType :: RouteFwdIpv4 => {
29- "pipe.Ingress.l3_router.Router4 .lookup_idx.route"
29+ "pipe.Ingress.l3_router.router4 .lookup_idx.route"
3030 }
3131 TableType :: RouteIdxIpv6 => {
32- "pipe.Ingress.l3_router.Router6 .lookup_idx.lookup"
32+ "pipe.Ingress.l3_router.router6 .lookup_idx.lookup"
3333 }
3434 TableType :: RouteFwdIpv6 => {
35- "pipe.Ingress.l3_router.Router6 .lookup_idx.route"
35+ "pipe.Ingress.l3_router.router6 .lookup_idx.route"
3636 }
3737 #[ cfg( feature = "multicast" ) ]
3838 TableType :: RouteIpv4Mcast => {
@@ -44,13 +44,15 @@ fn table_name(type_: TableType) -> &'static str {
4444 }
4545 TableType :: ArpIpv4 => "pipe.Ingress.l3_router.Arp.tbl" ,
4646 TableType :: NeighborIpv6 => "pipe.Ingress.l3_router.Ndp.tbl" ,
47- TableType :: PortMacAddress => "pipe.Ingress.mac_rewrite.mac_rewrite" ,
47+ TableType :: PortMacAddress => {
48+ "pipe.Egress.unicast_mac_rewrite.mac_rewrite"
49+ }
4850 TableType :: PortAddrIpv4 => "pipe.Ingress.filter.switch_ipv4_addr" ,
4951 TableType :: PortAddrIpv6 => "pipe.Ingress.filter.switch_ipv6_addr" ,
5052 TableType :: NatIngressIpv4 => "pipe.Ingress.nat_ingress.ingress_ipv4" ,
5153 TableType :: NatIngressIpv6 => "pipe.Ingress.nat_ingress.ingress_ipv6" ,
5254 TableType :: UplinkIngress => "pipe.Ingress.filter.uplink_ports" ,
53- TableType :: UplinkEgress => "pipe.Ingress .egress_filter.egress_filter" ,
55+ TableType :: UplinkEgress => "pipe.Egress .egress_filter.egress_filter" ,
5456 TableType :: AttachedSubnetIpv4 => {
5557 "pipe.Ingress.attached_subnet_ingress.attached_subnets_v4"
5658 }
@@ -78,7 +80,9 @@ fn table_name(type_: TableType) -> &'static str {
7880 "pipe.Ingress.nat_ingress.ingress_ipv6_mcast"
7981 }
8082 #[ cfg( feature = "multicast" ) ]
81- TableType :: PortMacAddressMcast => "pipe.Egress.mac_rewrite.mac_rewrite" ,
83+ TableType :: PortMacAddressMcast => {
84+ "pipe.Egress.mcast_mac_rewrite.mac_rewrite"
85+ }
8286 #[ cfg( feature = "multicast" ) ]
8387 TableType :: McastEgressDecapPorts => {
8488 "pipe.Egress.mcast_egress.tbl_decap_ports"
@@ -96,9 +100,13 @@ fn counter_table_name(id: CounterId) -> &'static str {
96100 CounterId :: Service => "pipe.Ingress.services.service_ctr" ,
97101 CounterId :: Ingress => "pipe.Ingress.ingress_ctr" ,
98102 CounterId :: Packet => "pipe.Ingress.packet_ctr" ,
99- CounterId :: Egress => "pipe.Ingress.egress_ctr" ,
100103 CounterId :: DropPort => "pipe.Ingress.drop_port_ctr" ,
101104 CounterId :: DropReason => "pipe.Ingress.drop_reason_ctr" ,
105+ CounterId :: Forwarded => "pipe.Egress.forwarded_ctr" ,
106+ CounterId :: Unicast => "pipe.Egress.unicast_ctr" ,
107+ CounterId :: MulticastLL => "pipe.Egress.link_local_mcast_ctr" ,
108+ CounterId :: EgressDropPort => "pipe.Egress.drop_port_ctr" ,
109+ CounterId :: EgressDropReason => "pipe.Egress.drop_reason_ctr" ,
102110 #[ cfg( feature = "multicast" ) ]
103111 CounterId :: Multicast ( id) => mulitcast_counter_table_name ( id) ,
104112 }
@@ -107,16 +115,9 @@ fn counter_table_name(id: CounterId) -> &'static str {
107115#[ cfg( feature = "multicast" ) ]
108116fn mulitcast_counter_table_name ( id : MulticastCounterId ) -> & ' static str {
109117 match id {
110- MulticastCounterId :: EgressDropPort => "pipe.Egress.drop_port_ctr" ,
111- MulticastCounterId :: EgressDropReason => "pipe.Egress.drop_reason_ctr" ,
112- MulticastCounterId :: Unicast => "pipe.Egress.unicast_ctr" ,
113118 MulticastCounterId :: Multicast => "pipe.Egress.mcast_ctr" ,
114119 MulticastCounterId :: MulticastExt => "pipe.Egress.external_mcast_ctr" ,
115- MulticastCounterId :: MulticastLL => "pipe.Egress.link_local_mcast_ctr" ,
116120 MulticastCounterId :: MulticastUL => "pipe.Egress.underlay_mcast_ctr" ,
117- MulticastCounterId :: MulticastDrop => {
118- "pipe.Ingress.filter.drop_mcast_ctr"
119- }
120121 }
121122}
122123
0 commit comments