From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5334E45F6A for ; Thu, 30 Jan 2025 19:42:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2C46F4025A; Thu, 30 Jan 2025 19:42:22 +0100 (CET) Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mails.dpdk.org (Postfix) with ESMTP id 7DBB34025A for ; Thu, 30 Jan 2025 19:42:21 +0100 (CET) Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-2f43d17b0e3so2009401a91.0 for ; Thu, 30 Jan 2025 10:42:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1738262540; x=1738867340; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=yjUe5cDj+h2AgUFThOFecj8uiqhH3HlfA6ju32jpFDo=; b=j79i/54nSZw6G49DDG36iQxmnFNR3ulRSp65AsvnnHw0BJDPZksjpEvjXw7kgCJXyg VVLAlHTAGTchWwxz/+FJ/VSLxhNdAtxyZL217sxzIIPH3wjLWBTo6XEbetDKrSgAbOyv 4v7eeB/sHGttflyE9zfbtVxdfyIME9xB/D+6aMIsWg7jdZfjhpODwbNOcptfrsJLmXlS oA5ymNP92YZD3krs73vA7xBpHUNFxYr2hATxrg3Pu6mJTMbZ/izmEF3Vf0G/0uVi6/+C muE/i/DUkeCzCtol1cQTbvzCeeELQKszwM5WwjBQBhZP8viN1mcub9gw9+zKmzcrxNLl f9vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738262540; x=1738867340; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yjUe5cDj+h2AgUFThOFecj8uiqhH3HlfA6ju32jpFDo=; b=ZglSYeuiY3QFtpzyFXDGzWgibqUim/4GxtIUdk6dt6zGDcycZ8xEQ23PA8RLZcFzlD kPUDXFWoT57kuG34beOkwxmK7nmgnzTIUVhezlPU6GhD9ugi8r/KDDlBb4Dd2TvaVlW3 Zqa2kWAv4jYA/z8K5G2Pkzjz/jA1aKWEnqhEFJ27rd8znW7jv127oA/+PmtqX2u1jOxa uWW9hswMhB+GVD3pkwma4vJG+flRUvBNGbDlXhZxiJQj8qXSY/E92jpf9AtkhCI25TgH eP5fq4g68CzYxEdsA+KjEaS4vYCl2A8S8ahtva3Zf0K6Shy/QhDM5ieKoyG9ZcCr2XlP 7uZA== X-Forwarded-Encrypted: i=1; AJvYcCUaFjqFSpIJEG2Q63mNUiiNO6B+FrKhbQHJJsJEwEe9jFyCtVmGlwtPrb0b87ZQm/s2F+Gatb0=@dpdk.org X-Gm-Message-State: AOJu0YzY/T794L+W87tVZquAhuoGPeiJvaRIGO+w7sClQZdN4F8PGo2A W35dt3F14I5ENCo4KQef1Od8Gt63oApw59dQQnWX5oZvT1EsfykBnKqmv0BmISo= X-Gm-Gg: ASbGncv0ObV/fB10TTiu0D/uZM8gTIX1ULfVgZANTqY7freGCYKrjXru/HYl+Lnhyz4 8jr1TBksA9m0PUwzRcyuIGxQWOIh+kSDVbYnJBX03DCqCL/KuY6xyAP+xVGvO9twqnTcAwxdc1g PaXIDR50DUyIcVmW6d1k7QgrShBFymGCQ9IAJm0yix6BIR5lI0rY9XLXW678b4Xdi1Ufh8SO2Fh LyZNgS42fO6JR1NPIYzj9R+KrOMmTIpro+8fGc4uefw2ef3h9l6ATVTDJfuZTjN8qVi0NMMgv8w XFAXFId4irrc5pIorlf253l+cLAzdfamohFPdciZ+aEHun9Kqt3ev5SxNbeBydnsqJuq X-Google-Smtp-Source: AGHT+IGzbJRxiEUMd8tpwW0+3oB2LZ+AbCQTq7YOi3TEYi+XqcTCcvvD/fc8sbY1KIqRN5GNJb8ZxQ== X-Received: by 2002:a17:90b:5485:b0:2ea:b564:4b31 with SMTP id 98e67ed59e1d1-2f83abff361mr11888865a91.19.1738262540667; Thu, 30 Jan 2025 10:42:20 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f83bc97da0sm4304500a91.3.2025.01.30.10.42.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jan 2025 10:42:20 -0800 (PST) Date: Thu, 30 Jan 2025 10:42:18 -0800 From: Stephen Hemminger To: Joshua Washington Cc: Jeroen de Borst , Rushil Gupta , Junfeng Guo , Xiaoyun Li , dev@dpdk.org, stable@dpdk.org, Praveen Kaligineedi Subject: Re: [PATCH v4] net/gve: allocate RX QPL pages using malloc Message-ID: <20250130104218.53836e8c@hermes.local> In-Reply-To: <20250109194638.3262043-1-joshwash@google.com> References: <20250107190258.2107909-1-joshwash@google.com> <20250109194638.3262043-1-joshwash@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Thu, 9 Jan 2025 11:46:38 -0800 Joshua Washington wrote: > Kaligineedi > > Allocating QPL for an RX queue might fail if enough contiguous IOVA > memory cannot be allocated. This can commonly occur when using 2MB huge > pages because the 1024 4K buffers are allocated for each RX ring by > default, resulting in 4MB for each ring. However, the only requirement > for RX QPLs is that each 4K buffer be IOVA contiguous, not the entire > QPL. Therefore, malloc will be used to allocate RX QPLs instead. > > Note that TX queues require the entire QPL to be IOVA contiguous, so it > will continue to use the memzone-based allocation. > > v2: Updated RX path to use malloc exclusively > > v3: Changed commit description to match updated code > > v4: Add fixes tag to allow 2M hugepages to be used on older versions of > DPDK > > Fixes: a46583cf43c8 ("net/gve: support Rx/Tx") > Cc: junfeng.guo@intel.com > Cc: stable@dpdk.org > > Signed-off-by: Praveen Kaligineedi > Signed-off-by: Joshua Washington > --- The standard practice is to put revision information below the cut line "---" so it doesn't end up in the commit message. I fixed that and applied it to next-net