]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: stmmac: tc: Remove the speed dependency
authorJose Abreu <Jose.Abreu@synopsys.com>
Mon, 11 Nov 2019 14:42:37 +0000 (15:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Nov 2019 07:13:19 +0000 (23:13 -0800)
XGMAC3 supports full CBS features with speeds that can go up to 10G so
we can now remove the maximum speed check of CBS.

Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c

index f9a9a9d82233375638dacb3c1b3048d11c6efb30..7d972e0fd2b04d8759a016b023e07b30381e3dd3 100644 (file)
@@ -321,8 +321,6 @@ static int tc_setup_cbs(struct stmmac_priv *priv,
                return -EINVAL;
        if (!priv->dma_cap.av)
                return -EOPNOTSUPP;
-       if (priv->speed != SPEED_100 && priv->speed != SPEED_1000)
-               return -EOPNOTSUPP;
 
        mode_to_use = priv->plat->tx_queues_cfg[queue].mode_to_use;
        if (mode_to_use == MTL_QUEUE_DCB && qopt->enable) {