Received: by 10.213.65.68 with SMTP id h4csp889221imn; Fri, 23 Mar 2018 20:05:50 -0700 (PDT) X-Google-Smtp-Source: AG47ELvDed73gWnEbPxfsC+ufp8z5GUDfvQ5VJyGNuB3lhHrNdkryzgPEMpgnuJL+UQqWEDx4SB8 X-Received: by 2002:a17:902:bc8b:: with SMTP id bb11-v6mr17553713plb.370.1521860750666; Fri, 23 Mar 2018 20:05:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521860750; cv=none; d=google.com; s=arc-20160816; b=dCHVq8vmZEZRACP4uT1vBZo4WfqfrBy2vzgfWIgN6fmotoAx7KAWnCNCGDtFJxMU0T 5s7QriZ2RdPPyu2yWXpk//KsqYvQZ03UD1TxlHptSc4RfkITr/+BQWgRcXQOXTVS6/UT uskDkImgIPlX/zgJ1vRTtqvRU8PeiF1YHyjRVk/If7uEVuYoybqYdyfUKbZ+zhcS72rK WV7BEEIE7C1cXKpEPHt3AKqi9UmSniBaYzVuVsJdfzz+f/aLKK6s4fjLDiOdW7C3lM5Z JDHu0e5HksqarQsU1DsvHNKl8duspimXIehy2tCQgEx6VH7lcArevHCNjH75g+hOmyro bCrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=7uHiluCdaOwNfxWLovZCcoeQb9L1ciDdz6qwSpq03M4=; b=nhKnprIaujzrPFExMszBpnxNkZck3YPsMVRFnCDvmvxP9MTD2fZk/mnMn4zcAnYibt CjtEwPrrA3kzpDg5cfUND3EgqIyQb1m7VOJJ2v+FkM+ODOSzWeeKzeJh449Djw8G/m9V DL3k7koXCdptzrhST8rG39ELjKQVPAEiW5K/MB2y7BuatScuPGdbDDs74dgmEDE4GSBe d2O3BuSZ26WRLdR0D14YtcJGdTSK5AwD1qaVJFg1Qo+CJ5ubrKSylcaoasw82HRZTR9K PePDSdWSgNch4a/AzKysnm5dKOYgi/EBKGAWIPqSgBX+iv3XHdNR89PLEvdvfiUklABg 3Ghw== ARC-Authentication-Results: i=1; mx.google.com; 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 38-v6si991184pld.640.2018.03.23.20.05.36; Fri, 23 Mar 2018 20:05:50 -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; 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 S1752399AbeCXDCi (ORCPT + 99 others); Fri, 23 Mar 2018 23:02:38 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:6700 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752077AbeCXDBN (ORCPT ); Fri, 23 Mar 2018 23:01:13 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 47F84B7C814DC; Sat, 24 Mar 2018 11:00:59 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.361.1; Sat, 24 Mar 2018 11:00:52 +0800 From: Peng Li To: CC: , , , , Subject: [PATCH net-next 4/5] net: hns3: fix for not initializing VF rss_hash_key problem Date: Sat, 24 Mar 2018 11:32:46 +0800 Message-ID: <1521862367-111399-5-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521862367-111399-1-git-send-email-lipeng321@huawei.com> References: <1521862367-111399-1-git-send-email-lipeng321@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.71.200.31] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fuyun Liang Default rss_hash_key value should be given to all vports. But just the PF rss_hash_key has the default value here. This patch adds rss_hash_key Initialization for all vports. Signed-off-by: Fuyun Liang Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index bede411..ce093c3 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -3466,8 +3466,6 @@ static void hclge_rss_init_cfg(struct hclge_dev *hdev) struct hclge_vport *vport = hdev->vport; int i; - netdev_rss_key_fill(vport->rss_hash_key, HCLGE_RSS_KEY_SIZE); - for (i = 0; i < hdev->num_vmdq_vport + 1; i++) { vport[i].rss_tuple_sets.ipv4_tcp_en = HCLGE_RSS_INPUT_TUPLE_OTHER; @@ -3487,6 +3485,8 @@ static void hclge_rss_init_cfg(struct hclge_dev *hdev) HCLGE_RSS_INPUT_TUPLE_OTHER; vport[i].rss_algo = HCLGE_RSS_HASH_ALGO_TOEPLITZ; + + netdev_rss_key_fill(vport[i].rss_hash_key, HCLGE_RSS_KEY_SIZE); } hclge_rss_indir_init_cfg(hdev); -- 2.9.3