From patchwork Tue Aug 4 02:19:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "luobin \(L\)" X-Patchwork-Id: 262744 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7463C433DF for ; Tue, 4 Aug 2020 02:19:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C2CBF20792 for ; Tue, 4 Aug 2020 02:19:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728653AbgHDCTK (ORCPT ); Mon, 3 Aug 2020 22:19:10 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:8755 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728581AbgHDCTJ (ORCPT ); Mon, 3 Aug 2020 22:19:09 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 19FB768D471AA84843CB; Tue, 4 Aug 2020 10:19:07 +0800 (CST) Received: from localhost.localdomain (10.175.118.36) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Tue, 4 Aug 2020 10:18:58 +0800 From: Luo bin To: CC: , , , , , Subject: [PATCH net-next v4 0/2] hinic: mailbox channel enhancement Date: Tue, 4 Aug 2020 10:19:10 +0800 Message-ID: <20200804021912.24775-1-luobin9@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.175.118.36] X-CFilter-Loop: Reflected Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org add support to generate mailbox random id for VF to ensure that the mailbox message from VF is valid and PF should check whether the cmd from VF is supported before passing it to hw. Luo bin (2): hinic: add generating mailbox random index support hinic: add check for mailbox msg from VF .../net/ethernet/huawei/hinic/hinic_hw_cmdq.h | 8 + .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 13 + .../net/ethernet/huawei/hinic/hinic_hw_mbox.c | 310 +++++++++++++++++- .../net/ethernet/huawei/hinic/hinic_hw_mbox.h | 22 ++ .../net/ethernet/huawei/hinic/hinic_hw_mgmt.h | 2 + .../net/ethernet/huawei/hinic/hinic_sriov.c | 69 +++- 6 files changed, 422 insertions(+), 2 deletions(-)