Skip to content

Commit

Permalink
ip_gre: Removed unused ipgre netdev ops
Browse files Browse the repository at this point in the history
When cleaning up unused ipgre code the ipgre_netdev_ops structure
was missed. Get rid of it now.

Fixes: d5822f4 ("gre: Remove dead ipgre code")
Signed-off-by: Greg Rose <gvrose8192@gmail.com>
  • Loading branch information
gvrose8192 committed Oct 31, 2019
1 parent 9232b88 commit be85923
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions datapath/linux/compat/ip_gre.c
Expand Up @@ -1024,22 +1024,6 @@ static netdev_tx_t ipgre_xmit(struct sk_buff *skb,
return NETDEV_TX_OK;
}

static const struct net_device_ops ipgre_netdev_ops = {
.ndo_init = ipgre_tunnel_init,
.ndo_uninit = rpl_ip_tunnel_uninit,
.ndo_start_xmit = ipgre_xmit,
#ifdef HAVE_RHEL7_MAX_MTU
.ndo_size = sizeof(struct net_device_ops),
.extended.ndo_change_mtu = ip_tunnel_change_mtu,
#else
.ndo_change_mtu = ip_tunnel_change_mtu,
#endif
.ndo_get_stats64 = ip_tunnel_get_stats64,
#ifdef HAVE_GET_LINK_NET
.ndo_get_iflink = ip_tunnel_get_iflink,
#endif
};

static const struct net_device_ops gre_tap_netdev_ops = {
.ndo_init = gre_tap_init,
.ndo_uninit = rpl_ip_tunnel_uninit,
Expand Down

0 comments on commit be85923

Please sign in to comment.