Skip to content

Commit e746094

Browse files
HoratiuVulturdavem330
authored andcommitted
net: lan966x: debugfs: Fix showing the port keyset
On lan966x, it is possible to use debugfs to print different information about the VCAPs. Information like, if it is enabled, how the ports are configured, print the actual rules. The issue is that when printing how the ports are configured for IS1 lookups, it was parsing the wrong register to get this information. The fix consists in reading the correct register that contains this information. Signed-off-by: Horatiu Vultur <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 737fc16 commit e746094

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/microchip/lan966x/lan966x_vcap_debugfs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ static void lan966x_vcap_is1_port_keys(struct lan966x_port *port,
2525
for (int l = 0; l < admin->lookups; ++l) {
2626
out->prf(out->dst, "\n Lookup %d: ", l);
2727

28+
val = lan_rd(lan966x, ANA_VCAP_S1_CFG(port->chip_port, l));
29+
2830
out->prf(out->dst, "\n other: ");
2931
switch (ANA_VCAP_S1_CFG_KEY_OTHER_CFG_GET(val)) {
3032
case VCAP_IS1_PS_OTHER_NORMAL:

0 commit comments

Comments
 (0)