Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351224
b: refs/heads/master
c: 8093315
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Dec 30, 2012
1 parent 7463c5f commit 24e611a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2681128f0ced8aa4e66f221197e183cc16d244fe
refs/heads/master: 8093315a91340bca52549044975d8c7f673b28a1
7 changes: 6 additions & 1 deletion trunk/drivers/net/veth.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ static const struct net_device_ops veth_netdev_ops = {
.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_HW_VLAN_TX | NETIF_F_HW_VLAN_RX)

static void veth_setup(struct net_device *dev)
{
ether_setup(dev);
Expand All @@ -248,9 +252,10 @@ static void veth_setup(struct net_device *dev)
dev->netdev_ops = &veth_netdev_ops;
dev->ethtool_ops = &veth_ethtool_ops;
dev->features |= NETIF_F_LLTX;
dev->features |= VETH_FEATURES;
dev->destructor = veth_dev_free;

dev->hw_features = NETIF_F_HW_CSUM | NETIF_F_SG | NETIF_F_RXCSUM;
dev->hw_features = VETH_FEATURES;
}

/*
Expand Down

0 comments on commit 24e611a

Please sign in to comment.