Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3798588imm; Mon, 1 Oct 2018 04:49:48 -0700 (PDT) X-Google-Smtp-Source: ACcGV62RG23V3mDGm023mbxPO/0C5mutnV7cPeU7DwOckCZ8bYe6UZczgCgzrFtmTbVztoJ7CBoP X-Received: by 2002:a17:902:7e49:: with SMTP id a9-v6mr11383699pln.149.1538394588758; Mon, 01 Oct 2018 04:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538394588; cv=none; d=google.com; s=arc-20160816; b=SL1NWoWX8C8oSzfHsTHHDCM8yquk1dxnDm5gHRbF5MPiiLnFnqaeJGWdFxO/w5wfOd xOaY2vo3HhYCc4w8hpBFf/g3yw15v/GHxuiu3Pku9CLNFk8BWAJKQkcnRJp3U+/ivB6V D60LSRC77f5Tb5AZrTO73/L6MKMidYqmNLKBDzwzZZuCpPqm+rtiLAcGOSsllJH7k0LJ iaAHGe5Uq1dMBoNR+QTvxQwI2hCU/UrCPZelte/ov4vNTyHYS1+8YW2BAGn+5yYQ8HII 7tlwqdPVP7uFhGxbAKROpW1oVbvOKEZn1NnKcTAaDhDt+KQyfTUv2FFOoJvg5eREG0sn faqw== 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; bh=tCrNvka1PKlViuo86F5OH3M7ZdkHGVxjfM7IZhW9yIs=; b=FscCSm215944IRrfjgN/4TWYia8QB5rE5GO/UlCnJcjbRytx7w4uScVSFM4u+bTVgy tSnQ1shT4fsfd9Oovu5XbMCm1Qt2rc9/xpDbo9PST0HpDQPfFaIseL1JqODokF547Xnw aMg+3jqO/2g/w0r/wULBIMk8Wk5yDvwWnQ0mWp6uEmDAMzBtgM25TZyE2il0g2+Klh1l jRv4PydbczbUFAkYw1cp+yoc4/maa9ppYGNyfoJVlHtK4BJr7h9onqYMAHtG/XIakIna E0C3I1J20fKknYyqBtogOgMQGbKjJfCGHh8xyrH1DIWY3VvrvJkvk8lGKOjZTLW6yJj8 YMgw== 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 v70-v6si12493506pfa.103.2018.10.01.04.49.34; Mon, 01 Oct 2018 04:49:48 -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 S1729401AbeJAS0B (ORCPT + 99 others); Mon, 1 Oct 2018 14:26:01 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:53835 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729391AbeJAS0B (ORCPT ); Mon, 1 Oct 2018 14:26:01 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id CCE196A4AB78F; Mon, 1 Oct 2018 19:48:32 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.202.226.54) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.399.0; Mon, 1 Oct 2018 19:48:26 +0800 From: Salil Mehta To: CC: , , , , , , , Jian Shen Subject: [PATCH net-next 6/7] net: hns3: Remove all flow director rules when unload hns3 driver Date: Mon, 1 Oct 2018 12:46:46 +0100 Message-ID: <20181001114647.15504-7-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20181001114647.15504-1-salil.mehta@huawei.com> References: <20181001114647.15504-1-salil.mehta@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.202.226.54] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jian Shen This patch removes all flow director rules when unload hns3 driver. Signed-off-by: Jian Shen Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index df4410e..96f07ca 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -3286,6 +3286,8 @@ static void hns3_client_uninit(struct hnae3_handle *handle, bool reset) if (netdev->reg_state != NETREG_UNINITIALIZED) unregister_netdev(netdev); + hns3_del_all_fd_rules(netdev, true); + hns3_force_clear_all_rx_ring(handle); ret = hns3_nic_uninit_vector_data(priv); -- 2.7.4