Skip to content
Snippets Groups Projects
Commit fdcff037 authored by Jakob Olsson's avatar Jakob Olsson
Browse files

ethernet: rename netlink_wrapper to easysoc_events

parent 7aebde4e
No related branches found
No related tags found
No related merge requests found
......@@ -73,4 +73,4 @@ obj-$(CONFIG_NTB_NETDEV) += ntb_netdev.o
obj-$(CONFIG_FUJITSU_ES) += fjes/
obj-$(CONFIG_EASYSOC_NETLINK) += netlink_wrapper.o
obj-$(CONFIG_EASYSOC_NETLINK) += easysoc_events.o
......@@ -10,7 +10,7 @@ do not have a 1:1 mapping of physical port to ethernet interface.
#include <linux/types.h>
#include <linux/printk.h>
#include <linux/netlink.h>
#include <linux/netlink_wrapper.h>
#include <linux/easysoc_events.h>
#include <net/genetlink.h>
#include <net/net_namespace.h>
......@@ -30,7 +30,7 @@ static struct genl_family nl_gnl_family = {
.n_mcgrps = ARRAY_SIZE(netlink_event_mcgrps),
};
void netlink_init(void)
void easysoc_nl_init(void)
{
int rc;
......@@ -41,7 +41,7 @@ void netlink_init(void)
}
void netlink_carrier_sendmsg(char *ifname, int state)
void easysoc_carrier_sendmsg(char *ifname, int state)
{
static char msg_buf[MAX_MSG_BUF];
......@@ -51,13 +51,13 @@ void netlink_carrier_sendmsg(char *ifname, int state)
else
snprintf(msg_buf, MAX_MSG_BUF, "switch '{ \"port\" : \"%s\", \"link\" : \"down\" }'", ifname);
netlink_send_string(msg_buf);
easysoc_send_string(msg_buf);
return;
}
void netlink_send_string(const char *s)
void easysoc_send_string(const char *s)
{
struct sk_buff *skb;
int rc;
......@@ -102,5 +102,5 @@ failure:
return;
}
EXPORT_SYMBOL(netlink_init);
EXPORT_SYMBOL(netlink_carrier_sendmsg);
EXPORT_SYMBOL(easysoc_nl_init);
EXPORT_SYMBOL(easysoc_carrier_sendmsg);
......@@ -24,7 +24,7 @@
#include <linux/of_device.h>
#ifdef CONFIG_USERSPACE_LINK_NOTIFICATION
#include <linux/netlink_wrapper.h>
#include <linux/easysoc_events.h>
#include <net/genetlink.h>
#endif
......@@ -1558,7 +1558,7 @@ static void xrx500_mdio_link(struct net_device *dev)
priv->port[i].phydev->speed,
dev->name);
netlink_carrier_sendmsg(dev->name, priv->port[i].link);
easysoc_carrier_sendmsg(dev->name, priv->port[i].link);
#endif
phy_print_status(priv->port[i].phydev);
}
......@@ -2135,7 +2135,7 @@ static int ltq_eth_drv_probe(struct platform_device *pdev)
ltq_eth_drv_init(pdev);
register_netdevice_notifier(&netdevice_notifier);
netlink_init();
easysoc_nl_init();
return 0;
}
......
#ifndef _EASYSOC_WRAPPER_H__
#define _EASYSOC_WRAPPER_H__
void easysoc_nl_init(void);
void easysoc_carrier_sendmsg(char *ifname, int state);
void easysoc_send_string(const char *s);
/* attributes */
enum {
NL_UNSPEC,
NL_MSG,
__NL_MAX,
};
#define NL_MAX (__NL_MAX - 1)
#endif /* _EASYSOC_WRAPPER_H__ */
#ifndef _NETLINK_WRAPPER_H__
#define _NETLINK_WRAPPER_H__
void netlink_init(void);
void netlink_carrier_sendmsg(char *ifname, int state);
void netlink_send_string(const char *s);
/* attributes */
enum {
NL_UNSPEC,
NL_MSG,
__NL_MAX,
};
#define NL_MAX (__NL_MAX - 1)
#endif /* _NETLINK_WRAPPER_H__ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment