mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 11:13:58 +08:00
net: ethtool: self_test: Mark interface in testing operative status
When an interface is executing a self test, put the interface into operative status testing. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
db30a57779
commit
77e9b2ab45
@ -1746,7 +1746,9 @@ static int ethtool_self_test(struct net_device *dev, char __user *useraddr)
|
||||
if (!data)
|
||||
return -ENOMEM;
|
||||
|
||||
netif_testing_on(dev);
|
||||
ops->self_test(dev, &test, data);
|
||||
netif_testing_off(dev);
|
||||
|
||||
ret = -EFAULT;
|
||||
if (copy_to_user(useraddr, &test, sizeof(test)))
|
||||
|
Loading…
Reference in New Issue
Block a user