mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
ipip,gre,vti,sit: implement ndo_get_iflink
Don't use dev->iflink anymore. CC: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ecf2c06a88
commit
1e99584b91
6 changed files with 14 additions and 5 deletions
|
@ -272,6 +272,7 @@ static const struct net_device_ops ipip_netdev_ops = {
|
|||
.ndo_do_ioctl = ipip_tunnel_ioctl,
|
||||
.ndo_change_mtu = ip_tunnel_change_mtu,
|
||||
.ndo_get_stats64 = ip_tunnel_get_stats64,
|
||||
.ndo_get_iflink = ip_tunnel_get_iflink,
|
||||
};
|
||||
|
||||
#define IPIP_FEATURES (NETIF_F_SG | \
|
||||
|
@ -286,7 +287,6 @@ static void ipip_tunnel_setup(struct net_device *dev)
|
|||
|
||||
dev->type = ARPHRD_TUNNEL;
|
||||
dev->flags = IFF_NOARP;
|
||||
dev->iflink = 0;
|
||||
dev->addr_len = 4;
|
||||
dev->features |= NETIF_F_LLTX;
|
||||
netif_keep_dst(dev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue