From patchwork Wed Jan 31 15:28: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: 10194139 X-Patchwork-Delegate: leon@leon.nu 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 50825601A0 for ; Wed, 31 Jan 2018 15:29:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E23528716 for ; Wed, 31 Jan 2018 15:29:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 32D2F2872E; Wed, 31 Jan 2018 15:29:16 +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 D6DEB28716 for ; Wed, 31 Jan 2018 15:29:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932066AbeAaP3N (ORCPT ); Wed, 31 Jan 2018 10:29:13 -0500 Received: from mail-qk0-f196.google.com ([209.85.220.196]:44860 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752497AbeAaP3N (ORCPT ); Wed, 31 Jan 2018 10:29:13 -0500 Received: by mail-qk0-f196.google.com with SMTP id n188so3823396qkn.11 for ; Wed, 31 Jan 2018 07:29:13 -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=ayt+uSNWa8S8D3O6xp2mSbK4OW3/rEQ40NybfNldACQu7oErP//vI048JRyELl/t4e bf6vUL7l8DERbOkKViFKkJ+RpXdWqeXve3DPDmN7wMv26FhKYHvRaQz9fIM6Y28P0lor tZEssdJ+NE1zY93gtZPkP9fp9u6qOsdwcyik8= 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=IMQ/BNcA8mMN0kGPVN3d5yfsXFxWBzLeELFnpkdexWmv8R/5eAt9+RLSZLt1EJxXuC aF4ArILWbijVkw/o6uQ8IrxXZIfRoWiDRrikPJXxnbh2vYmExOSDKft1+/NIvdl0k8N7 EF/l8M4D1b0+DuyPQHWcUjA2MoqQZk4IjLJsBDOsX7IIz2j2iHPqQhDDNePQi9QXYbIl hqUPT9uAVzVBcLF6ss+3lmm42MsUYqdQ+PewrFgUL6i9kr4LMwDfVSCqOOJWzgPOXvJG Y0LTcjYl37U7WjBcJExjoP4sSLB8qmyzE1kPi9VMXGO9aine9mOr2f7Vh9M1dCuCHZZS gZCQ== X-Gm-Message-State: AKwxytdoOqVQXdVIijd6RyaL/fp5pocTnZc0CTf+bC6y0LV0BX3mcJjH 01sUYj3KPxhvtwxVujWjrF5tIw== X-Google-Smtp-Source: AH8x225HGfm3tEdAWbKThXOGEN7K5PrDHrU68vp/7q3ATTZaNs2FBV7J1TC1WR5BexwyI5wJpTeC4w== X-Received: by 10.55.48.1 with SMTP id w1mr6032813qkw.280.1517412552720; Wed, 31 Jan 2018 07:29:12 -0800 (PST) Received: from neo00-el73.dhcp.broadcom.net ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id a27sm11324645qkj.94.2018.01.31.07.29.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Jan 2018 07:29:12 -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 v2 3/3] libbnxt_re: Update and sort device pci-id table Date: Wed, 31 Jan 2018 10:28:51 -0500 Message-Id: <1517412531-25195-4-git-send-email-devesh.sharma@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1517412531-25195-1-git-send-email-devesh.sharma@broadcom.com> References: <1517412531-25195-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 */ {} };