Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3437146imu; Sun, 11 Nov 2018 15:04:57 -0800 (PST) X-Google-Smtp-Source: AJdET5d56IeA60cczsjUMVQUOnh3UNAQaoA5WZBr5Q/96v5k/yTq3+U6k76FEMsiOxMzQ71dneSt X-Received: by 2002:a17:902:4481:: with SMTP id l1-v6mr17410006pld.123.1541977497317; Sun, 11 Nov 2018 15:04:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541977497; cv=none; d=google.com; s=arc-20160816; b=PAo6NXQSOusI0Qa8cQM1Ncn1k/N3yU3WnmzNkYtmtO25dNABgSzwHeKII9m0osDuzt 5v3lVsX01cjGJsKqemxwofUdOEJ+CZvQTQQVdTsxNL639RTDp9GWPOaASJ5Qo8eYLQOg GWnV7Y2paQ59yRY3aEfV9gKrgait7sr2x16v5jAV5PskF3Bar2el4XhB8e5vBmWRe8us wKtq0/YgQ0kHX7eGj5a+QapxtAREZRGc7EbtnthFpbKfTkkf24nHuOGOtY7aTjyZz9lX uJTcwMk01aiODd/h4K3MsKZK7iHohcMSbBDkAL93FQg10pPC7e9wm40mbeodoS+Uoy0Q PvUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VUUsbu7OmxeyjlIBEops/nYcNTkrRuX0/c39+r6RXNY=; b=lWMoHu7pNmwLm2KjzPPpTCvHFIz1J0tWK4aXvg41qMCBOrihGC57Gl/aRcGM/c4sSZ 5WVpZCMgY720PPrA78C6nZREbBe8dEdA9tlb+iZ9zEXmnLPnizzh1mVzCUGO5MkIJtfT 4q5USdc8jWi74+zXJUfx+i3+DCgkkv1rorUgDvu/3UuprbD12fVpIuA4tSje5OCvW9D9 zNYPbirkIOYHG2WBFwU/Ogr4F2XR/UBMp1qFkhsdW1zveotdS0tzPhvFq1TxWHhFN0Cu P6nW5R4o4pq/Vde9s8P+ax0cHm8OK78OKnHJMHp2BaLjfbgnU0RbufQVLSS77tZGd3wY M0aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hFQQOo8k; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1-v6si13280919pfa.120.2018.11.11.15.04.42; Sun, 11 Nov 2018 15:04:57 -0800 (PST) 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=hFQQOo8k; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390779AbeKLIy1 (ORCPT + 99 others); Mon, 12 Nov 2018 03:54:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:51836 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390510AbeKLIWV (ORCPT ); Mon, 12 Nov 2018 03:22:21 -0500 Received: from localhost (unknown [206.108.79.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1E6082241E; Sun, 11 Nov 2018 22:32:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975544; bh=MTY9SiUofUjyvUEL4/JFjJ9S5qx0+Eide22/DWdHIJg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hFQQOo8k08FpIP3zPgGS3elzzZdamvEd41DqVtoasskpW8SbvjpCGyxQ+mM0/VorU aHimHJM0npa2jibsj4HmvhTgW/kpsz0bkXt5Fb+LNUwLR4dkMy1vtOrpbPu8aSTzf5 vrYsVUQgX10orcd2tM5a5EDm5d0w5gdkLA0LcG3s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sebastian Basierski , Andrew Bowers , Jeff Kirsher , Sasha Levin Subject: [PATCH 4.14 073/222] ixgbevf: VF2VF TCP RSS Date: Sun, 11 Nov 2018 14:22:50 -0800 Message-Id: <20181111221654.642124749@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221647.665769131@linuxfoundation.org> References: <20181111221647.665769131@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c @@ -3427,6 +3427,10 @@ static void ixgbevf_tx_csum(struct ixgbe 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) -