Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp105330ybz; Thu, 23 Apr 2020 19:29:28 -0700 (PDT) X-Google-Smtp-Source: APiQypKgdv5c1H4nISQB226NoZNaIbLeKq5H8+6Mdi8Ph0b7TEmip1pRWfQDKKbPgV1eTUZTjQnw X-Received: by 2002:aa7:d7c1:: with SMTP id e1mr5638407eds.8.1587695368268; Thu, 23 Apr 2020 19:29:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587695368; cv=none; d=google.com; s=arc-20160816; b=SJlw0DBOTEs3ZoaOWeT2wu9b+JbZTmYtandetuPe2wz9A3qqhjNWV2wbKwJ6VqFin0 Hl4oUjk9kWyagJqk18QR1DWqS89p/YZzbY3F/4YiYZCZTdYBPXwi/Zqc6NrH1T1ayOCf WqyzcCxRGcMJ+WkAnuu6RL+JuXGCUeh2pMpy8sIYzQ+ncyFLwyTfUv7jkXBfVSzQrBMc ADlG9Xb6wEbXy1tXy4ZupEpQ1h7USdWOwoCiB999T/KG4AwS7iDJUSfF8qILPOS7GRBN 18ubDLGUS8VsdP0Nqu7Ca9sqPsTuo7+pv+UryR9p/qP6xpIk57/LXgdhw4nuGOUp+m+U DcxQ== 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=mbsbtxrV6mvWUQ4AdL2q3hmhfTo9frwtuZzTQL7o2+Q=; b=y/80JL2kqWx6K+qtHJ4NoZxA8WjjIE7iPTlh50HR0JL4KSFTJzRatK47rfP0HmsA+k PM2Z9E69wAC+TN9Vfqo7wImuitu00s6hoQ9aT80JrLe6fBlriQ35moAVByvUlW5mav1B qL/TDurn1aKeEcEhJZvk0MbRfNtrIG9mb7moWaaaS/bLL9F/VRFpp288AZKml6weI5Ql RXXNoDIzPZgxr3Dx2h+8b1zITDVbfphSDJx6oNXbdYCk3H4YAc6UA8vdGVt2SV9Qfi6x 3bV6J8P1CPFV1glOEoci6oyjzf+BhXwlz9YNJlx2/kIf9/CecPC50htQLAQ9ntdSji92 D2Ew== 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 u12si2187001edb.262.2020.04.23.19.29.03; Thu, 23 Apr 2020 19:29:28 -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 S1726384AbgDXCY3 (ORCPT + 99 others); Thu, 23 Apr 2020 22:24:29 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2883 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725982AbgDXCY2 (ORCPT ); Thu, 23 Apr 2020 22:24:28 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 94F5A3606B598A880B2C; Fri, 24 Apr 2020 10:24:24 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Fri, 24 Apr 2020 10:24:15 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 0/8] net: hns3: refactor for MAC table Date: Fri, 24 Apr 2020 10:23:05 +0800 Message-ID: <1587694993-25183-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. 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 | 867 ++++++++++++++++----- .../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(+), 428 deletions(-) -- 2.7.4