bnxt_en: Allow NETIF_F_NTUPLE to be enabled on VFs.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 13 Feb 2017 00:18:13 +0000 (19:18 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Feb 2017 03:18:49 +0000 (22:18 -0500)
Commit ae10ae740ad2 ("bnxt_en: Add new hardware RFS mode.") has added
code to allow NTUPLE to be enabled on VFs.  So we now remove the
BNXT_VF() check in rfs_capable() to allow NTUPLE on VFs.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c

index 8ac5987d7fe9d1083b83e51e8ff57b28e4781a69..516c5d7b75f72f9239b1c5f467e3c5a12c425a44 100644 (file)
@@ -6291,7 +6291,7 @@ static bool bnxt_rfs_capable(struct bnxt *bp)
 #ifdef CONFIG_RFS_ACCEL
        int vnics, max_vnics, max_rss_ctxs;
 
-       if (BNXT_VF(bp) || !(bp->flags & BNXT_FLAG_MSIX_CAP))
+       if (!(bp->flags & BNXT_FLAG_MSIX_CAP))
                return false;
 
        vnics = 1 + bp->rx_nr_rings;