mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[SCSI] net: reclaim 8 upper bits of the netdev->features from GSO
Reclaim 8 upper bits of netdev->features from GSO. Signed-off-by: Chris Leech <christopher.leech@intel.com> Signed-off-by: Yi Zou <yi.zou@intel.com> Acked-by: David Miller <davem@davemloft.net> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
parent
211c738d86
commit
43eb99c5b3
2 changed files with 2 additions and 2 deletions
|
@ -1511,7 +1511,7 @@ static int xennet_set_tso(struct net_device *dev, u32 data)
|
|||
static void xennet_set_features(struct net_device *dev)
|
||||
{
|
||||
/* Turn off all GSO bits except ROBUST. */
|
||||
dev->features &= (1 << NETIF_F_GSO_SHIFT) - 1;
|
||||
dev->features &= ~NETIF_F_GSO_MASK;
|
||||
dev->features |= NETIF_F_GSO_ROBUST;
|
||||
xennet_set_sg(dev, 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue