From patchwork Thu Aug 18 12:02:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devesh Sharma X-Patchwork-Id: 9287501 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 958E1607FF for ; Thu, 18 Aug 2016 12:20:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86ABE290DA for ; Thu, 18 Aug 2016 12:20:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B197290DF; Thu, 18 Aug 2016 12:20:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5996290DA for ; Thu, 18 Aug 2016 12:20:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1945993AbcHRMU5 (ORCPT ); Thu, 18 Aug 2016 08:20:57 -0400 Received: from [192.19.245.250] ([192.19.245.250]:33828 "EHLO CMRELAYP1.ad.emulex.com" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751627AbcHRMU5 (ORCPT ); Thu, 18 Aug 2016 08:20:57 -0400 X-Greylist: delayed 1077 seconds by postgrey-1.27 at vger.kernel.org; Thu, 18 Aug 2016 08:20:57 EDT Received: from neo01-el72.iig.avagotech.net ([10.192.204.126]) by CMRELAYP1.ad.emulex.com with Microsoft SMTPSVC(7.5.7601.17514); Thu, 18 Aug 2016 05:02:39 -0700 From: Devesh Sharma To: linux-rdma@vger.kernel.org Cc: dledford@redhat.com, Devesh Sharma Subject: [PATCH] RDMA/ocrdma: display ocrdma tech preview status Date: Thu, 18 Aug 2016 08:02:20 -0400 Message-Id: <1471521740-28353-1-git-send-email-devesh.sharma@broadcom.com> X-Mailer: git-send-email 1.8.3.1 X-OriginalArrivalTime: 18 Aug 2016 12:02:39.0568 (UTC) FILETIME=[6AD3C500:01D1F948] Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds a code to display ocrdma driver technology preview status on ocrdma module load. Signed-off-by: Devesh Sharma --- drivers/infiniband/hw/ocrdma/ocrdma_main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_main.c b/drivers/infiniband/hw/ocrdma/ocrdma_main.c index 07d0c6c..9b8774c 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_main.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_main.c @@ -444,6 +444,16 @@ void ocrdma_update_link_state(struct ocrdma_dev *dev, u8 lstate) ocrdma_dispatch_port_active(dev); } +void ocrdma_print_tech_preview_status(void) +{ + printk(KERN_INFO + "*************************************************************\n"); + printk(KERN_INFO + "RoCE supported at Tech Preview level in all OCE141XX Adapters\n"); + printk(KERN_INFO + "*************************************************************\n"); +} + static struct ocrdma_driver ocrdma_drv = { .name = "ocrdma_driver", .add = ocrdma_add, @@ -456,6 +466,7 @@ static int __init ocrdma_init_module(void) { int status; + ocrdma_print_tech_preview_status(); ocrdma_init_debugfs(); status = be_roce_register_driver(&ocrdma_drv);