From mboxrd@z Thu Jan 1 00:00:00 1970 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 smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 47047CAC5B9 for ; Fri, 26 Sep 2025 09:40:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 08B04849F1; Fri, 26 Sep 2025 09:40:59 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id aLLK-All1oXh; Fri, 26 Sep 2025 09:40:58 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 0637D849FA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1758879658; bh=bfnGggrEWUuSTcwCWFUw26kUzRfzuZNMtwAcFeMvGfk=; h=From:To:Cc:In-Reply-To:References:Date:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=lif36FMudpRJfpdLtxqnqCjxuUKYEU6kxHOjpV+wqiWzf+YQNlLI5jdcieuakrm5Q FAJZKcSb5OMyGVDSMnvGpN0y0qE8xolzva2iLj6lKcBGczvK6OHSBWzAKSwdtnmGVs Q0L9YtB1B5YvBOepAvhxo57khCo5cgHjHJhpYydcShC4MAhk/qt12iZBvJahf9k9Th eBHNLfFFEt5Kbz+q40oqo2GJcWjIHOEIZlN6K1tvFfnQ2mgCKuNedfP/SLWjGY34aF awZbsM/jEgimVEZafBtOzO/LXPbEX1HJm+V0vApuf2wpg9SOW/Mq1YP3LPErf3ljgm kX1UlLohDDfMQ== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 0637D849FA; Fri, 26 Sep 2025 09:40:58 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists1.osuosl.org (Postfix) with ESMTP id 20C3412D for ; Fri, 26 Sep 2025 09:40:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 06A64849F1 for ; Fri, 26 Sep 2025 09:40:57 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id L_wg7BiBzff4 for ; Fri, 26 Sep 2025 09:40:56 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::634; helo=mail-ej1-x634.google.com; envelope-from=jakub@cloudflare.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org CC3E2849E1 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org CC3E2849E1 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by smtp1.osuosl.org (Postfix) with ESMTPS id CC3E2849E1 for ; Fri, 26 Sep 2025 09:40:55 +0000 (UTC) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-b346142c74aso378659166b.2 for ; Fri, 26 Sep 2025 02:40:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758879654; x=1759484454; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bfnGggrEWUuSTcwCWFUw26kUzRfzuZNMtwAcFeMvGfk=; b=rFBDfhuaxCc5zhhpcGw7egieD6dnf50Qiw2vOBfdFJjKH6nRp3MwDjtvMoT5TQK3uH 7px4mV3glX7ESXbKZJGnmI81hDipsIUnMxwPYZqTiRTEQjsRA+ZoDbQDWMF3ud+mLl9E gA652h/2j5l0Ld56wv9aBtGlbJgdDOm1xW9KF2T86nrVsPjGAuC4bKkjIcsy95F0U59Z WHepye0AqjB2aRx0jZq5BiQyMUwFK80PJVQN9uLnNyb+g8QoHPeL69tnnOAIOZc3WJwX EHSbeVRuIxUfJukfxiGtYro+hvBsF+rpn/r97NN83MmbUdfJWQQTNePGzmsJknyob2ST l/Eg== X-Forwarded-Encrypted: i=1; AJvYcCWXQR4d0lZz5TICOReztHR7rCIc7igTEEc6C51MbOe8MhQeClfjt558RuvQTegaUtR5/6ZE+0RvH4h/8tM+e58=@lists.osuosl.org X-Gm-Message-State: AOJu0YzNGtf429xqfME2JqoGn9f7AOgnBhF9mHClLo3Jm+5JmVdBr+tG tPifQqn9gW9c2odCxSCCCT0UbXNhzVwAeDj8ekd63znEEKp4QnfsDW/GpmHK4TisI8A= X-Gm-Gg: ASbGncu7bjnvt+LfZUP+3r085Td0PhYecbKDN6f1kxmgKdnKf+XwnuBIsgISL9W7w4r 6OHoQIzimg8fqkKVvwrVO0w6905rH3OocSTuhMX+uK3kP5mUfkBPzE/yoPhMqEhctJwImLeDEkH 0+/J+FuHPlmV5MPLT2SDVPPlfSwE57y6jB+PFOyk+qgOEnfzJvMp/ngl1dL6TxnOOnSSOM0akcM 2hV6HeRqK5EMthY/y58Pf/co7wV9VYOq84DY67He54590BYlJZxRd6hFT7O5Sz7X6ym3zvLH8z3 rZLypJ5ERHm2DPhtNrAwkbqiGGGKkUrzVuhJNdEvh6ygq5YVfvtLan4fdNJ2H1kTy8TazAwKFwe bx5MEYJpW2WI6Sa4= X-Google-Smtp-Source: AGHT+IEx87dvLbs8zYXX1kmFHzSkQDWXCcEaHIBwECYQqOzBzrboZ8xaGC921BePUzyI0T1ED/vkEQ== X-Received: by 2002:a17:907:3e21:b0:b34:99e3:3a88 with SMTP id a640c23a62f3a-b34bbccf844mr658946166b.58.1758879653689; Fri, 26 Sep 2025 02:40:53 -0700 (PDT) Received: from cloudflare.com ([2a09:bac6:d677:2432::39b:a2]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b37b3b46ba0sm131571766b.2.2025.09.26.02.40.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Sep 2025 02:40:52 -0700 (PDT) From: Jakub Sitnicki To: Jacob Keller Cc: Michal Kubiak , , , , , , , , , kernel-team@cloudflare.com In-Reply-To: <182d8f19-aca7-482e-8983-3806ebb837ba@intel.com> (Jacob Keller's message of "Thu, 25 Sep 2025 10:22:16 -0700") References: <20250925092253.1306476-1-michal.kubiak@intel.com> <877bxm4zzk.fsf@cloudflare.com> <182d8f19-aca7-482e-8983-3806ebb837ba@intel.com> Date: Fri, 26 Sep 2025 11:40:51 +0200 Message-ID: <87plbd361o.fsf@cloudflare.com> MIME-Version: 1.0 Content-Type: text/plain X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google09082023; t=1758879654; x=1759484454; darn=lists.osuosl.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=bfnGggrEWUuSTcwCWFUw26kUzRfzuZNMtwAcFeMvGfk=; b=UXZQ+zwQxUlGqVjEYwMMB0pOWbPKGvg0+z3PvUWunqC7tShz0HTKazx5OjV6oKI0eM jycUaheV4r6kNbHDVvj+ADj5I1kWNrfpXJzhE+rEgaujrxgMY1u2SZOJ0pSkZoWWOLI+ a2oDSvIb4uvHCU2zYI6crlCc5NBMc2VFB07J0Qb2MmVTwbw/HT3KZS4Gf6d0KSBaiH2x NJGZ6kAoOi6M6q56zEn5LrG8LlRw3AmqT+RNhjUrGVjQaf8F5XDrVy4czj15Qr0FPPI2 Vdlc/JgxzjgPI3j5pUeBC/fK/a91pZt9XqNC3i/1No9BnBSBPM5tsURlhMyqUZfCbASs lOpw== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=reject dis=none) header.from=cloudflare.com X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=cloudflare.com header.i=@cloudflare.com header.a=rsa-sha256 header.s=google09082023 header.b=UXZQ+zwQ Subject: Re: [Intel-wired-lan] [PATCH iwl-next v3 0/3] ice: convert Rx path to Page Pool X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" On Thu, Sep 25, 2025 at 10:22 AM -07, Jacob Keller wrote: > On 9/25/2025 2:56 AM, Jakub Sitnicki wrote: >> On Thu, Sep 25, 2025 at 11:22 AM +02, Michal Kubiak wrote: >>> This series modernizes the Rx path in the ice driver by removing legacy >>> code and switching to the Page Pool API. The changes follow the same >>> direction as previously done for the iavf driver, and aim to simplify >>> buffer management, improve maintainability, and prepare for future >>> infrastructure reuse. >>> >>> An important motivation for this work was addressing reports of poor >>> performance in XDP_TX mode when IOMMU is enabled. The legacy Rx model >>> incurred significant overhead due to per-frame DMA mapping, which >>> limited throughput in virtualized environments. This series eliminates >>> those bottlenecks by adopting Page Pool and bi-directional DMA mapping. >>> >>> The first patch removes the legacy Rx path, which relied on manual skb >>> allocation and header copying. This path has become obsolete due to the >>> availability of build_skb() and the increasing complexity of supporting >>> features like XDP and multi-buffer. >>> >>> The second patch drops the page splitting and recycling logic. While >>> once used to optimize memory usage, this logic introduced significant >>> complexity and hotpath overhead. Removing it simplifies the Rx flow and >>> sets the stage for Page Pool adoption. >>> >>> The final patch switches the driver to use the Page Pool and libeth >>> APIs. It also updates the XDP implementation to use libeth_xdp helpers >>> and optimizes XDP_TX by avoiding per-frame DMA mapping. This results in >>> a significant performance improvement in virtualized environments with >>> IOMMU enabled (over 5x gain in XDP_TX throughput). In other scenarios, >>> performance remains on par with the previous implementation. >>> >>> This conversion also aligns with the broader effort to modularize and >>> unify XDP support across Intel Ethernet drivers. >>> >>> Tested on various workloads including netperf and XDP modes (PASS, DROP, >>> TX) with and without IOMMU. No regressions observed. >> >> Will we be able to have 256 B of XDP headroom after this conversion? >> >> Thanks, >> -jkbs > > We should. The queues are configured through libeth, and set the xdp > field if its enabled on that ring: > >> @@ -622,8 +589,14 @@ static unsigned int ice_get_frame_sz(struct ice_rx_ring *rx_ring) >> */ >> static int ice_vsi_cfg_rxq(struct ice_rx_ring *ring) >> { >> + struct libeth_fq fq = { >> + .count = ring->count, >> + .nid = NUMA_NO_NODE, >> + .xdp = ice_is_xdp_ena_vsi(ring->vsi), >> + .buf_len = LIBIE_MAX_RX_BUF_LEN, >> + }; > > > If .xdp is set, then the libeth Rx configuration reserves > LIBETH_XDP_HEADROOM, which is XDP_PACKET_HEADROOM aligned to > NET_SKB_PAD, + an extra NET_IP_ALIGN, which results in 258 bytes of > headroom reserved. That's great news. We've been observing a growing adoption of custom XDP metadata ([1], [2]) at Cloudflare, so the current 192B of headroom in ICE was limiting. [1] https://docs.ebpf.io/linux/helper-function/bpf_xdp_adjust_meta/ [2] https://docs.kernel.org/networking/xdp-rx-metadata.html#af-xdp From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C35226C391 for ; Fri, 26 Sep 2025 09:40:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758879657; cv=none; b=NjaydJ/fvSldECOvFCpT6bjZcw2I/I4e8z5b6v4X4J/NPO1YNqqERM5aOmmHUGXR+peuy6+YnXcFjDW/Ga7ZHQCYJVEK+04JdAFz6frMH4coyhjrc0N0Q6fE9v7q3FEgq3QgLNbgfA1GsI6bvM000GjRPE4p2nJw95lAZ4f1agg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758879657; c=relaxed/simple; bh=hdjeidLy/DTrwYPbRgReEbCf5/OAikiJ4kB5bloN8qw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=vAQ8ST5W03FJOXs8ishdYZY0dtQYXvPggOs36GKfXCaJy56KkinG4WBYpxOAgQ8fqeKKUqDVBO9uovI11IobkKRLEoAkJTMaSj+SCHnpQivrdFAKvK3nprlKuTEdkUHhRfWvWmT1RIjwii/P2JtkMCb86+f2S/xV9ygFRTOBiWA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cloudflare.com; spf=pass smtp.mailfrom=cloudflare.com; dkim=pass (2048-bit key) header.d=cloudflare.com header.i=@cloudflare.com header.b=BROowLmg; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cloudflare.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cloudflare.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cloudflare.com header.i=@cloudflare.com header.b="BROowLmg" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-b3164978f11so358717966b.3 for ; Fri, 26 Sep 2025 02:40:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google09082023; t=1758879654; x=1759484454; darn=vger.kernel.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=bfnGggrEWUuSTcwCWFUw26kUzRfzuZNMtwAcFeMvGfk=; b=BROowLmgTfCcQJHxOizONg6zOnEhIdQVO+xyKtbf8C7tJNdZ5IjIOsvkhy/LkgpED0 NxGiz69OP3KNRTwAdcVIciCylWcx1TmF97gFyGjYf9iB1UKRDGuz2BFOLx+98iS8YNa0 vnNKEa0L/bNfOTM4GMZSGsKcJ7BWyQNQ0ioep6vX/qhPmqPcD4ikkw8sg5nc1f1X3Vyd 7iEYKaaoBtvMbh+tTGVzGF10APHArdWyTCb09eV0w4huxdyg5wuH1FC9jzDKHj59A5sl bZ+vFBdTH6rhqSKEZZLIpK32WH8M4Ae0qLgEn8rZrwNcKtzYljDe20qkS89BoFCJ2IuV envw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758879654; x=1759484454; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bfnGggrEWUuSTcwCWFUw26kUzRfzuZNMtwAcFeMvGfk=; b=LRkcGaxgqRpa3mJhIQlzLjGZcrpIEPQtp+Ff1XbAO7TEVvTnRzzYivUJBAcfxNbVYq mJdNzqKjUcz4NW/ea8Y5phOrMw44Y425pQFlhZrxmeEGTA5Cusw4yokZkgWCy3yPgMEr y9/UeKkpqw6zJ2A9HU+LZYIfnPM2ANfK092Hp5ODWeWms0IjL83emKt1NnRSZX7r3+Sh SQS5/suJXtd3Mq+nsaGr5eXonaczuw+9U+TRd2eP3OpzVEtXuytKYNWgtFwJpKRNG/a8 WXh4NJS+sp/CqIYQARWuW/rAz0/4kHOp6hau9lQJAJv3/Wo452qbqURy+MSxYG+HAtV7 RO8A== X-Forwarded-Encrypted: i=1; AJvYcCXSUucdVV8PfExFrRG3HJ41YBB6qthfs+MK/qyefcg1TV51xWeI93XNXLYD86Z/7kHnXTweiKs=@vger.kernel.org X-Gm-Message-State: AOJu0YyV4p6Y0AFovCa2N/dJLzvkGvKKmLPm0lT0fLWeRzJHq/E71eO9 1+Q7TRpsVocUrYw0wwF7wZ9E2O0RrdzKPgCgvRB058kTSkgAxHhX1Fd8+XA6tZ/UfTA= X-Gm-Gg: ASbGnctx53BKQ+8MqmxNEcjj6NsIU2sZaLe4SP2lTLE3LsdbLGz3tu/vurdW6mQOi6d eQOVIr5TdN2abtij3WXnqo8TwAkFIk32kB/QC6BckjQYz2pXbhpLgZAwY7+2KiKVvdOOprAPOhy HjOFHey3pqq0epK6tWERtUgNIZgS7TbArV2r887Kt8soV25QiWBDdcE3fjwFkMo85TuyUvZwn1W CJteezxEn5Tm+wZKc2IDUlenW45J16fIVMTPFtKTXnc5CVTOj3eeBDcB4G1yJlHDEgsNStVw29R C0VjHa11csRflmCPo0VC+s4P9pvJBgUUqTstKeAXQohrBM66W3NYDZjvLLgNIfBVdFXv4PlsTCA 5WXvad+ryC588i4A= X-Google-Smtp-Source: AGHT+IEx87dvLbs8zYXX1kmFHzSkQDWXCcEaHIBwECYQqOzBzrboZ8xaGC921BePUzyI0T1ED/vkEQ== X-Received: by 2002:a17:907:3e21:b0:b34:99e3:3a88 with SMTP id a640c23a62f3a-b34bbccf844mr658946166b.58.1758879653689; Fri, 26 Sep 2025 02:40:53 -0700 (PDT) Received: from cloudflare.com ([2a09:bac6:d677:2432::39b:a2]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b37b3b46ba0sm131571766b.2.2025.09.26.02.40.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Sep 2025 02:40:52 -0700 (PDT) From: Jakub Sitnicki To: Jacob Keller Cc: Michal Kubiak , , , , , , , , , kernel-team@cloudflare.com Subject: Re: [PATCH iwl-next v3 0/3] ice: convert Rx path to Page Pool In-Reply-To: <182d8f19-aca7-482e-8983-3806ebb837ba@intel.com> (Jacob Keller's message of "Thu, 25 Sep 2025 10:22:16 -0700") References: <20250925092253.1306476-1-michal.kubiak@intel.com> <877bxm4zzk.fsf@cloudflare.com> <182d8f19-aca7-482e-8983-3806ebb837ba@intel.com> Date: Fri, 26 Sep 2025 11:40:51 +0200 Message-ID: <87plbd361o.fsf@cloudflare.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Thu, Sep 25, 2025 at 10:22 AM -07, Jacob Keller wrote: > On 9/25/2025 2:56 AM, Jakub Sitnicki wrote: >> On Thu, Sep 25, 2025 at 11:22 AM +02, Michal Kubiak wrote: >>> This series modernizes the Rx path in the ice driver by removing legacy >>> code and switching to the Page Pool API. The changes follow the same >>> direction as previously done for the iavf driver, and aim to simplify >>> buffer management, improve maintainability, and prepare for future >>> infrastructure reuse. >>> >>> An important motivation for this work was addressing reports of poor >>> performance in XDP_TX mode when IOMMU is enabled. The legacy Rx model >>> incurred significant overhead due to per-frame DMA mapping, which >>> limited throughput in virtualized environments. This series eliminates >>> those bottlenecks by adopting Page Pool and bi-directional DMA mapping. >>> >>> The first patch removes the legacy Rx path, which relied on manual skb >>> allocation and header copying. This path has become obsolete due to the >>> availability of build_skb() and the increasing complexity of supporting >>> features like XDP and multi-buffer. >>> >>> The second patch drops the page splitting and recycling logic. While >>> once used to optimize memory usage, this logic introduced significant >>> complexity and hotpath overhead. Removing it simplifies the Rx flow and >>> sets the stage for Page Pool adoption. >>> >>> The final patch switches the driver to use the Page Pool and libeth >>> APIs. It also updates the XDP implementation to use libeth_xdp helpers >>> and optimizes XDP_TX by avoiding per-frame DMA mapping. This results in >>> a significant performance improvement in virtualized environments with >>> IOMMU enabled (over 5x gain in XDP_TX throughput). In other scenarios, >>> performance remains on par with the previous implementation. >>> >>> This conversion also aligns with the broader effort to modularize and >>> unify XDP support across Intel Ethernet drivers. >>> >>> Tested on various workloads including netperf and XDP modes (PASS, DROP, >>> TX) with and without IOMMU. No regressions observed. >> >> Will we be able to have 256 B of XDP headroom after this conversion? >> >> Thanks, >> -jkbs > > We should. The queues are configured through libeth, and set the xdp > field if its enabled on that ring: > >> @@ -622,8 +589,14 @@ static unsigned int ice_get_frame_sz(struct ice_rx_ring *rx_ring) >> */ >> static int ice_vsi_cfg_rxq(struct ice_rx_ring *ring) >> { >> + struct libeth_fq fq = { >> + .count = ring->count, >> + .nid = NUMA_NO_NODE, >> + .xdp = ice_is_xdp_ena_vsi(ring->vsi), >> + .buf_len = LIBIE_MAX_RX_BUF_LEN, >> + }; > > > If .xdp is set, then the libeth Rx configuration reserves > LIBETH_XDP_HEADROOM, which is XDP_PACKET_HEADROOM aligned to > NET_SKB_PAD, + an extra NET_IP_ALIGN, which results in 258 bytes of > headroom reserved. That's great news. We've been observing a growing adoption of custom XDP metadata ([1], [2]) at Cloudflare, so the current 192B of headroom in ICE was limiting. [1] https://docs.ebpf.io/linux/helper-function/bpf_xdp_adjust_meta/ [2] https://docs.kernel.org/networking/xdp-rx-metadata.html#af-xdp