From patchwork Sun Jul 24 23:14:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajit Khaparde X-Patchwork-Id: 12927662 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C12B9C433EF for ; Sun, 24 Jul 2022 23:15:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232095AbiGXXPG (ORCPT ); Sun, 24 Jul 2022 19:15:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbiGXXPG (ORCPT ); Sun, 24 Jul 2022 19:15:06 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E61AEE31 for ; Sun, 24 Jul 2022 16:15:05 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id y9so8909172pff.12 for ; Sun, 24 Jul 2022 16:15:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:subject:date:message-id:mime-version; bh=Yq8JEST/P2oTyPg5Uh7vN+rfJsxc2eaFbdbP5dGbccI=; b=cTTHPttQu8GOpzWi6yBrWNFP7pPw/xPs/GQ9U8jc/mwcA4yRpi28xsxd28mJCLHaLJ q0+yDrAtqmcPfzYx9VPdgHeHx3POJmoz1AaZct+DI7jjeQ+myjEDHSHWUw2VF5K2rRdr eZuQFYh4m++uxMPkJWsJ6S9S/faTq0G8sCke0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=Yq8JEST/P2oTyPg5Uh7vN+rfJsxc2eaFbdbP5dGbccI=; b=cF2R/o96vTBdVOzCOwlf1TWYQB6tqag/QCkMadN5vnSfZCac1L/chkbyMM1utr3D66 +QLBcybKrbUgH5mpdsYwxb5q8S5c4lw1h6xLDm4+JbAztDKaObA/CBKMcnPqpqf/RqaG s7HJ9L0pIyOYv2g+Dzt1rt5A6Yty/fb3Iz5z9V5TGxzmFXg+ztPAzpdkdFCoKA8vA/wi NFAtbjRlMHOD0+4ibcFdC9q9TjKFnZV0JzylqJUZUP5R9HRqTYLKQrw/5p/b7eCRKwzy vUvU6iokolatlpKm1mwffustGzPasOoGANAih4PtRqxGXlkm2eBzSztAhXu0lRfbApBf OPrw== X-Gm-Message-State: AJIora/IPTfkPzIUbyywXFaxEaG9qBwLI1dM19CclWLykyJb+y9jpvwG BhXEM8F2KDuZZcKxT1IYGeS7sw== X-Google-Smtp-Source: AGRyM1uMJLDU39gQzGt6eANPLxTuT8Gqct1PY35tMNr0owb8XzNEm25ZPPBNI2F3y0m7lakZFzg6Gw== X-Received: by 2002:a63:8b4a:0:b0:41a:64fa:400e with SMTP id j71-20020a638b4a000000b0041a64fa400emr8725634pge.397.1658704504851; Sun, 24 Jul 2022 16:15:04 -0700 (PDT) Received: from localhost.localdomain ([136.52.99.246]) by smtp.gmail.com with ESMTPSA id g11-20020a170902d5cb00b0016a6cd546d6sm7661395plh.251.2022.07.24.16.15.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jul 2022 16:15:04 -0700 (PDT) From: Ajit Khaparde To: michael.chan@broadcom.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jgg@ziepe.ca, selvin.xavier@broadcom.com, leon@kernel.org, linux-rdma@vger.kernel.org, andrew.gospodarek@broadcom.com Subject: [PATCH 0/2] Add Auxiliary driver support Date: Sun, 24 Jul 2022 16:14:56 -0700 Message-Id: <20220724231458.93830-1-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.32.1 (Apple Git-133) MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Add auxiliary device driver for Broadcom devices. The bnxt_en driver will register and initialize an aux device if RDMA is enabled in the underlying device. The bnxt_re driver will then probe and initialize the RoCE interfaces with the infiniband stack. Please apply. Ajit Khaparde (2): net/bnxt: Add auxiliary driver support RDMA/bnxt_re: Use auxiliary driver interface drivers/infiniband/hw/bnxt_re/bnxt_re.h | 9 +- drivers/infiniband/hw/bnxt_re/main.c | 405 +++++++----------- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 8 +- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 8 + drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 200 +++++++-- drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h | 8 +- 6 files changed, 339 insertions(+), 299 deletions(-)