From patchwork Sat Mar 9 13:37:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devesh Sharma X-Patchwork-Id: 10845919 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3F7F21669 for ; Sat, 9 Mar 2019 13:38:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12B1A2C493 for ; Sat, 9 Mar 2019 13:38:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF8B22C4CC; Sat, 9 Mar 2019 13:38:11 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 5D6942C493 for ; Sat, 9 Mar 2019 13:38:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726294AbfCINiJ (ORCPT ); Sat, 9 Mar 2019 08:38:09 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:42623 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726289AbfCINiJ (ORCPT ); Sat, 9 Mar 2019 08:38:09 -0500 Received: by mail-pf1-f195.google.com with SMTP id n74so213442pfi.9 for ; Sat, 09 Mar 2019 05:38:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=ANDe+6lj+Z2FSRECLtwQUE+3zPVQNMwzemHVkWpUNxE=; b=Kf+3RlyiuPlrFT3jkAE87Ak3UTo2QgHOCa7ZvL3PDvU0BlXrjw/MgqJ9ZmLlkRmWOe 60tPdE5OIdWc7pe7P24Uwj3Hvy1ZEfRn9j/XQ/PUFLPJ+2ug8HA0ORwp6wuNUdXKf01w hVm7Tzx657UNzUfhHXheVqShrANuuulzsXI/4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ANDe+6lj+Z2FSRECLtwQUE+3zPVQNMwzemHVkWpUNxE=; b=G6N3JAHoEFSCmokSUJix+ReB+rAAQps+X22oelPsnbjq5WZwj06YlcCGuT2FuAbJlw WaQ9XPGE7I/y+YapGcO23+3AKxKrKPtxuP39Uhncn0/YDOlCku5lVJA/xb8rKTwiPI/1 0WykrQ/+yae92ItayKcVuk/KPcBu1crKmOlFm8Y1i2vQGcwN2d4fYwZ5r6EnDotLKY21 weysiOuKiuoWDZbTqMhEXsb3MnhGq0KCDLbaD1tDj/IjYFBNfr0bBV19vyDSg+FvsXP1 bEQtxLQUzbYjHWccjqgcUkAoEpJUUa2My/xORKCbb6hq/Xio+8deNzpPu2y66HJCPPrj tjdA== X-Gm-Message-State: APjAAAWFyrX3HZZ5Hz3qIyo+KJxSmLv1y8ZazxGPPYjQjvZ5JC6LGs2W b+WaeLFIYwU+hSCsQX3OPxYjPaRA6b91PmzmjNB9laYEefz7+27DMxt6dOHvhAOnRCZ+KJcr3YK 6vskS0BPFtgUNkCOm+k1G301IOJ6A8mQesUE06+1OEGRZj775SQYuoPlXADcL5AzpXD4sUmO55X m4rnk= X-Google-Smtp-Source: APXvYqyxoElIbcuNm9CldC/JDFhTjqx3IHmBXOBhumUFmcIIIQ2YcfONWK6XyIDIpj1AjWS+zk2Nsg== X-Received: by 2002:a63:ef05:: with SMTP id u5mr21662050pgh.177.1552138687602; Sat, 09 Mar 2019 05:38:07 -0800 (PST) Received: from neo00-el73.dhcp.broadcom.net ([192.19.252.250]) by smtp.gmail.com with ESMTPSA id v8sm1069749pfm.174.2019.03.09.05.38.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Mar 2019 05:38:06 -0800 (PST) From: Devesh Sharma To: linux-rdma@vger.kernel.org Cc: jgg@mellanox.com, Devesh Sharma Subject: [PATCH] perftest: add Broadcom's netxtreme pci ids Date: Sat, 9 Mar 2019 08:37:49 -0500 Message-Id: <1552138669-22239-1-git-send-email-devesh.sharma@broadcom.com> X-Mailer: git-send-email 1.8.3.1 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 perftest needs to match the vendor id and device id to set the supported inline size for a given adapter. Making entries for all the broadcom boards to allow wqes with inline data. Signef-off-by: Devesh Sharma --- src/perftest_parameters.c | 25 +++++++++++++++++++++++++ src/perftest_parameters.h | 3 ++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/src/perftest_parameters.c b/src/perftest_parameters.c index 5749267..e682155 100755 --- a/src/perftest_parameters.c +++ b/src/perftest_parameters.c @@ -1543,6 +1543,29 @@ enum ctx_device ib_dev_name(struct ibv_context *context) case 32882 : dev_fname = QLOGIC_AH; break; case 32883 : dev_fname = QLOGIC_AH; break; case 32912 : dev_fname = QLOGIC_AH; break; + case 5638 : dev_fname = NETXTREME; break; + case 5652 : dev_fname = NETXTREME; break; + case 5824 : dev_fname = NETXTREME; break; + case 5825 : dev_fname = NETXTREME; break; + case 5827 : dev_fname = NETXTREME; break; + case 5839 : dev_fname = NETXTREME; break; + case 5846 : dev_fname = NETXTREME; break; + case 5847 : dev_fname = NETXTREME; break; + case 5848 : dev_fname = NETXTREME; break; + case 5849 : dev_fname = NETXTREME; break; + case 5855 : dev_fname = NETXTREME; break; + case 5858 : dev_fname = NETXTREME; break; + case 5859 : dev_fname = NETXTREME; break; + case 5861 : dev_fname = NETXTREME; break; + case 5867 : dev_fname = NETXTREME; break; + case 5869 : dev_fname = NETXTREME; break; + case 5871 : dev_fname = NETXTREME; break; + case 5872 : dev_fname = NETXTREME; break; + case 5873 : dev_fname = NETXTREME; break; + case 5968 : dev_fname = NETXTREME; break; + case 55296 : dev_fname = NETXTREME; break; + case 55298 : dev_fname = NETXTREME; break; + case 55300 : dev_fname = NETXTREME; break; default : dev_fname = UNKNOWN; } } @@ -1708,6 +1731,8 @@ static void ctx_set_max_inline(struct ibv_context *context,struct perftest_param ((user_param->connection_type == XRC) ? DEF_INLINE_SEND_XRC : DEF_INLINE_SEND_RC_UC) ; break; default : user_param->inline_size = 0; } + if (current_dev == NETXTREME) + user_param->inline_size = 96; } else { user_param->inline_size = 0; diff --git a/src/perftest_parameters.h b/src/perftest_parameters.h index a8c4610..f15fb73 100755 --- a/src/perftest_parameters.h +++ b/src/perftest_parameters.h @@ -291,7 +291,8 @@ enum ctx_device { CONNECTX5EX = 16, CONNECTX6 = 17, BLUEFIELD = 18, - INTEL_ALL = 19 + INTEL_ALL = 19, + NETXTREME = 20 }; /* Units for rate limiter */