Re: [PATCH NET 2/2] net: hns: Use phy_driver to setup Phy loopback

From: Andrew Lunn
Date: Fri Jun 23 2017 - 00:05:56 EST

> what should the Mac driver do when it receive the error? I assume that it
> will return it to userspace. because the rtnl_lock ensure only one ethtool
> is executing, if the function return error, it means some bug in the mac
> driver, am I right?

Yes, return it. It could be there are other use cases of loopback,
which are not protected by the rtnl_lock.