[NET] loopback: Added support for SG

Just like the standard loopback device, SG support here is innate.
So all we need to do is mark it as such and zero the change_mtu method
so that the MTU can be changed at will.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-06-02 12:19:33 +01:00
1 parent cf7e961ca7
commit e16b4fa8fe
1 file changed
+2
@@ -146,11 +146,13 @@ static void loopback_construct(struct net_device *dev, struct net_device *lo)
dev->hard_start_xmit = loopback_start_xmit;
dev->get_stats = loopback_get_stats;
dev->set_multicast_list = loopback_set_multicast_list;
dev->change_mtu = NULL; /* allow arbitrary mtu */
dev->tx_queue_len = 0;
dev->features = (NETIF_F_HIGHDMA |
NETIF_F_LLTX |
NETIF_F_SG |
NETIF_F_IP_CSUM);
SET_ETHTOOL_OPS(dev, &network_ethtool_ops);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.