mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 11:13:58 +08:00
typhoon: wait for RX mode commands to finish
When adding VLAN devices, we can get several calls to typhoon_set_rx_mode() in quick succession. Because we didn't wait for the commands to complete, we could run out of command descriptors and fail to set the RX mode. Signed-off-by: David Dillow <dave@thedillows.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5c398dc8f5
commit
154ccd82e1
@ -936,7 +936,7 @@ typhoon_set_rx_mode(struct net_device *dev)
|
|||||||
filter |= TYPHOON_RX_FILTER_MCAST_HASH;
|
filter |= TYPHOON_RX_FILTER_MCAST_HASH;
|
||||||
}
|
}
|
||||||
|
|
||||||
INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_RX_FILTER);
|
INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_RX_FILTER);
|
||||||
xp_cmd.parm1 = filter;
|
xp_cmd.parm1 = filter;
|
||||||
typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL);
|
typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user