Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp174446imd; Wed, 31 Oct 2018 16:49:17 -0700 (PDT) X-Google-Smtp-Source: AJdET5e5v+SiOQdiGGAVkG337Zd49Fm425zHYCXTn5NACdYpdiD6PIPZeUHl/kxoYtLhdSdEeu38 X-Received: by 2002:a63:c0f:: with SMTP id b15mr5095990pgl.314.1541029757885; Wed, 31 Oct 2018 16:49:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541029757; cv=none; d=google.com; s=arc-20160816; b=cIvqQ1+pZOSXj6MUNmiammN0kCg6QMEgBKYnFVnFZ9JaVD2vKijpVETBD36IIbA2mc P+PwXMHfz/ss+E0YpyVtYGmNlK5UkFKg66tPkdDU7OpvVMpppyDV4NzpYZBPSxKPUO6Z rW4VQXoqkIgyktMDB2x5HnE6skbsyrZoEETGVncQp+joTwuUGUUtmPhVp9ctBSm0BGxY KMbANhuVZdo5B8BZ0mkfP5A/N03VdX+eAwrdn7Ro9ia5BUcw4IqTgjJRjQsljR+C2uKX K9Oe4Zoy/TMOBpF2vp4Dipq1jX+Y7vpW6f/5hF7HCxVbU7FG5okZTv6CWNNVeOmszkFk RZYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=BlXTFwRlpD6nHyaCBz5PzXpKFRpxjV46UI4RHzkm9JA=; b=NYoNYulCqp6ncxyCRn4ERNBNw07oE6vrKLG3UlOyyNoOd5pEqhgWnchZE1RB4iWf6a GV5TuIAKn1H17stCIo3BRzqqKomp5pUm2JrkiKnDvFa63QJVGdSWCdZD/kH6G7UXG5iX pO/qXW5YbRTZFtxS5shOilY0fS4sOqR8qBynAuOqPbqVDw5wNJGrJ5xnlzi77c/wbasi nUaZBA0Okh24xeBZGplPEgDuN91U1DX7x8ZYtLmlG6DDO/I97sLKjNdLPvTerLU0F7kB o5RmGVnd9wjIQWLP3fAoX7OX7SDh87QSU1lLEZ90Qkh2zjyUuYo+a+gVwUdJEtRVNW2Y JCXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="TNCv/Uz4"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y62-v6si28651639pfy.139.2018.10.31.16.49.03; Wed, 31 Oct 2018 16:49:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="TNCv/Uz4"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728593AbeKAIHG (ORCPT + 99 others); Thu, 1 Nov 2018 04:07:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:54552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728581AbeKAIHF (ORCPT ); Thu, 1 Nov 2018 04:07:05 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 44A252081B; Wed, 31 Oct 2018 23:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541027214; bh=PPc1oU9Scma9O4DobLvn9v0NdDd2xeH4SsGKuGW0qfc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TNCv/Uz4JrXNAil9FWQUHfwnGIgbdnUdgVm01+GGsSFHC8TPqSg9vyT29v03G/uCO VkwrtXP8poXk/PgJd8vDEL3suNWDy3Zd0DbPEyvSO5Atn5LNWjpIRMbEJHJxfthB26 pnz2wx+HcP2/CwSBVVh4muUpJCdRWr9ITWnAuU4o= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Sebastian Basierski , Jeff Kirsher , Sasha Levin Subject: [PATCH AUTOSEL 4.19 079/146] ixgbevf: VF2VF TCP RSS Date: Wed, 31 Oct 2018 19:04:34 -0400 Message-Id: <20181031230541.28822-79-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181031230541.28822-1-sashal@kernel.org> References: <20181031230541.28822-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sebastian Basierski [ Upstream commit 7fb94bd58dd6650a0158e68d414e185077d8b57a ] 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 Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c index 5a228582423b..4093a9c52c18 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c @@ -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) - -- 2.17.1