Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1157124pxb; Fri, 27 Aug 2021 02:34:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWhbMMU1AnRaFYSZvxdgGjtT8RkwSJn/SZ34DgS6tUajgbW73YF0Dk9LsbYBeAdayPZA0m X-Received: by 2002:a92:902:: with SMTP id y2mr6515541ilg.304.1630056874920; Fri, 27 Aug 2021 02:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630056874; cv=none; d=google.com; s=arc-20160816; b=S90/sm+zregwrtkODofUGhCpty35JY3ZiR5LLQGM1xfIR2saL2CUtuS7rwFh7HxGWX BuziQShmwzemqChG9gGhrMCbD1DlyxGzIOwlApDV284cRiwiZAhYh45/2ihsQyDS/6di pCbY0WQhYS8qEYoBaK4xc6yuUEmz+RMP94HarDU8Mdr5Bw6wSnA4Q4oPSo2Y2y1H9VXI fO61RnAQlgGFWXtTJnL5IH7o6uoTvuvIbmOok3Q0Wo68lHNx7bg9CoxbHqUXdzphjlq2 te3mLcRFYsB4andldL+2Cvp6cWJaYyblZiOltZua04z+UEaWTH4qQwGdF2GEzNR1eL/x FTQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=95K1vMG3hIEeowGG6JKYhrpeZtiDypchRY2dvCozco8=; b=DdiGN2oIfMxeCKgEJjhIVpVGkSl1fLLFT6RO8KDw1otP0JSf/KFLnpDF1r3/C7UY63 q9YBpeEe0iiLzBNLUKbcrJfuh3+KpQHb2pQF+B8SSc0C3aYpaW5O/Q6KEKQm3NgzJXb5 ExXylS08MA9nq/XkllJIIIgu2tEPXbDVoX5+XJDJXWIwwRKjF0r0oe1YWyP7DWlkgXKv i1uwwnRNDiJ5W6WQuwcFlSFatFn0BVhknbESYUhNcGpypOWd7RaJsCUtfa5Ys5yIQJGv 2MkAOKo84ls254AIoRp+0qEXsv316huZIjJftHsyLQ/BN/BWYc/FfDQLvihyp/64I/9k PP5Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o16si5454260ils.161.2021.08.27.02.34.23; Fri, 27 Aug 2021 02:34:34 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244944AbhH0Jdo (ORCPT + 99 others); Fri, 27 Aug 2021 05:33:44 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:14426 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244738AbhH0JdM (ORCPT ); Fri, 27 Aug 2021 05:33:12 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4GwvXZ5LgjzbdVF; Fri, 27 Aug 2021 17:28:30 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Fri, 27 Aug 2021 17:32:16 +0800 Received: from localhost.localdomain (10.67.165.24) by dggemi759-chm.china.huawei.com (10.1.198.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 27 Aug 2021 17:32:15 +0800 From: Guangbin Huang To: , CC: , , , Subject: [PATCH net-next 0/8] net: hns3: add some cleanups Date: Fri, 27 Aug 2021 17:28:16 +0800 Message-ID: <1630056504-31725-1-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggemi759-chm.china.huawei.com (10.1.198.145) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series includes some cleanups for the HNS3 ethernet driver. Guangbin Huang (1): net: hns3: add macros for mac speeds of firmware command Hao Chen (1): net: hns3: uniform type of function parameter cmd Huazhong Tan (1): net: hns3: add hns3_state_init() to do state initialization Peng Li (5): net: hns3: remove redundant param mbx_event_pending net: hns3: use memcpy to simplify code net: hns3: remove redundant param to simplify code net: hns3: package new functions to simplify hclgevf_mbx_handler code net: hns3: merge some repetitive macros drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 5 +- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 29 +++-- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 23 ++-- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 58 +++++----- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 22 ++-- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h | 10 -- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 22 ++-- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h | 22 ++-- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c | 122 ++++++++++----------- 9 files changed, 151 insertions(+), 162 deletions(-) -- 2.8.1