aboutsummaryrefslogtreecommitdiffstats
path: root/net/hsr/hsr_main.h
diff options
context:
space:
mode:
authorArvid Brodin <arvid.brodin@alten.se>2014-07-04 23:35:24 +0200
committerDavid S. Miller <davem@davemloft.net>2014-07-08 11:35:30 -0700
commit81ba6afd6e6443d2bf4bf40f16df1f1f91c603f8 (patch)
tree62220e2dd7d59cb889a0b7859475f2a445450ab5 /net/hsr/hsr_main.h
parentnet/hsr: Better variable names and update of contact info. (diff)
downloadlinux-dev-81ba6afd6e6443d2bf4bf40f16df1f1f91c603f8.tar.xz
linux-dev-81ba6afd6e6443d2bf4bf40f16df1f1f91c603f8.zip
net/hsr: Switch from dev_add_pack() to netdev_rx_handler_register()
Also move the frame receive handler to hsr_slave.c. Signed-off-by: Arvid Brodin <arvid.brodin@alten.se> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/hsr/hsr_main.h')
-rw-r--r--net/hsr/hsr_main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/hsr/hsr_main.h b/net/hsr/hsr_main.h
index 360a49af0c1b..d919321b0bdb 100644
--- a/net/hsr/hsr_main.h
+++ b/net/hsr/hsr_main.h
@@ -162,5 +162,8 @@ struct hsr_priv {
void register_hsr_master(struct hsr_priv *hsr);
void unregister_hsr_master(struct hsr_priv *hsr);
bool is_hsr_slave(struct net_device *dev);
+struct hsr_priv *get_hsr_master(struct net_device *dev);
+struct net_device *get_other_slave(struct hsr_priv *hsr,
+ struct net_device *dev);
#endif /* __HSR_PRIVATE_H */