return tot;
}
+/* fake multicast ability */
+static void veth_set_multicast_list(struct net_device *dev)
+{
+}
+
static int veth_open(struct net_device *dev)
{
struct veth_priv *priv = netdev_priv(dev);
.ndo_start_xmit = veth_xmit,
.ndo_change_mtu = veth_change_mtu,
.ndo_get_stats64 = veth_get_stats64,
+ .ndo_set_rx_mode = veth_set_multicast_list,
.ndo_set_mac_address = eth_mac_addr,
};
#define VETH_FEATURES (NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_ALL_TSO | \
NETIF_F_HW_CSUM | NETIF_F_RXCSUM | NETIF_F_HIGHDMA | \
+ NETIF_F_GSO_GRE | NETIF_F_GSO_UDP_TUNNEL | \
+ NETIF_F_GSO_IPIP | NETIF_F_GSO_SIT | NETIF_F_UFO | \
NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_CTAG_RX | \
NETIF_F_HW_VLAN_STAG_TX | NETIF_F_HW_VLAN_STAG_RX )
dev->destructor = veth_dev_free;
dev->hw_features = VETH_FEATURES;
+ dev->hw_enc_features = VETH_FEATURES;
}
/*
[VETH_INFO_PEER] = { .len = sizeof(struct ifinfomsg) },
};
-static size_t veth_get_size(const struct net_device *dev)
-{
- return nla_total_size(sizeof(u64)) + /* VETH_INFO_PEER */
- 0;
-}
-
-static int veth_fill_info(struct sk_buff *skb, const struct net_device *dev)
-{
- struct veth_priv *priv = netdev_priv(dev);
- struct net_device *peer = rtnl_dereference(priv->peer);
- u64 peer_ifindex;
-
- peer_ifindex = peer ? peer->ifindex : 0;
- if (nla_put_u64(skb, VETH_INFO_PEER, peer_ifindex))
- return -EMSGSIZE;
-
- return 0;
-}
-
static struct rtnl_link_ops veth_link_ops = {
.kind = DRV_NAME,
.priv_size = sizeof(struct veth_priv),
.dellink = veth_dellink,
.policy = veth_policy,
.maxtype = VETH_INFO_MAX,
- .get_size = veth_get_size,
- .fill_info = veth_fill_info,
};
/*