aboutsummaryrefslogtreecommitdiffstats
path: root/net/hsr/hsr_framereg.c
diff options
context:
space:
mode:
authorMurali Karicheri <m-karicheri2@ti.com>2019-04-05 13:31:35 -0400
committerDavid S. Miller <davem@davemloft.net>2019-04-06 18:32:21 -0700
commitfc4ecaeebd26c77d463c898d9dd3edee234e371c (patch)
tree3114abdabf9661b7cd77c162f2d5a254f46b7091 /net/hsr/hsr_framereg.c
parentnet: hsr: convert to SPDX identifier (diff)
downloadlinux-dev-fc4ecaeebd26c77d463c898d9dd3edee234e371c.tar.xz
linux-dev-fc4ecaeebd26c77d463c898d9dd3edee234e371c.zip
net: hsr: add debugfs support for display node list
This adds a debugfs interface to allow display the nodes learned by the hsr master. Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/hsr/hsr_framereg.c')
-rw-r--r--net/hsr/hsr_framereg.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/net/hsr/hsr_framereg.c b/net/hsr/hsr_framereg.c
index 22203562821f..a3cc30ac8a5a 100644
--- a/net/hsr/hsr_framereg.c
+++ b/net/hsr/hsr_framereg.c
@@ -18,18 +18,6 @@
#include "hsr_framereg.h"
#include "hsr_netlink.h"
-struct hsr_node {
- struct list_head mac_list;
- unsigned char macaddress_A[ETH_ALEN];
- unsigned char macaddress_B[ETH_ALEN];
- /* Local slave through which AddrB frames are received from this node */
- enum hsr_port_type addr_B_port;
- unsigned long time_in[HSR_PT_PORTS];
- bool time_in_stale[HSR_PT_PORTS];
- u16 seq_out[HSR_PT_PORTS];
- struct rcu_head rcu_head;
-};
-
/* TODO: use hash lists for mac addresses (linux/jhash.h)? */
/* seq_nr_after(a, b) - return true if a is after (higher in sequence than) b,