aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6mr.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/ip6mr.c')
-rw-r--r--net/ipv6/ip6mr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 363ae258ee1e..dfba9fd0c248 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -416,12 +416,16 @@ static int reg_vif_xmit(struct sk_buff *skb, struct net_device *dev)
416 return 0; 416 return 0;
417} 417}
418 418
419static const struct net_device_ops reg_vif_netdev_ops = {
420 .ndo_start_xmit = reg_vif_xmit,
421};
422
419static void reg_vif_setup(struct net_device *dev) 423static void reg_vif_setup(struct net_device *dev)
420{ 424{
421 dev->type = ARPHRD_PIMREG; 425 dev->type = ARPHRD_PIMREG;
422 dev->mtu = 1500 - sizeof(struct ipv6hdr) - 8; 426 dev->mtu = 1500 - sizeof(struct ipv6hdr) - 8;
423 dev->flags = IFF_NOARP; 427 dev->flags = IFF_NOARP;
424 dev->hard_start_xmit = reg_vif_xmit; 428 dev->netdev_ops = &reg_vif_netdev_ops;
425 dev->destructor = free_netdev; 429 dev->destructor = free_netdev;
426} 430}
427 431