diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2017-04-24 14:16:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-25 11:41:56 -0400 |
commit | a485c2b877619935f7346146791f0d22f5da723a (patch) | |
tree | 5560fe5e396d973dce10a5413855ec20c0d054e6 | |
parent | c39855febc0e7332db389fd4017ab163589b1b20 (diff) | |
download | blackbird-op-linux-a485c2b877619935f7346146791f0d22f5da723a.tar.gz blackbird-op-linux-a485c2b877619935f7346146791f0d22f5da723a.zip |
l2tp: define "l2tpeth" device type
Export type of l2tpeth interfaces to userspace
(/sys/class/net/<iface>/uevent).
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Acked-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/l2tp/l2tp_eth.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/l2tp/l2tp_eth.c b/net/l2tp/l2tp_eth.c index 5e44b3cc1212..59aba8aeac03 100644 --- a/net/l2tp/l2tp_eth.c +++ b/net/l2tp/l2tp_eth.c @@ -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; |