Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3484565imu; Sun, 11 Nov 2018 16:09:16 -0800 (PST) X-Google-Smtp-Source: AJdET5e5fmfwuK1dcPwnuxE5SuL9594Cv5hp6I6yve+r5VQJ519X+nVteObzlcdYHsJqn4unU9q4 X-Received: by 2002:a17:902:d90c:: with SMTP id c12mr2075001plz.52.1541981356478; Sun, 11 Nov 2018 16:09:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541981356; cv=none; d=google.com; s=arc-20160816; b=z3MwB0H1rJS+kTdXz0bVdbq/QXZRW8HORbdrKgmsRvJunJ7+3CKr+R6PIbk4FPztsH WTErvhT0+GvYhT3N9qJOdB6SQICuvpSnpNOl8Zwco/1IeBCxA1hT8nR+CoQ2wftqFvkO GPZNpKxS4zTDQ/zscwq1xYwdIUSZjUyTEVRlMrm6ATfYl2Xd3vTyaf4MIH+PB43Pbplc YpeR/ejrUp2bB9ttANlirb8/TyUZZjyE/VyU7Jz+mEThv1he2JNYO1FCiBItUYfSPH2z f5NQhda6PyGZ4rHZV5XlqaKk20My2addoQ9JxD3GdlxCh7pt4hzI7igyZJXNyLpJ2QPn UAXQ== 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=wNp1ePCZggbJtTy9kusABS0pEBH3lQEMwh63DZOegCc=; b=bkUorQIPZMK/cDlXBSlW03oRtayfmte+aVbW4cupK356PNMBXQ99aGwtwg9psO+WX6 IgmidmVDHsmPcxnXSvqLxQrOwOnbdF3CfRJ5fay/4Q0MIkYYy+S4MDu0bvrnJqALZUrc Zqiv1Zyox4+G+a7Q4WJMFyc/2maSvdDIhxiPK2T+4+jzU6sTOQVK2+CtLKlDN5DSdfu3 HZGmVJgN7/Hkr4aWgevecLrX6yTsHlAlmOrzG/vif7/I8oLWuBgNSMlnH1WkO7IUp/cu rq1AURvJYmqeDC96zxueOSJXKdXu++xsZIr6JVSoR+UiT5B1Jrv2MHmE5VepzS6waf0r yEhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fNBUZ851; 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 q76-v6si8491480pfa.211.2018.11.11.16.09.01; Sun, 11 Nov 2018 16:09:16 -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=fNBUZ851; 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 S1731304AbeKLIRb (ORCPT + 99 others); Mon, 12 Nov 2018 03:17:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:60776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731139AbeKLIRa (ORCPT ); Mon, 12 Nov 2018 03:17:30 -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 35A062154B; Sun, 11 Nov 2018 22:27:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975254; bh=gUlUMFCbu2eyAZujayFadvHKRIZwW7hie+FtCsYDTzU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fNBUZ851dUBltl7j+RVky9NzNRpB2sa7lId6C5HT/oLuGi2BsHr/XkU0spJu2Bv6P ppLcWrQ3eqsDICeaPQGrSJ4Ci1VJt++qJtqWKoEQnWRSGp2VqpxabjsoR6cKEtU3nJ SDI8OnG4F8ZfSCg8wyaVTpNsSiI8M1L11BbD1lCM= 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.19 124/361] ixgbevf: VF2VF TCP RSS Date: Sun, 11 Nov 2018 14:17:51 -0800 Message-Id: <20181111221637.522413371@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@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.19-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 @@ -3849,6 +3849,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) -