ixgbe: enable L3/L4 filtering for Tx switched packets
authorEmil Tantilov <emil.s.tantilov@intel.com>
Tue, 25 Apr 2017 18:31:06 +0000 (11:31 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 31 May 2017 11:32:48 +0000 (04:32 -0700)
This will ensure that VF-to-VF traffic on the same PF
is filtered to allow RSS operation.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

index 4f9679494b6c6cbdf71e747a66ca9cd863fef268..7baca05c4a51f91e3aced498e5d75a24af439f5e 100644 (file)
@@ -3803,6 +3803,9 @@ static void ixgbe_setup_mrqc(struct ixgbe_adapter *adapter)
                                mrqc = IXGBE_MRQC_VMDQRSS32EN;
                        else
                                mrqc = IXGBE_MRQC_VMDQRSS64EN;
+
+                       /* Enable L3/L4 for Tx Switched packets */
+                       mrqc |= IXGBE_MRQC_L3L4TXSWEN;
                } else {
                        if (tcs > 4)
                                mrqc = IXGBE_MRQC_RTRSS8TCEN;