Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3611247imm; Mon, 2 Jul 2018 02:14:04 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfs0twL6yHLw6dTLXFxihSRnt/HVpYQevx9gL/KVA0Yp+Oe5WZZQkaWEjNmweONcfChhU7c X-Received: by 2002:a62:f909:: with SMTP id o9-v6mr475448pfh.141.1530522844373; Mon, 02 Jul 2018 02:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530522844; cv=none; d=google.com; s=arc-20160816; b=aQpxGjmr8WldlboR903Uyt8KswtKSRCj9Ddgb43HGiwelZWgyzENTWo+mEpr4bV4/a 3WfpaoWoidSURJuOCfOWHMaRLfJNwfYIGZIdmtC1pUsGoPRhZHytTbsx8D2GtOPOgL3e qAgV0DctP9PagSNtceRa/XYR3KmSBSYdb6C11eUwP0LBPwo1ID+IdogU3kIIO+jDS5dY XotT/+JbzayjIhtxMu+Rax9tdrhaxvi3UL7saD2I7S7RDOrtm7LC2VOOsiLUvjLINaxT 4H0/c9rAwJRTK5mcF7tEwVLx6011xPwkDQfJYTEl4YyakCbAlyaoFmRLKCJjNDeZoHxn GxGw== 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:arc-authentication-results; bh=7hLbZQhQ95Y5hXvtUdhbSBnnuEpjPgvKNcrjESiLCuE=; b=kXpd914+4tLwniJ78D64vfzafhHCT1t4RdorKiLDMbJSYnQ3refkOFGYqIplr2orZd GK9j7v+aZtJrZAfmFCrvBB5+Hva3OJREClYjj1lSB8qadtxY0+gpAuxWkQ73rPeq21eP xn7WJ+ADHe88PaIZCD8D8mnSLShO8SDbdOoocZOkvACi1m6hrdXdmklDerUF0zvlnc7D G23rx05X5N8QTpONsq8yL6GIHgeCTGdUEMaGwT9QB5JUwmGD4DfHeUYSenlTyXd6ATfn O9tkPExaeGeD7DP75wiXm8/Ypy9WJPeDib5r0zlVTVaItwJ2wxZ6cd4uj7rxQf71h3Kx hklQ== 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 b7-v6si12809767pgq.564.2018.07.02.02.13.43; Mon, 02 Jul 2018 02:14:04 -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 S1753047AbeGBHTS (ORCPT + 99 others); Mon, 2 Jul 2018 03:19:18 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:9146 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752862AbeGBHTL (ORCPT ); Mon, 2 Jul 2018 03:19:11 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 682564D852CA; Mon, 2 Jul 2018 15:18:57 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.382.0; Mon, 2 Jul 2018 15:18:49 +0800 From: Peng Li To: CC: , , , , , Subject: [PATCH V2 net-next 0/9] net: hns3: a few code improvements Date: Mon, 2 Jul 2018 15:50:17 +0800 Message-ID: <1530517826-69226-1-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.71.200.31] 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 removes some redundant code and fixes a few code stylistic issues from internal concentrated review, no functional changes introduced. --- Change log: V1 -> V2: 1, remove a patch according to the comment reported by David Miller. --- Huazhong Tan (8): net: hns3: remove unused hclge_ring_to_dma_dir net: hns3: remove useless code in hclge_cmd_send net: hns3: remove some redundant assignments net: hns3: simplify hclge_cmd_csq_clean net: hns3: remove a redundant hclge_cmd_csq_done net: hns3: remove some unused members of some structures net: hns3: give default option while dependency HNS3 set net: hns3: use dma_zalloc_coherent instead of kzalloc/dma_map_single Peng Li (1): net: hns3: modify hnae_ to hnae3_ drivers/net/ethernet/hisilicon/Kconfig | 15 +- drivers/net/ethernet/hisilicon/hns3/hnae3.c | 28 +- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 18 +- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 244 ++++++++-------- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 9 +- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 69 ++--- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 317 ++++++++++----------- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 24 +- .../ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 38 +-- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c | 8 +- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h | 7 +- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c | 26 +- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 25 +- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c | 2 +- 14 files changed, 395 insertions(+), 435 deletions(-) -- 1.9.1