Commit 3258438a authored by Philippe Gerum's avatar Philippe Gerum

net/igb: igb_ioctl() requires execution in secondary mode

We may have to call the regular MII layer from this routine.
Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
parent e1e46570
......@@ -5067,6 +5067,9 @@ static int igb_mii_ioctl(struct rtnet_device *netdev, struct ifreq *ifr, int cmd
**/
static int igb_ioctl(struct rtnet_device *netdev, struct ifreq *ifr, int cmd)
{
if (rtdm_in_rt_context())
return -ENOSYS;
switch (cmd) {
case SIOCGMIIPHY:
case SIOCGMIIREG:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment