Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3617828pxk; Mon, 7 Sep 2020 20:04:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDabNsHKbZfYTDFF3wO89dB1RmaWokK1e5xc4wQSwxDgEWTTu3Dn3I0EPV37vNs+i1PYMt X-Received: by 2002:a05:6402:1779:: with SMTP id da25mr23892723edb.75.1599534279750; Mon, 07 Sep 2020 20:04:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599534279; cv=none; d=google.com; s=arc-20160816; b=OW9kmIVsuwozMwdU/cjC8+ufw0Bkt98M0gtifNwF+g5FFy6bI7zYmdvKVHxBCLdjYZ hMiySget/YOjsNe19tQibM6O384accbQeqo0KFMWTqW9pR7+zzZU401P0jocaxLxoDNC kEOHWAHwnUvVxsQalxHRJRWTJx4F2A3R7FRht1GszdCv9I27H8IRgwU6D4AS8lrifMVw QiQJfCv4HCbnBBnX+mkoICCDT0MHu103IYFKgkHIDzcc+UipRTcRPe47jMrAl/uR5q19 UwUQ4P4XH61M/mAubIlFHcWnU3AEAcBwWqxBNTalKcKFxx0h06/R0izvKmzdyrMLhZJf LmVA== 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=ECVhvCUajcm/egCghDkcoeyqgyxuWqCQ7x8GM9B4nGI=; b=QpjW88qdCRNTpYIwQ3sbYbNxplIjrhfzsDnLD9jyp0gxtSeZ8n1dGxy1ahiayj6s93 FoSyY6Tb0PqbhHtWG6eQRCfqVyfjvu9UVrEXTQ5s2w9CtdN7pDr7Dvzqa3zrJJHF8yL/ ban+9Dybx3BYZfX41wDLit5/p0GDohHCsHkbXJU+7q72WTtISwLqiPF1LsJgfEQWvON5 pFzb6Enpe8e7mk02xWqfHNEgjux6GZezuoKEDcxzd6TLfM6Za+nVHtQqJF5Kd0zhjJ7K jnqoZdMz4ra9SMeHaYtzE8Wzr4jk+QGJFgPLZDOvUduiemuLOd/60ueZPUyoiasXuSW6 DXmw== 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 qt23si9561279ejb.285.2020.09.07.20.04.17; Mon, 07 Sep 2020 20:04:39 -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 S1728737AbgIHDDE (ORCPT + 99 others); Mon, 7 Sep 2020 23:03:04 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:47872 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728241AbgIHDCa (ORCPT ); Mon, 7 Sep 2020 23:02:30 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id CC0E3FF86FAEEF52E2C4; Tue, 8 Sep 2020 11:02:27 +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; Tue, 8 Sep 2020 11:02:20 +0800 From: Huazhong Tan To: CC: , , , , , , Guojia Liao , Huazhong Tan Subject: [PATCH net-next 7/7] net: hns3: remove some unused function hns3_update_promisc_mode() Date: Tue, 8 Sep 2020 10:59:54 +0800 Message-ID: <1599533994-32744-8-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1599533994-32744-1-git-send-email-tanhuazhong@huawei.com> References: <1599533994-32744-1-git-send-email-tanhuazhong@huawei.com> 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 From: Guojia Liao hns3_update_promisc_mode is defined, but not be used, so remove it. Signed-off-by: Guojia Liao Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 14 -------------- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 1 - 2 files changed, 15 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 1d66f84..93825a4 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -623,20 +623,6 @@ void hns3_request_update_promisc_mode(struct hnae3_handle *handle) ops->request_update_promisc_mode(handle); } -int hns3_update_promisc_mode(struct net_device *netdev, u8 promisc_flags) -{ - struct hns3_nic_priv *priv = netdev_priv(netdev); - struct hnae3_handle *h = priv->ae_handle; - - if (h->ae_algo->ops->set_promisc_mode) { - return h->ae_algo->ops->set_promisc_mode(h, - promisc_flags & HNAE3_UPE, - promisc_flags & HNAE3_MPE); - } - - return 0; -} - void hns3_enable_vlan_filter(struct net_device *netdev, bool enable) { struct hns3_nic_priv *priv = netdev_priv(netdev); diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h index cef6f9a..98ca6ea 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h @@ -601,7 +601,6 @@ void hns3_set_vector_coalesce_rl(struct hns3_enet_tqp_vector *tqp_vector, u32 rl_value); void hns3_enable_vlan_filter(struct net_device *netdev, bool enable); -int hns3_update_promisc_mode(struct net_device *netdev, u8 promisc_flags); void hns3_request_update_promisc_mode(struct hnae3_handle *handle); #ifdef CONFIG_HNS3_DCB -- 2.7.4