]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
i40e: set context to use VSI RSS LUT for SR-IOV
authorAshish Shah <ashish.n.shah@intel.com>
Tue, 3 May 2016 22:13:17 +0000 (15:13 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 7 Jul 2016 17:41:31 +0000 (10:41 -0700)
Orabug: 23176970

For the SR-IOV VSIs, when the queue filtering section is valid,
the RSS LUT needs to be set to use the VSI specific lookup table
(otherwise it will use the PF RSS LUT table).

Change-ID: Ia9377cc818078238a75c3bdeade1b593a91b3480
Signed-off-by: Ashish Shah <ashish.n.shah@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 4b28cdba4859c2d1eb77144fe2383afb8daea1ca)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c

index b44748c8895c1e2b3597ed5d51f44deb0706a9c1..ac23b89474bf1637c471a15453543becdb6cbca5 100644 (file)
@@ -9294,7 +9294,8 @@ static int i40e_add_vsi(struct i40e_vsi *vsi)
                        ctxt.info.valid_sections |=
                                cpu_to_le16(I40E_AQ_VSI_PROP_QUEUE_OPT_VALID);
                        ctxt.info.queueing_opt_flags |=
-                                               I40E_AQ_VSI_QUE_OPT_TCP_ENA;
+                               (I40E_AQ_VSI_QUE_OPT_TCP_ENA |
+                                I40E_AQ_VSI_QUE_OPT_RSS_LUT_VSI);
                }
 
                ctxt.info.valid_sections |= cpu_to_le16(I40E_AQ_VSI_PROP_VLAN_VALID);