Eli Cohen wrote:
> I believe dev->features should be protected by rtnl lock.

NAK.

ethtool issues the SIOCETHTOOL ioctl which goes to net/core/dev.c :: dev_ioctl 
who in turn
wraps the call to dev_ethtool with rtnl_lock/unlock, see below. I have also 
verified this in practice, that is rtnl_trylock() always fails if called from 
ipoib ethtool code

Or.

>         case SIOCETHTOOL:
>                 dev_load(net, ifr.ifr_name);
>                 rtnl_lock();
>                 ret = dev_ethtool(net, &ifr);
>                 rtnl_unlock();
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to