]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ixgbevf: VF2VF TCP RSS
authorSebastian Basierski <sebastianx.basierski@intel.com>
Thu, 9 Aug 2018 09:45:40 +0000 (11:45 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 28 Aug 2018 20:28:49 +0000 (13:28 -0700)
While VF2VF with RSS communication, RSS Type were wrongly recognized
and RSS hash was not calculated as it should be. Packets was
distributed on various queues by accident.
This commit fixes that behaviour and causes proper RSS Type recognition.

Signed-off-by: Sebastian Basierski <sebastianx.basierski@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c

index d86446d202d5ed95826db225139b095d7c7a683c..15deac07fd921c42c7be07844d485ae74e7ebd15 100644 (file)
@@ -3849,6 +3849,10 @@ static void ixgbevf_tx_csum(struct ixgbevf_ring *tx_ring,
                skb_checksum_help(skb);
                goto no_csum;
        }
+
+       if (first->protocol == htons(ETH_P_IP))
+               type_tucmd |= IXGBE_ADVTXD_TUCMD_IPV4;
+
        /* update TX checksum flag */
        first->tx_flags |= IXGBE_TX_FLAGS_CSUM;
        vlan_macip_lens = skb_checksum_start_offset(skb) -