Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp400080ybm; Thu, 28 May 2020 05:50:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZLMJB9idBBHms8r9ITzxZgUqYZw5pDJhlCvbY+d8KV/2/8cgj6uE9OT3R5m993zfFcp3n X-Received: by 2002:aa7:d44a:: with SMTP id q10mr3017807edr.386.1590670230695; Thu, 28 May 2020 05:50:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590670230; cv=none; d=google.com; s=arc-20160816; b=0k8Ry0Gmc5e3yqQnCufAjtTtNDEbHLQ+a0ZYLVXDfTC/UjD/STytWx1oswHmwbPypF mINQ8r8oWiv+GtDduH16jsEifBsX+NlzUoUr2qJzqdJgo0iBmr5itVYfP6Wmqx5nfjP9 v9gEFWza0Knu0Nwa5SzcME1rSSJ9fOluvWWg7x1mIWiyM2rCNsN3c79rwn31FFhVOqxP CHkyTD28Rs+CRu3mtvPcPvnhpcarUldzvI/2koJy1Zgu2pz74L37rLkf8IYbQEDzvQEh xrHZONWzokML9ngwlYWNzWFijiwfhPQOI4rcgdIBvuHqMVtzdY1phhZtKhWIdH+paHhD oadA== 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=L+y0lKQleaOw+A2S5S0gZ/W9NwTXN+oR3/7/xm/EmuXGmbX59Iwp0dUbiukcDf+wBl CNL+1ufwDpY/dMbUzWwm2Jhk0gspt+mh9HPD6tzEeomk7I5mvtcBXT3OcpbtBdslSqt+ zehC2Zs1o9x1ZoZxHuupCxYFX85VVKH373EwcwwWTSNGeSKCAOlBRVyL/yIBK2AJjgII 4mTAJBNOp/zOxVLEeqgZK53qfzcWmolAptP1pdH5l+5yoD+dN+vwysOlPsj032H5hN6U hfR5a1s2NHi4rnv2rE/nH59j6HELl2vmj6eVxUMxfQeIvc6UuEE5nUj8Bom0X7eDuxsh n7qg== 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 d17si638557edz.508.2020.05.28.05.50.04; Thu, 28 May 2020 05:50:30 -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 S2389877AbgE1Mqr (ORCPT + 99 others); Thu, 28 May 2020 08:46:47 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5364 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389865AbgE1Mqq (ORCPT ); Thu, 28 May 2020 08:46:46 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 3E072D9CC113CEA01371; Thu, 28 May 2020 20:46:43 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Thu, 28 May 2020 20:46:37 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 06/11] net: hns3: remove some unused fields in struct hns3_nic_priv Date: Thu, 28 May 2020 20:45:07 +0800 Message-ID: <1590669912-21867-7-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590669912-21867-1-git-send-email-tanhuazhong@huawei.com> References: <1590669912-21867-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