blob: 1121bb192a18e8be5a15320907327b427f3b4c29 [file] [log] [blame]
Murali Karicheri0e7623b2019-04-05 13:31:34 -04001/* SPDX-License-Identifier: GPL-2.0 */
Arvid Brodin70ebe4a2014-07-04 23:34:38 +02002/* Copyright 2011-2014 Autronica Fire and Security AS
Arvid Brodinf4214362013-10-30 21:10:47 +01003 *
Arvid Brodinf4214362013-10-30 21:10:47 +01004 * Author(s):
Arvid Brodin70ebe4a2014-07-04 23:34:38 +02005 * 2011-2014 Arvid Brodin, arvid.brodin@alten.se
Arvid Brodinf4214362013-10-30 21:10:47 +01006 */
7
8#ifndef __HSR_NETLINK_H
9#define __HSR_NETLINK_H
10
11#include <linux/if_ether.h>
12#include <linux/module.h>
13#include <uapi/linux/hsr_netlink.h>
14
15struct hsr_priv;
Arvid Brodinc5a75912014-07-04 23:38:05 +020016struct hsr_port;
Arvid Brodinf4214362013-10-30 21:10:47 +010017
18int __init hsr_netlink_init(void);
19void __exit hsr_netlink_exit(void);
20
Arvid Brodin70ebe4a2014-07-04 23:34:38 +020021void hsr_nl_ringerror(struct hsr_priv *hsr, unsigned char addr[ETH_ALEN],
Arvid Brodinc5a75912014-07-04 23:38:05 +020022 struct hsr_port *port);
Arvid Brodin70ebe4a2014-07-04 23:34:38 +020023void hsr_nl_nodedown(struct hsr_priv *hsr, unsigned char addr[ETH_ALEN]);
Arvid Brodinf4214362013-10-30 21:10:47 +010024void hsr_nl_framedrop(int dropcount, int dev_idx);
25void hsr_nl_linkdown(int dev_idx);
26
27#endif /* __HSR_NETLINK_H */