From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) (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 9BCB32C234B; Wed, 18 Mar 2026 16:36:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773851785; cv=none; b=djgFqm3agzBA+GcfbEP/Rp8IHl1qu0YnrIJRL9ImJVHSGivFlSYntqemsRUchXGii6zOW/g5UA9v5C7MpeUKgoNNdQeL6VAblSLTWZFYFm3F1jNBgxUwcvU0ZjuboVCJIXU1PWie8GpggRYdz4wfmKPI07AU8/DbhAAjFm2y6Jc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773851785; c=relaxed/simple; bh=v4Jw0HRkJlIvmfXjzOdEs18CnbvVQAflo4eSAKRVV6o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RKbWQIUfwy8ylt7aMGMyb5qW0QBony8p9my0ydeWNWn0tYhTLMspdk1TN61KFHbAoa2T2Ht2dpckY5oRyu2gZtrLmKkBb8/a4eOqxfeQSt40cPnFTIkZEwwlqt4jfr6Hfi7yfkZWlmtKYK4zYNvExWDWEDH7K7XCJBxX0SUwuKc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=XlDkwmP3; arc=none smtp.client-ip=192.198.163.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="XlDkwmP3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1773851784; x=1805387784; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=v4Jw0HRkJlIvmfXjzOdEs18CnbvVQAflo4eSAKRVV6o=; b=XlDkwmP3thjlhBzKf7wnsduLwMafTAuXrwCUdVR1+nwoBW3CqNO4ixXl oKZ7B0OaRE/akYMNioZWOnmH8U0ZejqXNxPS92IT9VaZjFrgApJ7JuJV1 8Qydw6otEjinyuTC0b7lW3YfPL6rYT9vWNQvUk9fEM4SABGlx289POm3s j6Tr2XXMEKR6mILSVjcVz2Md4xDqeeEnQL5FSGR0TkWcJhIN342oWpZ0v tuEBdfTxh1N8qCDR20ODC1D/yQXtzJoKDPQpDAj0GYM5/ruoMklMc/NOW AcQeXU+go2UhwAJgsNGMa7RfAZX29HoiOHX6+r4ZtCGh0J3l1nBJQKZls w==; X-CSE-ConnectionGUID: PIJEd0TYTKK8jtIkXUgVSA== X-CSE-MsgGUID: DAXbfIzvQEyH5L+Z6iTJpQ== X-IronPort-AV: E=McAfee;i="6800,10657,11733"; a="62479374" X-IronPort-AV: E=Sophos;i="6.23,127,1770624000"; d="scan'208";a="62479374" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2026 09:36:23 -0700 X-CSE-ConnectionGUID: tRW783DEQ7CjYA0WkA9J/A== X-CSE-MsgGUID: 786qgjQ8S9GvRnfYl5MYVw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,127,1770624000"; d="scan'208";a="218687651" Received: from newjersey.igk.intel.com ([10.102.20.203]) by fmviesa010.fm.intel.com with ESMTP; 18 Mar 2026 09:36:19 -0700 From: Alexander Lobakin To: intel-wired-lan@lists.osuosl.org Cc: Alexander Lobakin , Tony Nguyen , Przemek Kitszel , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Jacob Keller , Aleksandr Loktionov , nxne.cnse.osdt.itp.upstreaming@intel.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH iwl-next v4 0/5] ice: add support for devmem/io_uring Rx and Tx Date: Wed, 18 Mar 2026 17:35:00 +0100 Message-ID: <20260318163505.31765-1-aleksander.lobakin@intel.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Now that ice uses libeth for managing Rx buffers and supports configurable header split, it's ready to get support for sending and receiving packets with unreadable (to the kernel) frags. Extend libeth just a little bit to allow creating PPs with custom memory providers and make sure ice works correctly with the netdev ops locking. Then add the full set of queue_mgmt_ops and don't unmap unreadable frags on Tx completion. No perf regressions for the regular flows and no code duplication implied. Credits to the fbnic developers, whose code helped me understand the memory providers and queue_mgmt_ops logics and served as a reference. Alexander Lobakin (5): libeth: pass Rx queue index to PP when creating a fill queue libeth: handle creating pools with unreadable buffers ice: migrate to netdev ops lock ice: implement Rx queue management ops ice: add support for transmitting unreadable frags drivers/net/ethernet/intel/ice/ice_base.h | 2 + drivers/net/ethernet/intel/ice/ice_lib.h | 18 +- drivers/net/ethernet/intel/ice/ice_txrx.h | 2 + drivers/net/ethernet/intel/idpf/idpf_txrx.h | 2 + include/net/libeth/rx.h | 2 + include/net/libeth/tx.h | 2 +- drivers/net/ethernet/intel/iavf/iavf_txrx.c | 1 + drivers/net/ethernet/intel/ice/ice_base.c | 247 +++++++++++++++---- drivers/net/ethernet/intel/ice/ice_dcb_lib.c | 15 +- drivers/net/ethernet/intel/ice/ice_lib.c | 225 +++++++++++++---- drivers/net/ethernet/intel/ice/ice_main.c | 74 +++--- drivers/net/ethernet/intel/ice/ice_sf_eth.c | 4 + drivers/net/ethernet/intel/ice/ice_txrx.c | 43 +++- drivers/net/ethernet/intel/ice/ice_xsk.c | 4 +- drivers/net/ethernet/intel/idpf/idpf_txrx.c | 13 + drivers/net/ethernet/intel/libeth/rx.c | 43 ++++ 16 files changed, 541 insertions(+), 156 deletions(-) --- Note: apply to net-next, not Tony's next-queue. >From v3[0]: * rebase on top of recent Larysa's changes; * 3/5: fix the last locking inconsistencies (Jakub); * 3/5: pick a kdoc fix from Tony. >From v2[1]: * rebase on top of net-next-7.0; * 3/5: fix [hopefully] all inconsistent locking (Jakub, Tony); * 4/5: pick a hotfix from Kohei. >From v1[2]: * rebase on top of the latest next-queue; * fix a typo 'rxq_ixd' -> 'rxq_idx' (Tony). Testing hints: * regular Rx and Tx for regressions; * /tools/testing/selftests/drivers/net/hw/ contains scripts for testing netmem Rx and Tx, namely devmem.py and iou-zcrx.py (read the documentation first). [0] https://lore.kernel.org/intel-wired-lan/20260224174618.2780516-1-aleksander.lobakin@intel.com [1] https://lore.kernel.org/intel-wired-lan/20251204155133.2437621-1-aleksander.lobakin@intel.com [2] https://lore.kernel.org/intel-wired-lan/20251125173603.3834486-1-aleksander.lobakin@intel.com -- 2.53.0