diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-11-21 07:28:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-21 07:28:35 +0300 |
commit | 007c3838d9fdcc8fdaea87e4879ec3759f016ed5 (patch) | |
tree | 67f09220e48797dc2799a7db6b0b4f5cc8a99ac3 /net/ipv4/ipmr.c | |
parent | aa18e9e88c863a58f6ea63eeee0e740be071fdcf (diff) | |
download | linux-007c3838d9fdcc8fdaea87e4879ec3759f016ed5.tar.xz |
ipmr: convert ipmr virtual interface to net_device_ops
Convert to new network device ops interface.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ipmr.c')
-rw-r--r-- | net/ipv4/ipmr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index ee58bcbc99a5..77fc4d3fdf61 100644 --- a/net/ipv4/ipmr.c +++ b/net/ipv4/ipmr.c @@ -222,12 +222,16 @@ static int reg_vif_xmit(struct sk_buff *skb, struct net_device *dev) return 0; } +static const struct net_device_ops reg_vif_netdev_ops = { + .ndo_start_xmit = reg_vif_xmit, +}; + static void reg_vif_setup(struct net_device *dev) { dev->type = ARPHRD_PIMREG; dev->mtu = ETH_DATA_LEN - sizeof(struct iphdr) - 8; dev->flags = IFF_NOARP; - dev->hard_start_xmit = reg_vif_xmit; + dev->netdev_ops = ®_vif_netdev_ops, dev->destructor = free_netdev; } |