File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -222,12 +222,16 @@ static int reg_vif_xmit(struct sk_buff *skb, struct net_device *dev)
222
222
return 0 ;
223
223
}
224
224
225
+ static const struct net_device_ops reg_vif_netdev_ops = {
226
+ .ndo_start_xmit = reg_vif_xmit ,
227
+ };
228
+
225
229
static void reg_vif_setup (struct net_device * dev )
226
230
{
227
231
dev -> type = ARPHRD_PIMREG ;
228
232
dev -> mtu = ETH_DATA_LEN - sizeof (struct iphdr ) - 8 ;
229
233
dev -> flags = IFF_NOARP ;
230
- dev -> hard_start_xmit = reg_vif_xmit ;
234
+ dev -> netdev_ops = & reg_vif_netdev_ops ,
231
235
dev -> destructor = free_netdev ;
232
236
}
233
237
Original file line number Diff line number Diff line change @@ -416,12 +416,16 @@ static int reg_vif_xmit(struct sk_buff *skb, struct net_device *dev)
416
416
return 0 ;
417
417
}
418
418
419
+ static const struct net_device_ops reg_vif_netdev_ops = {
420
+ .ndo_start_xmit = reg_vif_xmit ,
421
+ };
422
+
419
423
static void reg_vif_setup (struct net_device * dev )
420
424
{
421
425
dev -> type = ARPHRD_PIMREG ;
422
426
dev -> mtu = 1500 - sizeof (struct ipv6hdr ) - 8 ;
423
427
dev -> flags = IFF_NOARP ;
424
- dev -> hard_start_xmit = reg_vif_xmit ;
428
+ dev -> netdev_ops = & reg_vif_netdev_ops ;
425
429
dev -> destructor = free_netdev ;
426
430
}
427
431
You can’t perform that action at this time.
0 commit comments