Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1434167ybz; Sat, 25 Apr 2020 19:19:32 -0700 (PDT) X-Google-Smtp-Source: APiQypLcAPw7hRehReixKaZftAmu7q0KHM4tkZIDkISs4pk/+oM5qi4zOhhKvZ0qf13y6O28FaYg X-Received: by 2002:a17:906:4e46:: with SMTP id g6mr13478233ejw.36.1587867571850; Sat, 25 Apr 2020 19:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587867571; cv=none; d=google.com; s=arc-20160816; b=gwEnRZNcijbWuuDx/vomRsicltdUAJ7Y2rEMR9FF6JqQ1JmXr4AD5d0Cm4cmJuddku lwEXOCO/gQqexkgCseyA54eoOAkPLvnBrGS/4/GXWvW8qjk1/G7T450AojYG5mLIjh7C XRUIX2HUDU8ELXGxCK2zgT41xYWMXD6M4Qya+7vSHqPdtRrn1ojawi1B4pL4y7LrRrVj J8Gyyx489BVzM2WCXR7pHwnGyplDQWk39zSp7Lsk7J5qyIRmiI1BAOPo/2J3JlooajA+ jhoa5232n/cz6zz73wgS+u5F776fVx9Ps7AIkYZvzzReSfaXsa/fSEH8wVgY5PNKh6Ar WTWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=RwdzNitZd6eQkA+QItGL0hhLip6GjjHMeNk+/1PTjzc=; b=NbUCv2V9X/I6MnnTGdY+/uuvy9Lo18jELfss+/3MAxoCRLY9Ew1g+b3LYcY5FDF71x yI295SUXnPJzi5RiSte0kFaEAupB4aIo8TLqeijEStsflmT6eXssURcdhXG8BTmUwMnt oqtV8wTau1EjSyBFBbnFAoLSpV/u7yJ5Ev5yVWQjQyepd9V4NMyfKEX3r7aZ3bojNqHd Z36jAHkudrH26pkIPfiLRStC6mu7qqUqb3mhjPQYeFg2G+jdgTMAWpqI15P1XTIRSt0E rSJNSPMO8aqQXIDT5RItWYucIGKxWVAv2QMI36c1EcVX2hs9TK2cslV6Bvteh8VqvInP KKFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v14si5706386edb.37.2020.04.25.19.19.08; Sat, 25 Apr 2020 19:19:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726118AbgDZCPK (ORCPT + 99 others); Sat, 25 Apr 2020 22:15:10 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2901 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726092AbgDZCPK (ORCPT ); Sat, 25 Apr 2020 22:15:10 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 235A67A0F8A595E4D0E7; Sun, 26 Apr 2020 10:15:07 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Sun, 26 Apr 2020 10:14:59 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH V2 net-next 0/9] net: hns3: refactor for MAC table Date: Sun, 26 Apr 2020 10:13:39 +0800 Message-ID: <1587867228-9955-1-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset refactors the MAC table management, configure the MAC address asynchronously, instead of synchronously. Base on this change, it also refines the handle of promisc mode and filter table entries restoring after reset. change logs: V2: add patch #9 to remove an unnecessary NULL check suggested by Jakub Kicinski. Huazhong Tan (1): net: hns3: remove an unnecessary check in hclge_set_umv_space() Jian Shen (8): net: hns3: refine for unicast MAC VLAN space management net: hns3: remove unnecessary parameter 'is_alloc' in hclge_set_umv_space() net: hns3: replace num_req_vfs with num_alloc_vport in hclge_reset_umv_space() net: hns3: refactor the MAC address configure net: hns3: add support for dumping UC and MC MAC list net: hns3: refactor the promisc mode setting net: hns3: use mutex vport_lock instead of mutex umv_lock net: hns3: optimize the filter table entries handling when resetting drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h | 5 + drivers/net/ethernet/hisilicon/hns3/hnae3.h | 8 +- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 2 + drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 152 +--- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 10 +- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 2 +- .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 51 ++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 868 ++++++++++++++++----- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 33 +- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 70 +- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 368 ++++++++- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h | 26 + 12 files changed, 1166 insertions(+), 429 deletions(-) -- 2.7.4