mirror of https://gitee.com/openkylin/linux.git
nfp: don't check lack of RX/TX channels
Core will now perform this check. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Michal Kubecek <mkubecek@suse.cz> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7be92514b9
commit
4df6ff2a99
|
@ -1438,8 +1438,7 @@ static int nfp_net_set_channels(struct net_device *netdev,
|
|||
unsigned int total_rx, total_tx;
|
||||
|
||||
/* Reject unsupported */
|
||||
if (!channel->combined_count ||
|
||||
channel->other_count != NFP_NET_NON_Q_VECTORS ||
|
||||
if (channel->other_count != NFP_NET_NON_Q_VECTORS ||
|
||||
(channel->rx_count && channel->tx_count))
|
||||
return -EINVAL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue