From patchwork Sat Mar 16 03:54:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajit Khaparde X-Patchwork-Id: 138437 X-Patchwork-Delegate: ajit.khaparde@broadcom.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 786C343CBE; Sat, 16 Mar 2024 05:12:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4F33642ED3; Sat, 16 Mar 2024 05:11:54 +0100 (CET) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id 8748840265 for ; Sat, 16 Mar 2024 05:11:52 +0100 (CET) Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1dfff641d10so32835ad.2 for ; Fri, 15 Mar 2024 21:11:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1710562311; x=1711167111; darn=dpdk.org; h=mime-version:references:in-reply-to:message-id:date:subject:to:from :from:to:cc:subject:date:message-id:reply-to; bh=KneKw/VFIQ9jA1BqsKAxFy1aNEAEQVEppjFNmHoqeJ4=; b=XKC0d9Q1NT20ibeFr7sd057psBoTeAId5TFB948Iv2ijTuKKCNRyWdgSfbhKi43agm zMvSKolHkqDzi9NxJgbT5l/7rdhHcSZ/taG9DNDmZ0IZ25Mj10E9z3KdVmt6eT+K8r3C ybqfALt2+lBMIHaEc4/bH+ITcJQf2ah5POOeQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710562311; x=1711167111; h=mime-version:references:in-reply-to:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KneKw/VFIQ9jA1BqsKAxFy1aNEAEQVEppjFNmHoqeJ4=; b=RIeSnDo7o3sa51a0jySvZPDSRjhRFi0LKrNTmv5JzZH/2TxrXp2LLjU1875b4+CCC1 XQCaPlqNIj+jkm8flyyRFxApGEVDqpGcNXg6TC4H04lKY3zz4AoJO9e0kQhRx6PN7nrb YkiaewGMFiECC0YDbtPHvek7krR8I8jV5EKWVPOvGOUqZlUJVrt7iXcOqpW1PfWVbQu5 i9loqPkjDI/uSSm8GIA8OYtjKZJo8y7FncRRFQL2s5Wk27x+30B3/Zr5SjUtSWfSqAxj MYukA5BlPx2pQjcDNioeBwpGTDsDe4T424zytV0rCzQm0c5SxIoM2mgvT4Gt/B/U8wDV kDxw== X-Gm-Message-State: AOJu0Yy+T8MLAlVyYDxOpDhWU2t0VaE5XXhomV+bqmCsJBlhYxg6FE31 wxNMO+CU4J8Zgt3SoSc9ftx1LYet3i8HioUz9d8rVC3HVjA1LU0irompdt6XzYnTgdtHfomz4ar Wym2qsIjk8th9cb8AtfF13UaJ7Wr3cIHl7CLOIk+6FpdgY+MdKyF9vkVKM6nLBmk3VVhFKO/oUj tC3vvk/Fwp87j2EQPQQ1pnhC5BNVGF X-Google-Smtp-Source: AGHT+IFS+lBa5yM4Wid5C47dWKEn+Se+1BmN5qC+Xb6kb0j3amB0IWbPpJw4mlMvFJDJTZ3SXL82Ow== X-Received: by 2002:a17:902:dac9:b0:1dd:8ffd:ef8 with SMTP id q9-20020a170902dac900b001dd8ffd0ef8mr6878539plx.34.1710562310818; Fri, 15 Mar 2024 21:11:50 -0700 (PDT) Received: from localhost.localdomain ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id t1-20020a170902e84100b001dcf809f1a9sm4737142plg.46.2024.03.15.21.11.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 21:11:50 -0700 (PDT) From: Ajit Khaparde To: dev@dpdk.org Subject: [PATCH 2/2] net/bnxt: fix init failures Date: Fri, 15 Mar 2024 20:54:41 -0700 Message-Id: <20240316035441.76438-3-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.39.2 (Apple Git-143) In-Reply-To: <20240316035441.76438-1-ajit.khaparde@broadcom.com> References: <20240316035441.76438-1-ajit.khaparde@broadcom.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Fix init failures in some cases when contiguous memory may not be available for cases when a larger chunk of memory may be needed. Fixes: fe2f715ca580 ("net/bnxt: support backing store v2") Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 6 ++---- drivers/net/bnxt/bnxt_vnic.c | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index ba31ae9286..e63febe782 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -4949,8 +4949,7 @@ static int bnxt_alloc_ctx_mem_blk(struct bnxt *bp, rmem->nr_pages * 8, bp->eth_dev->device->numa_node, RTE_MEMZONE_2MB | - RTE_MEMZONE_SIZE_HINT_ONLY | - RTE_MEMZONE_IOVA_CONTIG, + RTE_MEMZONE_SIZE_HINT_ONLY, BNXT_PAGE_SIZE); if (mz == NULL) return -ENOMEM; @@ -4974,8 +4973,7 @@ static int bnxt_alloc_ctx_mem_blk(struct bnxt *bp, mem_size, bp->eth_dev->device->numa_node, RTE_MEMZONE_1GB | - RTE_MEMZONE_SIZE_HINT_ONLY | - RTE_MEMZONE_IOVA_CONTIG, + RTE_MEMZONE_SIZE_HINT_ONLY, BNXT_PAGE_SIZE); if (mz == NULL) return -ENOMEM; diff --git a/drivers/net/bnxt/bnxt_vnic.c b/drivers/net/bnxt/bnxt_vnic.c index 76905ebdd1..16373be015 100644 --- a/drivers/net/bnxt/bnxt_vnic.c +++ b/drivers/net/bnxt/bnxt_vnic.c @@ -161,8 +161,7 @@ int bnxt_alloc_vnic_attributes(struct bnxt *bp, bool reconfig) entry_length * bp->max_vnics, bp->eth_dev->device->numa_node, RTE_MEMZONE_2MB | - RTE_MEMZONE_SIZE_HINT_ONLY | - RTE_MEMZONE_IOVA_CONTIG, + RTE_MEMZONE_SIZE_HINT_ONLY, BNXT_PAGE_SIZE); if (mz == NULL) { PMD_DRV_LOG(ERR,