]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ixgbe: Allow setting multiple queues when SR-IOV is enabled
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 8 Sep 2016 03:28:11 +0000 (20:28 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 25 Feb 2017 05:48:03 +0000 (21:48 -0800)
Orabug: 24568240

The maximum queue count reported was 1, however support for multiple queues
with SR-IOV was added some time ago so we should report support for it to
the user so that they can select multiple queues if they so desire.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 3b00da03ae303a3bdfa3bdfbb078e0eadb749375)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c

index 4d67c5579529e853ef759f05a3fd7a203da21c6c..906d3943fb500226c12c3dfbfa04068db8651536 100644 (file)
@@ -3063,8 +3063,8 @@ static unsigned int ixgbe_max_channels(struct ixgbe_adapter *adapter)
                /* We only support one q_vector without MSI-X */
                max_combined = 1;
        } else if (adapter->flags & IXGBE_FLAG_SRIOV_ENABLED) {
-               /* SR-IOV currently only allows one queue on the PF */
-               max_combined = 1;
+               /* Limit value based on the queue mask */
+               max_combined = adapter->ring_feature[RING_F_RSS].mask + 1;
        } else if (tcs > 1) {
                /* For DCB report channels per traffic class */
                if (adapter->hw.mac.type == ixgbe_mac_82598EB) {