[PATCH net-next v2] rocker: add debugfs support to dump internal tables
From: Scott Feldman > tree /sys/kernel/debug/rocker /sys/kernel/debug/rocker └── 525400123501 ├── fdb_tbl ├── internal_vlan_tbl ├── neigh_tbl ├── of_dpa_flow_tbl └── of_dpa_group_tbl 1 directory, 5 files > cat /sys/kernel/debug/rocker/525400123501/internal_vlan_tbl ifindex 5 ref_count 1 vlan 3843 ifindex 7 ref_count 2 vlan 3840 ifindex 4 ref_count 1 vlan 3842 > cat /sys/kernel/debug/rocker/525400123501/fdb_tbl learned 1 pport 1 addr 00:02:00:00:02:00 vlan 3840 learned 1 pport 2 addr 00:02:00:00:03:00 vlan 3840 > cat /sys/kernel/debug/rocker/525400123501/neigh_tbl 11.0.0.9 dev sw1p2 ref_count 3 index 1 dst 00:02:00:00:01:00 ttl_check 1 11.0.0.1 dev sw1p1 ref_count 3 index 0 dst 00:02:00:00:00:00 ttl_check 1 > cat /sys/kernel/debug/rocker/525400123501/of_dpa_flow_tbl cmd 3 cookie 15 priority 3 tbl aclin_pport 2 01:80:c2:00:00:00/ff:ff:ff:ff:ff:f0 eth_type 0x vlan_id 3841 ip proto 0/0 ip tos 0/0 group_id 0x0f01 cmd 3 cookie 2 priority 0 tbl term_mac in_pport 1 eth_type 0x0800 52:54:00:12:35:01 vlan_id 3840 goto_tbl ucast_routing copy_to_cpu 0 cmd 3 cookie 1f priority 3 tbl bridge 00:02:00:00:00:00 vlan_id 3840 tunnel_id 0 goto_tbl acl group_id 0x copy_to_cpu 0 cmd 3 cookie 4 priority 1 tbl vlan in_pport 2 vlan_id 0 goto_tbl term_mac untagged 1 new_vlan_id 3841 cmd 3 cookie 20 priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.1 goto_tbl acl group_id 0x2000 cmd 3 cookie 21 priority 3 tbl bridge 00:02:00:00:01:00 vlan_id 3841 tunnel_id 0 goto_tbl acl group_id 0x copy_to_cpu 0 cmd 3 cookie 16 priority 2 tbl aclin_pport 2 eth_type 0x0806 vlan_id 3841 ip proto 0/0 ip tos 0/0 group_id 0x0f01 cmd 3 cookie 12 priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.0 goto_tbl acl group_id 0x0f00 cmd 3 cookie 9 priority 3 tbl aclin_pport 1 01:80:c2:00:00:00/ff:ff:ff:ff:ff:f0 eth_type 0x vlan_id 3840 ip proto 0/0 ip tos 0/0 group_id 0x0f00 cmd 3 cookie 6 priority 0 tbl term_mac in_pport 2 eth_type 0x86dd 52:54:00:12:35:02 vlan_id 3841 goto_tbl ucast_routing copy_to_cpu 0 cmd 4 cookie 0 priority 1 tbl ig_portin_pport 0/0x goto_tbl vlan cmd 4 cookie e priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.3 goto_tbl acl group_id 0x0f00 cmd 3 cookie 1 priority 1 tbl vlan in_pport 1 vlan_id 0 goto_tbl term_mac untagged 1 new_vlan_id 3840 cmd 3 cookie 24 priority 20 tbl ucast_routing eth_type 0x0800 11.0.0.4/255.255.255.252 goto_tbl acl group_id 0x2000 cmd 4 cookie 14 priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.10 goto_tbl acl group_id 0x0f01 cmd 3 cookie 2c priority 20 tbl ucast_routing eth_type 0x0800 12.0.0.4 goto_tbl acl group_id 0x2001 cmd 3 cookie 17 priority 1 tbl term_mac in_pport 2 eth_type 0x0800 01:00:5e:00:00:00/ff:ff:ff:80:00:00 vlan_id 3841 goto_tbl mcast_routing copy_to_cpu 1 cmd 3 cookie 26 priority 20 tbl ucast_routing eth_type 0x0800 12.0.0.3 goto_tbl acl group_id 0x2000 cmd 3 cookie 2e priority 30 tbl ucast_routing eth_type 0x0800 12.0.0.2 goto_tbl acl group_id 0x0f01 cmd 3 cookie 22 priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.9 goto_tbl acl group_id 0x2001 cmd 3 cookie 1c priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.8/255.255.255.252 goto_tbl acl group_id 0x0f01 cmd 3 cookie 18 priority 1 tbl term_mac in_pport 2 eth_type 0x86dd 33:33:00:00:00:00/ff:ff:00:00:00:00 vlan_id 3841 goto_tbl mcast_routing copy_to_cpu 1 cmd 3 cookie 5 priority 0 tbl term_mac in_pport 2 eth_type 0x0800 52:54:00:12:35:02 vlan_id 3841 goto_tbl ucast_routing copy_to_cpu 0 cmd 3 cookie a priority 2 tbl aclin_pport 1 eth_type 0x0806 vlan_id 3840 ip proto 0/0 ip tos 0/0 group_id 0x0f00 cmd 4 cookie 1a priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.11 goto_tbl acl group_id 0x0f01 cmd 3 cookie 1e priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.8 goto_tbl acl group_id 0x0f01 cmd 3 cookie 3 priority 0 tbl term_mac in_pport 1 eth_type 0x86dd 52:54:00:12:35:01 vlan_id 3840 goto_tbl ucast_routing copy_to_cpu 0 cmd 3 cookie b priority 1 tbl term_mac in_pport 1 eth_type 0x0800 01:00:5e:00:00:00/ff:ff:ff:80:00:00 vlan_id 3840 goto_tbl mcast_routing copy_to_cpu 1 cmd 4 cookie 8 priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.2 goto_tbl acl group_id 0x0f00 cmd 3 cookie 10 priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.0/255.255.255.252 goto_tbl acl group_id 0x0f00 cmd 3 cookie 28 priority 20 tbl ucast_routing eth_type 0x0800 11.0.0.12/255.255.255.252 goto_tbl acl group_id 0x2001 cmd 3 cookie c priority 1 tbl term_mac in_pport 1 eth_type 0x86dd 33:33:00:00:00:00/ff:ff:00:00:00:00 vlan_id 3840 goto_tbl mcast_routing copy_to_cpu 1 > cat /sys/kernel/debug/rocker/525400123501/of_dpa_group_tbl cmd 7 group_id 0x0f00 (L2 interface v
Re: [PATCH net-next v2] rocker: add debugfs support to dump internal tables
Mon, Aug 17, 2015 at 05:32:06AM CEST, sfel...@gmail.com wrote: >From: Scott Feldman > >> tree /sys/kernel/debug/rocker >/sys/kernel/debug/rocker >└── 525400123501 >├── fdb_tbl >├── internal_vlan_tbl >├── neigh_tbl >├── of_dpa_flow_tbl >└── of_dpa_group_tbl > >1 directory, 5 files > >> cat /sys/kernel/debug/rocker/525400123501/internal_vlan_tbl >ifindex 5 ref_count 1 vlan 3843 >ifindex 7 ref_count 2 vlan 3840 >ifindex 4 ref_count 1 vlan 3842 > >> cat /sys/kernel/debug/rocker/525400123501/fdb_tbl >learned 1 pport 1 addr 00:02:00:00:02:00 vlan 3840 >learned 1 pport 2 addr 00:02:00:00:03:00 vlan 3840 > >> cat /sys/kernel/debug/rocker/525400123501/neigh_tbl >11.0.0.9 dev sw1p2 ref_count 3 index 1 dst 00:02:00:00:01:00 ttl_check 1 >11.0.0.1 dev sw1p1 ref_count 3 index 0 dst 00:02:00:00:00:00 ttl_check 1 > >> cat /sys/kernel/debug/rocker/525400123501/of_dpa_flow_tbl >cmd 3 cookie 15 priority 3 tbl aclin_pport 2 >01:80:c2:00:00:00/ff:ff:ff:ff:ff:f0 eth_type 0x vlan_id 3841 ip proto 0/0 >ip tos 0/0 group_id 0x0f01 >cmd 3 cookie 2 priority 0 tbl term_mac in_pport 1 eth_type 0x0800 >52:54:00:12:35:01 vlan_id 3840 goto_tbl ucast_routing copy_to_cpu 0 >cmd 3 cookie 1f priority 3 tbl bridge 00:02:00:00:00:00 vlan_id 3840 >tunnel_id 0 goto_tbl acl group_id 0x copy_to_cpu 0 >cmd 3 cookie 4 priority 1 tbl vlan in_pport 2 vlan_id 0 goto_tbl >term_mac untagged 1 new_vlan_id 3841 >cmd 3 cookie 20 priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.1 >goto_tbl acl group_id 0x2000 >cmd 3 cookie 21 priority 3 tbl bridge 00:02:00:00:01:00 vlan_id 3841 >tunnel_id 0 goto_tbl acl group_id 0x copy_to_cpu 0 >cmd 3 cookie 16 priority 2 tbl aclin_pport 2 eth_type 0x0806 >vlan_id 3841 ip proto 0/0 ip tos 0/0 group_id 0x0f01 >cmd 3 cookie 12 priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.0 >goto_tbl acl group_id 0x0f00 >cmd 3 cookie 9 priority 3 tbl aclin_pport 1 >01:80:c2:00:00:00/ff:ff:ff:ff:ff:f0 eth_type 0x vlan_id 3840 ip proto 0/0 >ip tos 0/0 group_id 0x0f00 >cmd 3 cookie 6 priority 0 tbl term_mac in_pport 2 eth_type 0x86dd >52:54:00:12:35:02 vlan_id 3841 goto_tbl ucast_routing copy_to_cpu 0 >cmd 4 cookie 0 priority 1 tbl ig_portin_pport 0/0x goto_tbl >vlan >cmd 4 cookie e priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.3 >goto_tbl acl group_id 0x0f00 >cmd 3 cookie 1 priority 1 tbl vlan in_pport 1 vlan_id 0 goto_tbl >term_mac untagged 1 new_vlan_id 3840 >cmd 3 cookie 24 priority 20 tbl ucast_routing eth_type 0x0800 >11.0.0.4/255.255.255.252 goto_tbl acl group_id 0x2000 >cmd 4 cookie 14 priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.10 >goto_tbl acl group_id 0x0f01 >cmd 3 cookie 2c priority 20 tbl ucast_routing eth_type 0x0800 12.0.0.4 >goto_tbl acl group_id 0x2001 >cmd 3 cookie 17 priority 1 tbl term_mac in_pport 2 eth_type 0x0800 >01:00:5e:00:00:00/ff:ff:ff:80:00:00 vlan_id 3841 goto_tbl mcast_routing >copy_to_cpu 1 >cmd 3 cookie 26 priority 20 tbl ucast_routing eth_type 0x0800 12.0.0.3 >goto_tbl acl group_id 0x2000 >cmd 3 cookie 2e priority 30 tbl ucast_routing eth_type 0x0800 12.0.0.2 >goto_tbl acl group_id 0x0f01 >cmd 3 cookie 22 priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.9 >goto_tbl acl group_id 0x2001 >cmd 3 cookie 1c priority 0 tbl ucast_routing eth_type 0x0800 >11.0.0.8/255.255.255.252 goto_tbl acl group_id 0x0f01 >cmd 3 cookie 18 priority 1 tbl term_mac in_pport 2 eth_type 0x86dd >33:33:00:00:00:00/ff:ff:00:00:00:00 vlan_id 3841 goto_tbl mcast_routing >copy_to_cpu 1 >cmd 3 cookie 5 priority 0 tbl term_mac in_pport 2 eth_type 0x0800 >52:54:00:12:35:02 vlan_id 3841 goto_tbl ucast_routing copy_to_cpu 0 >cmd 3 cookie a priority 2 tbl aclin_pport 1 eth_type 0x0806 >vlan_id 3840 ip proto 0/0 ip tos 0/0 group_id 0x0f00 >cmd 4 cookie 1a priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.11 >goto_tbl acl group_id 0x0f01 >cmd 3 cookie 1e priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.8 >goto_tbl acl group_id 0x0f01 >cmd 3 cookie 3 priority 0 tbl term_mac in_pport 1 eth_type 0x86dd >52:54:00:12:35:01 vlan_id 3840 goto_tbl ucast_routing copy_to_cpu 0 >cmd 3 cookie b priority 1 tbl term_mac in_pport 1 eth_type 0x0800 >01:00:5e:00:00:00/ff:ff:ff:80:00:00 vlan_id 3840 goto_tbl mcast_routing >copy_to_cpu 1 >cmd 4 cookie 8 priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.2 >goto_tbl acl group_id 0x0f00 >cmd 3 cookie 10 priority 0 tbl ucast_routing eth_type 0x0800 >11.0.0.0/255.255.255.252 goto_tbl acl group_id 0x0f00 >cmd 3 cookie 28 priority 20 tbl ucast_routing eth_type 0x0800 >11.0.0.12/255.255.255.252 goto_tbl acl group_id 0x2001 >cmd 3 cookie c priority 1 tbl term_mac in_pport 1 eth_type 0x86dd >33:33:00:00:00:00/ff:ff:00:00:00:00
Re: [PATCH net-next v2] rocker: add debugfs support to dump internal tables
On Sun, Aug 16, 2015 at 11:36 PM, Jiri Pirko wrote: > Mon, Aug 17, 2015 at 05:32:06AM CEST, sfel...@gmail.com wrote: >>From: Scott Feldman >> >>> tree /sys/kernel/debug/rocker >>/sys/kernel/debug/rocker >>└── 525400123501 >>├── fdb_tbl >>├── internal_vlan_tbl >>├── neigh_tbl >>├── of_dpa_flow_tbl >>└── of_dpa_group_tbl >> >>1 directory, 5 files >> >>> cat /sys/kernel/debug/rocker/525400123501/internal_vlan_tbl >>ifindex 5 ref_count 1 vlan 3843 >>ifindex 7 ref_count 2 vlan 3840 >>ifindex 4 ref_count 1 vlan 3842 >> >>> cat /sys/kernel/debug/rocker/525400123501/fdb_tbl >>learned 1 pport 1 addr 00:02:00:00:02:00 vlan 3840 >>learned 1 pport 2 addr 00:02:00:00:03:00 vlan 3840 >> >>> cat /sys/kernel/debug/rocker/525400123501/neigh_tbl >>11.0.0.9 dev sw1p2 ref_count 3 index 1 dst 00:02:00:00:01:00 ttl_check 1 >>11.0.0.1 dev sw1p1 ref_count 3 index 0 dst 00:02:00:00:00:00 ttl_check 1 >> >>> cat /sys/kernel/debug/rocker/525400123501/of_dpa_flow_tbl >>cmd 3 cookie 15 priority 3 tbl aclin_pport 2 >>01:80:c2:00:00:00/ff:ff:ff:ff:ff:f0 eth_type 0x vlan_id 3841 ip proto 0/0 >>ip tos 0/0 group_id 0x0f01 >>cmd 3 cookie 2 priority 0 tbl term_mac in_pport 1 eth_type 0x0800 >>52:54:00:12:35:01 vlan_id 3840 goto_tbl ucast_routing copy_to_cpu 0 >>cmd 3 cookie 1f priority 3 tbl bridge 00:02:00:00:00:00 vlan_id 3840 >>tunnel_id 0 goto_tbl acl group_id 0x copy_to_cpu 0 >>cmd 3 cookie 4 priority 1 tbl vlan in_pport 2 vlan_id 0 goto_tbl >>term_mac untagged 1 new_vlan_id 3841 >>cmd 3 cookie 20 priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.1 >>goto_tbl acl group_id 0x2000 >>cmd 3 cookie 21 priority 3 tbl bridge 00:02:00:00:01:00 vlan_id 3841 >>tunnel_id 0 goto_tbl acl group_id 0x copy_to_cpu 0 >>cmd 3 cookie 16 priority 2 tbl aclin_pport 2 eth_type 0x0806 >>vlan_id 3841 ip proto 0/0 ip tos 0/0 group_id 0x0f01 >>cmd 3 cookie 12 priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.0 >>goto_tbl acl group_id 0x0f00 >>cmd 3 cookie 9 priority 3 tbl aclin_pport 1 >>01:80:c2:00:00:00/ff:ff:ff:ff:ff:f0 eth_type 0x vlan_id 3840 ip proto 0/0 >>ip tos 0/0 group_id 0x0f00 >>cmd 3 cookie 6 priority 0 tbl term_mac in_pport 2 eth_type 0x86dd >>52:54:00:12:35:02 vlan_id 3841 goto_tbl ucast_routing copy_to_cpu 0 >>cmd 4 cookie 0 priority 1 tbl ig_portin_pport 0/0x goto_tbl >>vlan >>cmd 4 cookie e priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.3 >>goto_tbl acl group_id 0x0f00 >>cmd 3 cookie 1 priority 1 tbl vlan in_pport 1 vlan_id 0 goto_tbl >>term_mac untagged 1 new_vlan_id 3840 >>cmd 3 cookie 24 priority 20 tbl ucast_routing eth_type 0x0800 >>11.0.0.4/255.255.255.252 goto_tbl acl group_id 0x2000 >>cmd 4 cookie 14 priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.10 >>goto_tbl acl group_id 0x0f01 >>cmd 3 cookie 2c priority 20 tbl ucast_routing eth_type 0x0800 12.0.0.4 >>goto_tbl acl group_id 0x2001 >>cmd 3 cookie 17 priority 1 tbl term_mac in_pport 2 eth_type 0x0800 >>01:00:5e:00:00:00/ff:ff:ff:80:00:00 vlan_id 3841 goto_tbl mcast_routing >>copy_to_cpu 1 >>cmd 3 cookie 26 priority 20 tbl ucast_routing eth_type 0x0800 12.0.0.3 >>goto_tbl acl group_id 0x2000 >>cmd 3 cookie 2e priority 30 tbl ucast_routing eth_type 0x0800 12.0.0.2 >>goto_tbl acl group_id 0x0f01 >>cmd 3 cookie 22 priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.9 >>goto_tbl acl group_id 0x2001 >>cmd 3 cookie 1c priority 0 tbl ucast_routing eth_type 0x0800 >>11.0.0.8/255.255.255.252 goto_tbl acl group_id 0x0f01 >>cmd 3 cookie 18 priority 1 tbl term_mac in_pport 2 eth_type 0x86dd >>33:33:00:00:00:00/ff:ff:00:00:00:00 vlan_id 3841 goto_tbl mcast_routing >>copy_to_cpu 1 >>cmd 3 cookie 5 priority 0 tbl term_mac in_pport 2 eth_type 0x0800 >>52:54:00:12:35:02 vlan_id 3841 goto_tbl ucast_routing copy_to_cpu 0 >>cmd 3 cookie a priority 2 tbl aclin_pport 1 eth_type 0x0806 >>vlan_id 3840 ip proto 0/0 ip tos 0/0 group_id 0x0f00 >>cmd 4 cookie 1a priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.11 >>goto_tbl acl group_id 0x0f01 >>cmd 3 cookie 1e priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.8 >>goto_tbl acl group_id 0x0f01 >>cmd 3 cookie 3 priority 0 tbl term_mac in_pport 1 eth_type 0x86dd >>52:54:00:12:35:01 vlan_id 3840 goto_tbl ucast_routing copy_to_cpu 0 >>cmd 3 cookie b priority 1 tbl term_mac in_pport 1 eth_type 0x0800 >>01:00:5e:00:00:00/ff:ff:ff:80:00:00 vlan_id 3840 goto_tbl mcast_routing >>copy_to_cpu 1 >>cmd 4 cookie 8 priority 0 tbl ucast_routing eth_type 0x0800 11.0.0.2 >>goto_tbl acl group_id 0x0f00 >>cmd 3 cookie 10 priority 0 tbl ucast_routing eth_type 0x0800 >>11.0.0.0/255.255.255.252 goto_tbl acl group_id 0x0f00 >>cmd 3 cookie 28 priority 20 tbl ucast_routing eth_type 0x0800 >>11.0.0.12/255.255.255.