From patchwork Wed Jan 31 14:51:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devesh Sharma X-Patchwork-Id: 10194089 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 3FEB7603EE for ; Wed, 31 Jan 2018 14:52:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 321662872A for ; Wed, 31 Jan 2018 14:52:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26F142872D; Wed, 31 Jan 2018 14:52:19 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 9E8C92872A for ; Wed, 31 Jan 2018 14:52:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753080AbeAaOwQ (ORCPT ); Wed, 31 Jan 2018 09:52:16 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:36185 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753076AbeAaOwP (ORCPT ); Wed, 31 Jan 2018 09:52:15 -0500 Received: by mail-qt0-f193.google.com with SMTP id z11so22150820qtm.3 for ; Wed, 31 Jan 2018 06:52:14 -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:in-reply-to:references; bh=ye4HgndSwRFg2U5x7Lgn53M5AYDOAzAY7+ESzYqL3Jc=; b=LAQW+brDPdKWfYKiV3OTrwghQZF2mlckmIDuEw1hulQawlnajuyuih5qvqv63h7N+D oeo7vL0LU2MIV/N9T1p3bNFgAPb843j8ucOOar0uttIkOd4EPlj3K20P/xYa9rpLKbp6 C+qVmop2V4b4Yj5LG4F4s/qLuQsTwgAy2Jv8c= 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:in-reply-to :references; bh=ye4HgndSwRFg2U5x7Lgn53M5AYDOAzAY7+ESzYqL3Jc=; b=j9SHRSTMbyLYtVPFmdrMxGX0VX6/9lkNj9nipbvtKjkOC9KVSVd+RzqjaT1YMoKtCO sVZloqX6ZDZpiUr7TYsHQxglnEW/TEZ4FWanPNHG96XbqClFExGQpm4ckObD4pj9th/I 0tkp1jNq8JruagJQ8voFA6Aop1Lv0nvP4HfPOboYv8oQFQGC7B6B5+nObnZwhXS3rfRu cRjaHmQtOroUf+pE3k2H2GmjSO8WnFEbld/gvCFaelzMav+cK35aZcIkepqg8SuLLF6t mSyBoFQOO9x9yCDOW/8ryWaDiasOkNL687nETr+31ZOmGX72Fgyi5CYANsNhMs0LniPF jJxA== X-Gm-Message-State: AKwxyteCEbk/Cp8H+UZLF/bhpajekYLligKLRu6dFc4qXy0jgix/j7d/ oY9HVEORhCYbjhStE/Wr3luKFQ== X-Google-Smtp-Source: AH8x2274yJUF2mA9v0zoxqjkxjk4zcEJc9vQByVc2ghmHHjYUdLFQlBaY7xwLju1/XBTGNc6HGaRUQ== X-Received: by 10.200.25.171 with SMTP id u40mr51836166qtj.172.1517410334493; Wed, 31 Jan 2018 06:52:14 -0800 (PST) Received: from neo00-el73.dhcp.broadcom.net ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id s204sm7926932qke.4.2018.01.31.06.52.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Jan 2018 06:52:13 -0800 (PST) From: Devesh Sharma To: dledford@redhat.com, jgg@mellanox.com, leon@kernel.org Cc: linux-rdma@vger.kernel.org, Devesh Sharma Subject: [rdma-core 3/3] libbnxt_re: Update and sort device pci-id table Date: Wed, 31 Jan 2018 09:51:51 -0500 Message-Id: <1517410311-23623-4-git-send-email-devesh.sharma@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1517410311-23623-1-git-send-email-devesh.sharma@broadcom.com> References: <1517410311-23623-1-git-send-email-devesh.sharma@broadcom.com> 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 Sort the pci-id table in increasing order of the device IDs. Add new PCI-ID for BCM880xx series of devices. Signed-off-by: Devesh Sharma --- providers/bnxt_re/main.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/providers/bnxt_re/main.c b/providers/bnxt_re/main.c index 520bf57..eae50b0 100644 --- a/providers/bnxt_re/main.c +++ b/providers/bnxt_re/main.c @@ -54,24 +54,29 @@ #define CNA(v, d) VERBS_PCI_MATCH(PCI_VENDOR_ID_##v, d, NULL) static const struct verbs_match_ent cna_table[] = { + CNA(BROADCOM, 0x1605), /* BCM57454 NPAR */ + CNA(BROADCOM, 0x1606), /* BCM57454 VF */ + CNA(BROADCOM, 0x1614), /* BCM57454 */ CNA(BROADCOM, 0x16C0), /* BCM57417 NPAR */ + CNA(BROADCOM, 0x16C1), /* BMC57414 VF */ CNA(BROADCOM, 0x16CE), /* BMC57311 */ CNA(BROADCOM, 0x16CF), /* BMC57312 */ - CNA(BROADCOM, 0x16DF), /* BMC57314 */ - CNA(BROADCOM, 0x16E5), /* BMC57314 VF */ - CNA(BROADCOM, 0x16E2), /* BMC57417 */ - CNA(BROADCOM, 0x16E3), /* BMC57416 */ CNA(BROADCOM, 0x16D6), /* BMC57412*/ CNA(BROADCOM, 0x16D7), /* BMC57414 */ CNA(BROADCOM, 0x16D8), /* BMC57416 Cu */ CNA(BROADCOM, 0x16D9), /* BMC57417 Cu */ - CNA(BROADCOM, 0x16C1), /* BMC57414 VF */ - CNA(BROADCOM, 0x16EF), /* BCM57416 NPAR */ + CNA(BROADCOM, 0x16DF), /* BMC57314 */ + CNA(BROADCOM, 0x16E2), /* BMC57417 */ + CNA(BROADCOM, 0x16E3), /* BMC57416 */ + CNA(BROADCOM, 0x16E5), /* BMC57314 VF */ CNA(BROADCOM, 0x16ED), /* BCM57414 NPAR */ CNA(BROADCOM, 0x16EB), /* BCM57412 NPAR */ + CNA(BROADCOM, 0x16EF), /* BCM57416 NPAR */ CNA(BROADCOM, 0x16F0), /* BCM58730 */ CNA(BROADCOM, 0x16F1), /* BCM57452 */ + CNA(BROADCOM, 0xD800), /* BCM880xx VF */ CNA(BROADCOM, 0xD802), /* BCM58802 */ + CNA(BROADCOM, 0xD804), /* BCM8804 SR */ {} };