From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C66B8221F0A for ; Tue, 2 Dec 2025 14:44:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764686655; cv=none; b=BYYt49SUpb8FUBHO5Jp2N+8EopiZTg6yPQdj6nFusJ0jLIVz3hb8JhLQNqq8O25V859lXPAhtlIRTcjkgCIX1yB6oaBsBTXrNePjG7iopQlovIBXUgIZXCoelxmtbWwZ5vxh8X5K/PWb7sajhPTPJuC4jKit+9zNXMyHrSUBXxA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764686655; c=relaxed/simple; bh=NZj4/NW55RYoRrLPZhkJUjtKoD9IgR8bd7QKEau5f4w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gdSwt8DHSMsBb6PpFUE5XGiJNgy69WQ04VN6KhhdS2gI+ks/xQRjZQBtDrxEpoXJByIPUeehnoGpiO2gISqWtfkr84VFQly1xFBHsDO2UrcbxzroDTDx6BhmFESFcPWsdMQobV/lpN6lpqEJV69/8PCOAxP/XS3AE5KCBOPk+GE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=DvLpU6P1; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=LYDfZlca; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="DvLpU6P1"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="LYDfZlca" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764686651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mjNiAor2TkYqFzHs2B3P/P9B9Xp/a4exT6Ioq6XTaKs=; b=DvLpU6P1nB2YqddbZfs2RpJvChucfKB5cwlOp/PtSX1mZ0BiEAWT2oe6E51UYseTQZI8ds MXfwrqCHYnLVwi+EdjfwGeWMTXWIILvHHOyPUKq0YY8nrV+KrTGka97riJYhCkhS2effnD IATPjEfOz6WKvGD32RqS3q9UHonLGpE= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-86-uKUzrvi4PHW7wx0G4tGXbA-1; Tue, 02 Dec 2025 09:44:10 -0500 X-MC-Unique: uKUzrvi4PHW7wx0G4tGXbA-1 X-Mimecast-MFC-AGG-ID: uKUzrvi4PHW7wx0G4tGXbA_1764686649 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-4776b0ada3dso41826415e9.0 for ; Tue, 02 Dec 2025 06:44:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1764686649; x=1765291449; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=mjNiAor2TkYqFzHs2B3P/P9B9Xp/a4exT6Ioq6XTaKs=; b=LYDfZlca5UbF4aaOnf0jOqD4gg9ZQkqctRFArK/5FouFONoeAo94rbHM1t/OU2KwY+ hycZiTPSTurfPFte4blWcmr/f+kZy1z3SKrxrO17YnGeCJebx+Vem03AA+Vh5RlNoJze WU1sqqQUX4lH4Ohexgr2nYhWCEznqHj21dk+RrNUhGy/ou5Y1zXJVOvw9XRwdminCHfn CoeFHkSpVpahVaFfyR0g//mTg4ztJ39XLUVP9Pvv4d4OBKQm35kQgkHHlwFzowdRE2TU xwIguekhSVyyqLtJic+Sp5CI631PEDcIFsdO9tzkTpQHohXMkUgc3zD1rGhK2H3Lmofe U4DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764686649; x=1765291449; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mjNiAor2TkYqFzHs2B3P/P9B9Xp/a4exT6Ioq6XTaKs=; b=mubEvvViXuhu2esuUyYgo1rkLMFYbjxZNaSX9NhBbneFzsX2QJJ89L6z1qGsIG46fM kmdReOb1a8YhEqOU88wtOin+4JOndUvW7nLOroSbhPVYoY8q0ZCDa2dKcdbxs7cj1tbN 1BwU+v8yeHOm8Ob9T9SweUrxAGsWuWlv58ndzbBRXWlXC++kD+8xOBCxH7qWe6P64BJF rYGn1J67210aA26dfPfvGrNhoaLW40mZnRBkQufwVwzE/SBFkQAAoEdD3KFgX6fnsN58 f6sg0jSofSX1Yo96ZnRDCRvJOlHCuuKHLgdrrK+/Ho9eATCVY57vhwtjBgNeUZ06wcCf JK4w== X-Forwarded-Encrypted: i=1; AJvYcCWXYtTpjdnt0c3FcrQbOvYmZvuopwL7Evj01oPlvL7stkagqP3ptBp6ffIj0GwmhXbEjoNsLk40Pfw=@vger.kernel.org X-Gm-Message-State: AOJu0Yy6QOxmc8Vqmup0Ojb+9i9b1nqyBdFQM8aXkrmb4s4zSf1CSZqK FOzPjyg9aYgtCzyFlw1ob+xQx5TwL9bE4oF4MUTYxYWuf9Bz+AJVf0D/06nZ35yWIw6M8DfvPTA ddZnaB8O7Z4dqhkB47At9LOe2gHHyFWSx30Ltbguvbjc46BVOM1XQV71jSono4Q== X-Gm-Gg: ASbGnctWKbE0RQf40GtFlkREc1w45SyL7ZhPz9fg4vmg/bmVlRGgp5hGL0glQ1k7X34 WLEh0swn+EmzprtxCje1X11pqv5P0HAPgKqIGcP9oMcogglRjKveQH56/TpdnYpBeHMrLdp4YDd oeFrcmSYXyFTC5O0TX9NgqIIJTJOCwQApmXF/Tmxf08r7b6ucVmwnb/ISPw6DZCIqSBcCK6Trgg 0fsDYFFQgwmv3OrIKz5IejSIHQsprRbYEeyQAZxb8K+8evku8nobHnBWuksl8nrH62MhsnfL2dU tsnPmSd7i3ZiW51M9oBn+GV0+UJDZl6aJXG98khxNjjYN0X45P6jgVecGjkJkxQMyAMq59nyQPy n4KBGrIgKifHTgg== X-Received: by 2002:a05:600c:190b:b0:46e:2815:8568 with SMTP id 5b1f17b1804b1-47926f99134mr29819945e9.10.1764686649244; Tue, 02 Dec 2025 06:44:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IG1rSpvcyj7MIWwm/bcqJ3Gqt/h4Kwl1pmES70ih45QAJCy1rFgmux40sFPF3KzuExq8RZOQg== X-Received: by 2002:a05:600c:190b:b0:46e:2815:8568 with SMTP id 5b1f17b1804b1-47926f99134mr29819585e9.10.1764686648788; Tue, 02 Dec 2025 06:44:08 -0800 (PST) Received: from [192.168.88.32] ([212.105.155.136]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4790b0c3a1dsm380823035e9.10.2025.12.02.06.44.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Dec 2025 06:44:08 -0800 (PST) Message-ID: <743e8c49-8683-46b7-8a8f-38b5ec36906a@redhat.com> Date: Tue, 2 Dec 2025 15:44:06 +0100 Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v7 0/9] Add support for providers with large rx buffer To: Pavel Begunkov , netdev@vger.kernel.org Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Jonathan Corbet , Michael Chan , Pavan Chebbi , Andrew Lunn , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Ilias Apalodimas , Shuah Khan , Mina Almasry , Stanislav Fomichev , Yue Haibing , David Wei , Haiyue Wang , Jens Axboe , Joe Damato , Simon Horman , Vishwanath Seshagiri , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, io-uring@vger.kernel.org, dtatulea@nvidia.com References: Content-Language: en-US From: Paolo Abeni In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/1/25 12:35 AM, Pavel Begunkov wrote: > Note: it's net/ only bits and doesn't include changes, which shoulf be > merged separately and are posted separately. The full branch for > convenience is at [1], and the patch is here: > > https://lore.kernel.org/io-uring/7486ab32e99be1f614b3ef8d0e9bc77015b173f7.1764265323.git.asml.silence@gmail.com > > Many modern NICs support configurable receive buffer lengths, and zcrx and > memory providers can use buffers larger than 4K/PAGE_SIZE on x86 to improve > performance. When paired with hw-gro larger rx buffer sizes can drastically > reduce the number of buffers traversing the stack and save a lot of processing > time. It also allows to give to users larger contiguous chunks of data. The > idea was first floated around by Saeed during netdev conf 2024 and was > asked about by a few folks. > > Single stream benchmarks showed up to ~30% CPU util improvement. > E.g. comparison for 4K vs 32K buffers using a 200Gbit NIC: > > packets=23987040 (MB=2745098), rps=199559 (MB/s=22837) > CPU %usr %nice %sys %iowait %irq %soft %idle > 0 1.53 0.00 27.78 2.72 1.31 66.45 0.22 > packets=24078368 (MB=2755550), rps=200319 (MB/s=22924) > CPU %usr %nice %sys %iowait %irq %soft %idle > 0 0.69 0.00 8.26 31.65 1.83 57.00 0.57 > > This series adds net infrastructure for memory providers configuring > the size and implements it for bnxt. It's an opt-in feature for drivers, > they should advertise support for the parameter in the qops and must check > if the hardware supports the given size. It's limited to memory providers > as it drastically simplifies implementation. It doesn't affect the fast > path zcrx uAPI, and the sizes is defined in zcrx terms, which allows it > to be flexible and adjusted in the future, see Patch 8 for details. > > A liburing example can be found at [2] > > full branch: > [1] https://github.com/isilence/linux.git zcrx/large-buffers-v7 > Liburing example: > [2] https://github.com/isilence/liburing.git zcrx/rx-buf-len Dump question, hoping someone could answer in a very short time... Differently from previous revisions, this is not a PR, just a plain patch series - that in turn may cause duplicate commits when applied on different trees. Is the above intentional? why? Thanks, Paolo