]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/net/ethernet/marvell/octeontx2/af/rvu.c
octeontx2-af: Start/Stop traffic in CGX along with NPC
[linux.git] / drivers / net / ethernet / marvell / octeontx2 / af / rvu.c
index 3985053fa217c43e2d352dde4977bb90a1774e72..5c190c3ce8987dab3c54a4b5f77adb35a1740151 100644 (file)
@@ -2364,18 +2364,6 @@ static int rvu_enable_sriov(struct rvu *rvu)
        if (vfs > chans)
                vfs = chans;
 
-       /* AF's VFs work in pairs and talk over consecutive loopback channels.
-        * Thus we want to enable maximum even number of VFs. In case
-        * odd number of VFs are available then the last VF on the list
-        * remains disabled.
-        */
-       if (vfs & 0x1) {
-               dev_warn(&pdev->dev,
-                        "Number of VFs should be even. Enabling %d out of %d.\n",
-                        vfs - 1, vfs);
-               vfs--;
-       }
-
        if (!vfs)
                return 0;