Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a485c2b8 authored by Guillaume Nault's avatar Guillaume Nault Committed by David S. Miller
Browse files

l2tp: define "l2tpeth" device type



Export type of l2tpeth interfaces to userspace
(/sys/class/net/<iface>/uevent).

Signed-off-by: default avatarGuillaume Nault <g.nault@alphalink.fr>
Acked-by: default avatarJames Chapman <jchapman@katalix.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c39855fe
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -130,8 +130,13 @@ static const struct net_device_ops l2tp_eth_netdev_ops = {
	.ndo_set_mac_address	= eth_mac_addr,
};

static struct device_type l2tpeth_type = {
	.name = "l2tpeth",
};

static void l2tp_eth_dev_setup(struct net_device *dev)
{
	SET_NETDEV_DEVTYPE(dev, &l2tpeth_type);
	ether_setup(dev);
	dev->priv_flags		&= ~IFF_TX_SKB_SHARING;
	dev->features		|= NETIF_F_LLTX;