Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp446810ybm; Thu, 28 May 2020 06:56:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwB/0agSM5oFYcGl5moFXlbsH5XU8uw73v+dyGS4nYr7/Nztb8Dc4r9OxxxClH046QkbWW0 X-Received: by 2002:a17:906:8246:: with SMTP id f6mr3052409ejx.350.1590674212536; Thu, 28 May 2020 06:56:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590674212; cv=none; d=google.com; s=arc-20160816; b=XGv0tpPNPmlYl+H8Q2Q88ecDvRjc5QpNxnflxJp+E4PfsDl+L5ogfl5G6fj6FMjJ/g 6XmVhIcKnVBHnzD7lqrcvcuA0YDvuJ0nlxVOELT8oB+vI1V9/jlprF3Jim69I1Kbj0YX j3V7X+3H9RLzbrQPtq58VANKF0TU/JKUOe3/GKRuz6kLNsPnoyykeD7Q6TRP+MNTPpts s50v7vagzg5HX3CdwJWaN6LTLdc0jUWoOa/t5zc6hzut9CIzbUkrVNh/LSBYfV/OSTWn 8CdDDVOKh857c4r+zwzcvr1mb4DrlSreGsATRmb1CDplgqOWRz/cZ5QJYJrpX2xeIxy+ uH0g== 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=HXdMjJWGuEwq/TrGQTCVJqxNJyr8a1U6qg87wEi3O4k=; b=EqfuYYOhIBPpiMfhBr0LGzhmIL8XMhqoBSEEP7wO0v1tIrqLOaGCH9QkQSnhoQ17Ey dt51nBdSI1/g759N3pY7SXnqxdIwlsSss6A1YaScxLbr52J3OXrk4TGXvt/qofqorxKp QfkTCbGX4p8plIB4Wy1hlFgogrZ0lYZJHGSUd9BxzIW4Geh9SeKidBmf7WdYTUgoeXLE vzU6a0pnn50CfIvt7TPaXZs4sdhS6hUFpXEzMGPFLtCiJLUF3JiW4yL0HrRrvGWWW67i TkeVHiWbNuwaVbq8RkfwsPFo0QDHwjHAwgHTHib1AHHEQasdVb2h4aUuzRFj5H2VA1Mt IjRQ== 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 b22si3778448edr.89.2020.05.28.06.56.28; Thu, 28 May 2020 06:56:52 -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 S2390656AbgE1NvT (ORCPT + 99 others); Thu, 28 May 2020 09:51:19 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5376 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390533AbgE1NvB (ORCPT ); Thu, 28 May 2020 09:51:01 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 3FC9FD799B746F9EE206; Thu, 28 May 2020 21:50:59 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Thu, 28 May 2020 21:50:50 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 07/12] net: hns3: remove some unused fields in struct hns3_nic_priv Date: Thu, 28 May 2020 21:48:14 +0800 Message-ID: <1590673699-63819-8-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590673699-63819-1-git-send-email-tanhuazhong@huawei.com> References: <1590673699-63819-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 Remove some fileds which defined in struct hns3_nic_priv, but not used, and remove the related definition of struct hns3_udp_tunnel and enum hns3_udp_tnl_type. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h index 60f82ad..66cd439 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h @@ -469,21 +469,8 @@ struct hns3_enet_tqp_vector { unsigned long last_jiffies; } ____cacheline_internodealigned_in_smp; -enum hns3_udp_tnl_type { - HNS3_UDP_TNL_VXLAN, - HNS3_UDP_TNL_GENEVE, - HNS3_UDP_TNL_MAX, -}; - -struct hns3_udp_tunnel { - u16 dst_port; - int used; -}; - struct hns3_nic_priv { struct hnae3_handle *ae_handle; - u32 enet_ver; - u32 port_id; struct net_device *netdev; struct device *dev; @@ -495,19 +482,10 @@ struct hns3_nic_priv { struct hns3_enet_tqp_vector *tqp_vector; u16 vector_num; - /* The most recently read link state */ - int link; u64 tx_timeout_count; unsigned long state; - struct timer_list service_timer; - - struct work_struct service_task; - - struct notifier_block notifier_block; - /* Vxlan/Geneve information */ - struct hns3_udp_tunnel udp_tnl[HNS3_UDP_TNL_MAX]; struct hns3_enet_coalesce tx_coal; struct hns3_enet_coalesce rx_coal; }; -- 2.7.4