Lines Matching +full:lan966x +full:- +full:switch
1 // SPDX-License-Identifier: GPL-2.0+
12 struct lan966x *lan966x = port->lan966x; in lan966x_vcap_is1_port_keys() local
15 out->prf(out->dst, " port[%d] (%s): ", port->chip_port, in lan966x_vcap_is1_port_keys()
16 netdev_name(port->dev)); in lan966x_vcap_is1_port_keys()
18 val = lan_rd(lan966x, ANA_VCAP_CFG(port->chip_port)); in lan966x_vcap_is1_port_keys()
19 out->prf(out->dst, "\n state: "); in lan966x_vcap_is1_port_keys()
21 out->prf(out->dst, "on"); in lan966x_vcap_is1_port_keys()
23 out->prf(out->dst, "off"); in lan966x_vcap_is1_port_keys()
25 for (int l = 0; l < admin->lookups; ++l) { in lan966x_vcap_is1_port_keys()
26 out->prf(out->dst, "\n Lookup %d: ", l); in lan966x_vcap_is1_port_keys()
28 val = lan_rd(lan966x, ANA_VCAP_S1_CFG(port->chip_port, l)); in lan966x_vcap_is1_port_keys()
30 out->prf(out->dst, "\n other: "); in lan966x_vcap_is1_port_keys()
31 switch (ANA_VCAP_S1_CFG_KEY_OTHER_CFG_GET(val)) { in lan966x_vcap_is1_port_keys()
33 out->prf(out->dst, "normal"); in lan966x_vcap_is1_port_keys()
36 out->prf(out->dst, "7tuple"); in lan966x_vcap_is1_port_keys()
39 out->prf(out->dst, "dbl_vid"); in lan966x_vcap_is1_port_keys()
42 out->prf(out->dst, "dmac_vid"); in lan966x_vcap_is1_port_keys()
45 out->prf(out->dst, "-"); in lan966x_vcap_is1_port_keys()
49 out->prf(out->dst, "\n ipv4: "); in lan966x_vcap_is1_port_keys()
50 switch (ANA_VCAP_S1_CFG_KEY_IP4_CFG_GET(val)) { in lan966x_vcap_is1_port_keys()
52 out->prf(out->dst, "normal"); in lan966x_vcap_is1_port_keys()
55 out->prf(out->dst, "7tuple"); in lan966x_vcap_is1_port_keys()
58 out->prf(out->dst, "5tuple_ipv4"); in lan966x_vcap_is1_port_keys()
61 out->prf(out->dst, "dbl_vid"); in lan966x_vcap_is1_port_keys()
64 out->prf(out->dst, "dmac_vid"); in lan966x_vcap_is1_port_keys()
67 out->prf(out->dst, "-"); in lan966x_vcap_is1_port_keys()
71 out->prf(out->dst, "\n ipv6: "); in lan966x_vcap_is1_port_keys()
72 switch (ANA_VCAP_S1_CFG_KEY_IP6_CFG_GET(val)) { in lan966x_vcap_is1_port_keys()
74 out->prf(out->dst, "normal"); in lan966x_vcap_is1_port_keys()
77 out->prf(out->dst, "7tuple"); in lan966x_vcap_is1_port_keys()
80 out->prf(out->dst, "5tuple_ip4"); in lan966x_vcap_is1_port_keys()
83 out->prf(out->dst, "normal_ip6"); in lan966x_vcap_is1_port_keys()
86 out->prf(out->dst, "5tuple_ip6"); in lan966x_vcap_is1_port_keys()
89 out->prf(out->dst, "dbl_vid"); in lan966x_vcap_is1_port_keys()
92 out->prf(out->dst, "dmac_vid"); in lan966x_vcap_is1_port_keys()
95 out->prf(out->dst, "-"); in lan966x_vcap_is1_port_keys()
99 out->prf(out->dst, "\n rt: "); in lan966x_vcap_is1_port_keys()
100 switch (ANA_VCAP_S1_CFG_KEY_RT_CFG_GET(val)) { in lan966x_vcap_is1_port_keys()
102 out->prf(out->dst, "normal"); in lan966x_vcap_is1_port_keys()
105 out->prf(out->dst, "7tuple"); in lan966x_vcap_is1_port_keys()
108 out->prf(out->dst, "dbl_vid"); in lan966x_vcap_is1_port_keys()
111 out->prf(out->dst, "dmac_vid"); in lan966x_vcap_is1_port_keys()
114 out->prf(out->dst, "follow_other"); in lan966x_vcap_is1_port_keys()
117 out->prf(out->dst, "-"); in lan966x_vcap_is1_port_keys()
122 out->prf(out->dst, "\n"); in lan966x_vcap_is1_port_keys()
129 struct lan966x *lan966x = port->lan966x; in lan966x_vcap_is2_port_keys() local
132 out->prf(out->dst, " port[%d] (%s): ", port->chip_port, in lan966x_vcap_is2_port_keys()
133 netdev_name(port->dev)); in lan966x_vcap_is2_port_keys()
135 val = lan_rd(lan966x, ANA_VCAP_S2_CFG(port->chip_port)); in lan966x_vcap_is2_port_keys()
136 out->prf(out->dst, "\n state: "); in lan966x_vcap_is2_port_keys()
138 out->prf(out->dst, "on"); in lan966x_vcap_is2_port_keys()
140 out->prf(out->dst, "off"); in lan966x_vcap_is2_port_keys()
142 for (int l = 0; l < admin->lookups; ++l) { in lan966x_vcap_is2_port_keys()
143 out->prf(out->dst, "\n Lookup %d: ", l); in lan966x_vcap_is2_port_keys()
145 out->prf(out->dst, "\n snap: "); in lan966x_vcap_is2_port_keys()
147 out->prf(out->dst, "mac_llc"); in lan966x_vcap_is2_port_keys()
149 out->prf(out->dst, "mac_snap"); in lan966x_vcap_is2_port_keys()
151 out->prf(out->dst, "\n oam: "); in lan966x_vcap_is2_port_keys()
153 out->prf(out->dst, "mac_etype"); in lan966x_vcap_is2_port_keys()
155 out->prf(out->dst, "mac_oam"); in lan966x_vcap_is2_port_keys()
157 out->prf(out->dst, "\n arp: "); in lan966x_vcap_is2_port_keys()
159 out->prf(out->dst, "mac_etype"); in lan966x_vcap_is2_port_keys()
161 out->prf(out->dst, "mac_arp"); in lan966x_vcap_is2_port_keys()
163 out->prf(out->dst, "\n ipv4_other: "); in lan966x_vcap_is2_port_keys()
165 out->prf(out->dst, "mac_etype"); in lan966x_vcap_is2_port_keys()
167 out->prf(out->dst, "ip4_other"); in lan966x_vcap_is2_port_keys()
169 out->prf(out->dst, "\n ipv4_tcp_udp: "); in lan966x_vcap_is2_port_keys()
171 out->prf(out->dst, "mac_etype"); in lan966x_vcap_is2_port_keys()
173 out->prf(out->dst, "ipv4_tcp_udp"); in lan966x_vcap_is2_port_keys()
175 out->prf(out->dst, "\n ipv6: "); in lan966x_vcap_is2_port_keys()
176 switch (ANA_VCAP_S2_CFG_IP6_CFG_GET(val) & (0x3 << l)) { in lan966x_vcap_is2_port_keys()
178 out->prf(out->dst, "ipv6_tcp_udp ipv6_tcp_udp"); in lan966x_vcap_is2_port_keys()
181 out->prf(out->dst, "ipv6_std"); in lan966x_vcap_is2_port_keys()
184 out->prf(out->dst, "ipv4_tcp_udp ipv4_tcp_udp"); in lan966x_vcap_is2_port_keys()
187 out->prf(out->dst, "mac_etype"); in lan966x_vcap_is2_port_keys()
192 out->prf(out->dst, "\n"); in lan966x_vcap_is2_port_keys()
199 struct lan966x *lan966x = port->lan966x; in lan966x_vcap_es0_port_keys() local
202 out->prf(out->dst, " port[%d] (%s): ", port->chip_port, in lan966x_vcap_es0_port_keys()
203 netdev_name(port->dev)); in lan966x_vcap_es0_port_keys()
205 val = lan_rd(lan966x, REW_PORT_CFG(port->chip_port)); in lan966x_vcap_es0_port_keys()
206 out->prf(out->dst, "\n state: "); in lan966x_vcap_es0_port_keys()
208 out->prf(out->dst, "on"); in lan966x_vcap_es0_port_keys()
210 out->prf(out->dst, "off"); in lan966x_vcap_es0_port_keys()
212 out->prf(out->dst, "\n"); in lan966x_vcap_es0_port_keys()
220 struct lan966x *lan966x = port->lan966x; in lan966x_vcap_port_info() local
224 vctrl = lan966x->vcap_ctrl; in lan966x_vcap_port_info()
225 vcap = &vctrl->vcaps[admin->vtype]; in lan966x_vcap_port_info()
227 out->prf(out->dst, "%s:\n", vcap->name); in lan966x_vcap_port_info()
228 switch (admin->vtype) { in lan966x_vcap_port_info()
239 out->prf(out->dst, " no info\n"); in lan966x_vcap_port_info()