diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/core/ethtool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/ethtool.c b/net/core/ethtool.c index 3f269e4e9438..33ce7ed6afc6 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c | |||
@@ -589,7 +589,7 @@ static int ethtool_set_tso(struct net_device *dev, char __user *useraddr) | |||
589 | 589 | ||
590 | static int ethtool_get_ufo(struct net_device *dev, char __user *useraddr) | 590 | static int ethtool_get_ufo(struct net_device *dev, char __user *useraddr) |
591 | { | 591 | { |
592 | struct ethtool_value edata = { ETHTOOL_GTSO }; | 592 | struct ethtool_value edata = { ETHTOOL_GUFO }; |
593 | 593 | ||
594 | if (!dev->ethtool_ops->get_ufo) | 594 | if (!dev->ethtool_ops->get_ufo) |
595 | return -EOPNOTSUPP; | 595 | return -EOPNOTSUPP; |
@@ -598,6 +598,7 @@ static int ethtool_get_ufo(struct net_device *dev, char __user *useraddr) | |||
598 | return -EFAULT; | 598 | return -EFAULT; |
599 | return 0; | 599 | return 0; |
600 | } | 600 | } |
601 | |||
601 | static int ethtool_set_ufo(struct net_device *dev, char __user *useraddr) | 602 | static int ethtool_set_ufo(struct net_device *dev, char __user *useraddr) |
602 | { | 603 | { |
603 | struct ethtool_value edata; | 604 | struct ethtool_value edata; |