From patchwork Thu Mar 23 09:12:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13185302 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 8809AC6FD1C for ; Thu, 23 Mar 2023 09:12:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231295AbjCWJMv (ORCPT ); Thu, 23 Mar 2023 05:12:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231320AbjCWJMu (ORCPT ); Thu, 23 Mar 2023 05:12:50 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A7216E9E for ; Thu, 23 Mar 2023 02:12:44 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id bn14so4685741pgb.11 for ; Thu, 23 Mar 2023 02:12:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1679562764; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dgBfutv5D+mkU18zVn5/YxxhJwNiBeLI2XARi/hQEow=; b=KX7oFlEQpg9UmZkTjEVJSreti+UH/0TaVqf1buy4ouFwH4XOBvSJQFICRUpPxQ/0V1 uli959+57t2/SfPKIjiIjNc2jYaNGOHNWzNsMKQJTJhTV8fIyXHI1LSEKFEgI9kcl6De VOcfamlqMsJGYeFBH69M84ZWyKiR8HakIOFcM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679562764; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dgBfutv5D+mkU18zVn5/YxxhJwNiBeLI2XARi/hQEow=; b=5lSeAiG/1opTtVQaji43pzZUf4z+S7B/SkoMOT06VeOpVZ48z/6ROFDwJZ8QIKCjRI SNoaS1uPbR/0UGzJh5hzQtQYoiS+M3hRH/0nWFMQGQ1T5Bt6eQREVxHtYOESkdjPi0ml mRbxVsatZcujFGkFYVR7qVzmdY/praNUBBcYYfPHwyU5WMq5PvtDp6ZauP7FNjmtmYah yhHOngNn+LGGsJF60Tn055AK/zNc/pWYXXHYBzmifiyFNOP/3ZfFwDPPNJtB/VOFukJy S9lCBIJVXg11U2TJNxPRyxyWlzwO8NvSjBSRcm7rID1lTfVt4aFGfe53VCOycQgLSfkK Bf9Q== X-Gm-Message-State: AO0yUKUkkUHnA+WO1p/YtOcWL8dN00MaFPs5nLLDNgwSYn/m2O9UnBgR L/P6pBHqpvl0khY3KpqawDwdKA7PhkI6w4Qw3f4= X-Google-Smtp-Source: AK7set/FUAXrvWf+dipo96h3IbViQQ+MgXmeJShgLwcQWut/fNwrt0GNUHR8WxGVNSzzTsZIKBhQRw== X-Received: by 2002:a62:19d6:0:b0:625:9055:3bc9 with SMTP id 205-20020a6219d6000000b0062590553bc9mr5210675pfz.27.1679562764055; Thu, 23 Mar 2023 02:12:44 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id l20-20020a62be14000000b00627e9ab34b3sm9055114pff.91.2023.03.23.02.12.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Mar 2023 02:12:43 -0700 (PDT) From: Selvin Xavier To: jgg@ziepe.ca, leon@kernel.org Cc: linux-rdma@vger.kernel.org, andrew.gospodarek@broadcom.com, Selvin Xavier Subject: [PATCH for-next 0/7] RDMA/bnxt_re: Enable Congestion control by default Date: Thu, 23 Mar 2023 02:12:12 -0700 Message-Id: <1679562739-24472-1-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org This series includes the code reorgnization in the driver control path. HW interface header file is updated to the latest version. Also, adds support for a new command format which is required for enabling RoCE congestion control. This series is prepared on top of the resize_cq (https://lore.kernel.org/all/1678868215-23626-1-git-send-email-selvin.xavier@broadcom.com/) patch which is under review. Please review and apply. Thanks, Selvin Selvin Xavier (7): RDMA/bnxt_re: Update HW interface headers RDMA/bnxt_re: Remove HW queue mapping from RoCE Driver RDMA/bnxt_re: Convert RCFW_CMD_PREP macro to static inline function RDMA/bnxt_re: Reduce number of argumets to control path command APIs RDMA/bnxt_re: RoCE slow path TLV support RDAM/bnxt_re: Use tlv apis while processing the slow path commands RDMA/bnxt_re: Enable congestion control by default drivers/infiniband/hw/bnxt_re/main.c | 101 +- drivers/infiniband/hw/bnxt_re/qplib_fp.c | 161 +- drivers/infiniband/hw/bnxt_re/qplib_rcfw.c | 97 +- drivers/infiniband/hw/bnxt_re/qplib_rcfw.h | 66 +- drivers/infiniband/hw/bnxt_re/qplib_sp.c | 337 +- drivers/infiniband/hw/bnxt_re/qplib_sp.h | 68 +- drivers/infiniband/hw/bnxt_re/qplib_tlv.h | 162 + drivers/infiniband/hw/bnxt_re/roce_hsi.h | 7423 +++++++++++++++---------- drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h | 81 + 9 files changed, 5108 insertions(+), 3388 deletions(-) create mode 100644 drivers/infiniband/hw/bnxt_re/qplib_tlv.h