]> git.baikalelectronics.ru Git - kernel.git/commitdiff
nfp: don't check lack of RX/TX channels
authorJakub Kicinski <kuba@kernel.org>
Fri, 15 May 2020 19:49:01 +0000 (12:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 May 2020 20:56:30 +0000 (13:56 -0700)
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>
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c

index a5aa3219d112baa2dbae28fddcdf40908259bae2..6eb9fb9a1814535642ecf560d8ec6b939b11b3c7 100644 (file)
@@ -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;