blob: 501552d9753b9ad1895220d22718b6483428a31e [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
Murali Karicheri8f4c0e02020-07-22 10:40:16 -04006 *
7 * include file for HSR and PRP.
Arvid Brodinf4214362013-10-30 21:10:47 +01008 */
9
10#ifndef __HSR_NETLINK_H
11#define __HSR_NETLINK_H
12
13#include <linux/if_ether.h>
14#include <linux/module.h>
15#include <uapi/linux/hsr_netlink.h>
16
17struct hsr_priv;
Arvid Brodinc5a75912014-07-04 23:38:05 +020018struct hsr_port;
Arvid Brodinf4214362013-10-30 21:10:47 +010019
20int __init hsr_netlink_init(void);
21void __exit hsr_netlink_exit(void);
22
Arvid Brodin70ebe4a2014-07-04 23:34:38 +020023void hsr_nl_ringerror(struct hsr_priv *hsr, unsigned char addr[ETH_ALEN],
Arvid Brodinc5a75912014-07-04 23:38:05 +020024 struct hsr_port *port);
Arvid Brodin70ebe4a2014-07-04 23:34:38 +020025void hsr_nl_nodedown(struct hsr_priv *hsr, unsigned char addr[ETH_ALEN]);
Arvid Brodinf4214362013-10-30 21:10:47 +010026void hsr_nl_framedrop(int dropcount, int dev_idx);
27void hsr_nl_linkdown(int dev_idx);
28
29#endif /* __HSR_NETLINK_H */