Commit 32889b39 authored by David S. Miller's avatar David S. Miller

[NET]: TSO requires SG, enforce this at device registry.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a8ff8803
......@@ -2871,6 +2871,14 @@ int register_netdevice(struct net_device *dev)
dev->features &= ~NETIF_F_SG;
}
/* TSO requires that SG is present as well. */
if ((dev->features & NETIF_F_TSO) &&
!(dev->features & NETIF_F_SG)) {
printk("%s: Dropping NETIF_F_TSO since no SG feature.\n",
dev->name);
dev->features &= ~NETIF_F_TSO;
}
/*
* nil rebuild_header routine,
* that should be never called and used as just bug trap.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment