mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-01 07:14:19 -04:00
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:
committed by
David S. Miller
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user