From patchwork Mon Oct 9 07:43:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yunsheng Lin X-Patchwork-Id: 823090 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3y9WN26Bxrz9ryQ for ; Mon, 9 Oct 2017 18:00:17 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753971AbdJIG7Q (ORCPT ); Mon, 9 Oct 2017 02:59:16 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7521 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753949AbdJIG7P (ORCPT ); Mon, 9 Oct 2017 02:59:15 -0400 Received: from 172.30.72.59 (EHLO DGGEMS410-HUB.china.huawei.com) ([172.30.72.59]) by dggrg05-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DIT81449; Mon, 09 Oct 2017 14:59:11 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.301.0; Mon, 9 Oct 2017 14:56:56 +0800 From: Yunsheng Lin To: CC: , , , , , , , , , , , Subject: [PATCH net-next 0/7] A few cleanup for hns3 ethernet driver Date: Mon, 9 Oct 2017 15:43:54 +0800 Message-ID: <1507535041-204956-1-git-send-email-linyunsheng@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090204.59DB1E3F.0561, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 6dbde04487401d01bd74a34ecac13fca Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patchset contains a few cleanup for hns3 ethernet driver. No functional change intended. Yunsheng Lin (7): net: hns3: Cleanup for shifting true in hns3 driver net: hns3: Add hns3_get_handle macro in hns3 driver net: hns3: Cleanup indentation for Kconfig in the the hisilicon folder net: hns3: Consistently using GENMASK in hns3 driver net: hns3: Cleanup for struct that used to send cmd to firmware net: hns3: Cleanup for endian issue in hns3 driver net: hns3: Cleanup for non-static function in hns3 driver drivers/net/ethernet/hisilicon/Kconfig | 6 +- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 16 +- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 130 +++---- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 385 +++++++++++---------- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 4 +- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c | 26 +- .../ethernet/hisilicon/hns3/hns3pf/hns3_dcbnl.c | 18 +- .../net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 61 +--- .../net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.h | 3 + .../ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c | 42 +-- 10 files changed, 344 insertions(+), 347 deletions(-)