Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1456882ybh; Fri, 13 Mar 2020 01:25:01 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtQjvjr6yVKvi3nFK9CkrlNJefyRnX9qJoBxRI6dAwc+vOBioTwlVakf5W6gM1xpfVFD1Kn X-Received: by 2002:a9d:7b4c:: with SMTP id f12mr9408134oto.137.1584087900909; Fri, 13 Mar 2020 01:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584087900; cv=none; d=google.com; s=arc-20160816; b=TYDXykgIqu0OkA+XTyUTTs6YkajBwnDcJKPnWzV0DgJj6Mlt3iM7ihIWrpOr1Ca5c3 DZaDVH22w/cwJQl6R+dehEQW3xJkUfWMF6DjQajW+PkikXINxZVMwqMN1UGm1KFYjlbM bbB/LsknizsdfsCOgI4MVMLgFVQ7OfeYsGPKxkqAO7xw+9FVHS24MhU3s4Yv9ytMFuig FP5x8JwSgo2Fbhh70DBKUOR4Qf9kmsTMXEcK/fu6ljyzXPDK1+mqpAPC9fvtttmdPfmw 2NrmoQTwuFHC8Sf70um9gR/GwNbkcAoFHdXekUgsCPExUCuQhcSJAddROZL/U1Z/ixHA g4pw== 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; bh=+B7yzPAiRZBmjU21m1sab9USQXU4rJHErKL7V0UR7e4=; b=MnIKBhzS/1KRJUeTVoJhcJwf1PC8HWYmdaFMq6NvH0A7GnVsdQrRrjNWRkXsczIa6Q DAeKWEwkBhspRYeuz5Z0mM/QzvxK6FX8iT6YVpAMLx+chD8FeOfBtx78u0/pxVht6TGX OAhcdjFJsImTTKSjU8+EQzyIOGV4jrX65h8aC/PSgRFb7uoEfWD+mLhowkJks2uJKsop +hzaNBoJI3Ilb20cFvAAMeqbkxHkYkeol/lA33TI+wYQ5hTXelPCBoWlKo6uiMePrgGt 3UPRnbHl4RhOl5L6rqe033Ogcp1dJXu96mK8NCoT6h/Yu9sSL9N76xkNUIQ6C9ejGP4t NxPw== 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 d62si3889907oib.137.2020.03.13.01.24.47; Fri, 13 Mar 2020 01:25:00 -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 S1726488AbgCMIY1 (ORCPT + 99 others); Fri, 13 Mar 2020 04:24:27 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:38212 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726310AbgCMIY0 (ORCPT ); Fri, 13 Mar 2020 04:24:26 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id BADCD137EAF52A967879; Fri, 13 Mar 2020 16:24:22 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Fri, 13 Mar 2020 16:24:15 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 0/2] net: hns3: add two optimizations for mailbox handling Date: Fri, 13 Mar 2020 16:23:41 +0800 Message-ID: <1584087823-61800-1-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 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 This patchset includes two code optimizations for mailbox handling. Jian Shen (1): net: hns3: add a conversion for mailbox's response code Yufeng Mo (1): net: hns3: optimize the message response between pf and vf drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h | 54 ++- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 386 ++++++++++----------- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 306 ++++++++-------- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h | 4 +- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c | 50 +-- 5 files changed, 414 insertions(+), 386 deletions(-) -- 2.7.4