From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 3FDDA1EA65; Sun, 20 Jul 2025 09:11:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753002693; cv=none; b=lOYa9n0RD8HO2/mdRveyBKsiZOupxZ/R0YmhoExL2jC9Hntpz8Nl2eFnZ3OSNSfj0NXOZ8qdyPrH5FP8AIaWtNRCChwr/Z+e5aS7J/1QDoMz4OmFBiH5+do2tg/+O0H3gio09t5cFxq7KUU/9VPMmQAPGUbq6G3h44UliQ/SIQo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753002693; c=relaxed/simple; bh=wie3zAjgVALuc7NjlqJG/3+QLcMwoX5yvQ3EwfDjXTE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=erOq5Mz1PBsOFzns8XIAUnl43B7dqGFYLx/MuuE+loPjs42jrIhKUsWX8ICJFwt1RKXXHEKBc0Voth/xbtWFdzIJBuqdJfm+NtImkg/0RRJQj8cxCnzscl7ok0VONOoXQPQJtO+0brQpP6F94MhV8vJQCwF9y8TRbdi/5APMD6s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ED+vLG6Q; arc=none smtp.client-ip=209.85.210.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ED+vLG6Q" Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-74ce477af25so2178182b3a.3; Sun, 20 Jul 2025 02:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753002691; x=1753607491; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=iWrXKbM+G34xoKVnK1eplahDGaVhKpTnihCDqzU7Q9c=; b=ED+vLG6QCmNV/JiC5zDP998zetskJwaW8IczlFr6IAVEzt96pAybV9UTRUNC95Z0pM 7aXjTF2izbf8FCAF06C7EA7J8p0afLV6LwAFOveVeRO/G4EK7odOiEBfwyOB4KfCGpK4 mhfI7GTcTyflc1tTY3S6ityTnrCooSZsde0jl3swBzpAv9IDTLykMK+7nMPSNrfOBB02 AQiq+l/q9HcA9ehQ4GrdvucjRhGhc+v+fWC00ddwTK+7DytCRhZu4HLamsGUzr7F3TE0 3qiZpgxqv1BO/Q1ThXrR2NiM+U2yhzaJVI0vQKE+5zeFDPw6qN89h87bmommh3E9MKOT IGEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753002691; x=1753607491; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iWrXKbM+G34xoKVnK1eplahDGaVhKpTnihCDqzU7Q9c=; b=famTTb8akimh3OFKBPzFZ/lytU0+7d9SFHx+7Ne7FAUOjSpyC+QHm8K1UjfTKgCZad 6DBJLGH2WKxSB5VAJX4PIL0QrLASsUg08bxrtf3kWMAb7f0blraTipBybYq5cjMGZe9e mXQoo3SbHlpWapK5Z50MeuNmpA/TnYCHMp1kmVfwcKo7DdK7qdGRf98DVYb2PfRvQdFg WcJ4sF+QEATzAXqhsPJVN6VdRmtCwxx12R3R5vHh0pn02j1RVm8xi/SwlVJl0z12AyC3 F/MjjOsT3fryrWj1lAdFXYpWzIEcL6j7dornI8RwwN3TzYXV9uxY73K1UNER5HVAPbOn LCDg== X-Forwarded-Encrypted: i=1; AJvYcCV3qsFf5nwpulfMewRA81a1pG4RZTQe72ZA3gRPRzIZthl0WvdK6nLmoAr7rpoKQe+uFVYS8fU=@vger.kernel.org X-Gm-Message-State: AOJu0YythS9J69SCoBsLBAB1rv0BydVoMQu7oXH/XRVDXF/uF416DAHo 9tOdYvtvwLj/JDdt/1kgSXPEwK2hDH9Kr4VdPcO+7Ejnp2AYODUmwVhx X-Gm-Gg: ASbGncs8m0XYqugiY9PJmVCPFgl3/E9RUscPFWK/kM75Mn2P95D7oYjbCJgHFGlDZTz H5e+1IP8Yf6WU/uzpQMzpcKYrLtdCHheMqn/qbsq+CqeblmRAAF77ao07/gJ4xIitvIHyr+QLo8 8pQCUCd+2ysemX3alWkBK8qriJXMM3Do9D3XykWAPQkj9iZuW9fba/uJSYIlzFEhM9PzdnEIoGx 5ZpHm07jDBaQAfmvQmo127/3QlT7ZcM5wdWHExCG2cnlIgnC+sdwJ/+NoFU0CVu2UhFT8tGhAyv 7JNDVVdTcGcAl9KqdTBn9Q/v491aFT8awUcOuyYyLxwOXiqqg6ucZAAco23KD7sfvwSszXZW3Ks zOsdrq8BjANBVCc4fBAAUnTw9HDmB+Spu8ToHyaFb7CY82CwyfL+fecQOUc0= X-Google-Smtp-Source: AGHT+IFxnWK1x+9KvMP+PbmzAvTkrGWlhYtcdtm8EXw47+H9FngwkBEW6Wbvc53qUZM+VZOp33M0dw== X-Received: by 2002:a05:6a20:9389:b0:234:3932:2958 with SMTP id adf61e73a8af0-2381245729dmr24494413637.20.1753002691445; Sun, 20 Jul 2025 02:11:31 -0700 (PDT) Received: from KERNELXING-MC1.tencent.com ([111.201.24.59]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-759cb76d53fsm3902585b3a.105.2025.07.20.02.11.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jul 2025 02:11:31 -0700 (PDT) From: Jason Xing To: anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, bjorn@kernel.org, magnus.karlsson@intel.com, maciej.fijalkowski@intel.com, jonathan.lemon@gmail.com, sdf@fomichev.me, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com Cc: bpf@vger.kernel.org, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, Jason Xing Subject: [PATCH net-next 0/5] ixgbe: xsk: a couple of changes for zerocopy Date: Sun, 20 Jul 2025 17:11:18 +0800 Message-Id: <20250720091123.474-1-kerneljasonxing@gmail.com> X-Mailer: git-send-email 2.33.0 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Jason Xing The series mostly follows the development of i40e/ice to improve the performance for zerocopy mode in the tx path. Jason Xing (5): ixgbe: xsk: remove budget from ixgbe_clean_xdp_tx_irq ixgbe: xsk: resolve the underflow of budget in ixgbe_xmit_zc ixgbe: xsk: use ixgbe_desc_unused as the budget in ixgbe_xmit_zc ixgbe: xsk: support batched xsk Tx interfaces to increase performance ixgbe: xsk: add TX multi-buffer support drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 6 +- .../ethernet/intel/ixgbe/ixgbe_txrx_common.h | 2 +- drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c | 121 ++++++++++++------ 3 files changed, 86 insertions(+), 43 deletions(-) -- 2.41.3 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 smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (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 83354C83F1A for ; Sun, 20 Jul 2025 09:11:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 39E4961028; Sun, 20 Jul 2025 09:11:35 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 0zWeHYX7MfqT; Sun, 20 Jul 2025 09:11:34 +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 smtp3.osuosl.org BF9DB61062 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1753002694; bh=iWrXKbM+G34xoKVnK1eplahDGaVhKpTnihCDqzU7Q9c=; h=From:To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=x6K1vUgT8r6IJbf+xwZsVEal1GO7ydYwjMV9g0qs7FhXJlV/SgAAavqByaThgn9br tSZWHtp7iPU7dxxDQ5CbkrxRU4fs00OQvtk4y9+23/sJdGSkmv3Ocyu4TzTt9f9ze8 IbwgncC47ZE6dzkCq6GzFaw8m/BzxZTfpAgjvkcrskhpODpN0dgXcilDPYaMdHlkTD 3V0Y1bA1CUdtUYDdsp6GGhyXGv6CljzmY2dmV1K7x8ddcnBaQKuEUKqv6sBkotPvA5 wC1d/Wv4QDJukD2Mwa/ZCMn1L3VKpN/T51N2jdg/yT/TEI10n0yt/QfFaDVuncGbUL 5zKJhrn4Ww8/g== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id BF9DB61062; Sun, 20 Jul 2025 09:11:34 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists1.osuosl.org (Postfix) with ESMTP id C78C7117 for ; Sun, 20 Jul 2025 09:11:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id B88E484572 for ; Sun, 20 Jul 2025 09:11:32 +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 sYa1NuirvdHv for ; Sun, 20 Jul 2025 09:11:32 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::429; helo=mail-pf1-x429.google.com; envelope-from=kerneljasonxing@gmail.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 32B7281ED9 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 32B7281ED9 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by smtp1.osuosl.org (Postfix) with ESMTPS id 32B7281ED9 for ; Sun, 20 Jul 2025 09:11:32 +0000 (UTC) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-74ce477af25so2178181b3a.3 for ; Sun, 20 Jul 2025 02:11:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753002691; x=1753607491; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iWrXKbM+G34xoKVnK1eplahDGaVhKpTnihCDqzU7Q9c=; b=v2qzW0soyv9+iNeTSrMCCnPD1DBgwuyS8No5Kvk2LeP+CGXQwc0qM/uQKoZhjjfXme YbfGeoCcOnY1tRfbc0MX769hqlACnIFO/4ThPiyLiqQxL7tlD4JUjPYQGDwjXajxdPGb IYdLk5EKfE/psmAzz6hLaOY45vdDQn1I5hnu95TbEejePz6PPGTtsqIubtEG6lwdoBX4 zxhIT0EyCVKUn1enHq08jyEPYBTJ6mINN/2TJxkEkQbVCi8w9m4z2NrrdONSidpzXc9h JrqjrmjOCGSyhXoXo2Mu+vKSj9zMFL+wlCTaA5yCKrWAzBBlpqYXhSvYCA7BgKouDBiT 3Shw== X-Forwarded-Encrypted: i=1; AJvYcCVIZYujrA27TY1S6uw/3DUHfeSPl4fkC2N8VRh7K/DfbeRl2oIPm5ORXXi9EszTK64OCowiY1f1Uroq5PY37W8=@lists.osuosl.org X-Gm-Message-State: AOJu0Yw+6b7FZ9B8BNg4Qg0YhQkV/2f9fUS4U8NbpPCF72PZNBckPIfr zFUq4BZHi/L1EQcFhvLjgnZ8M/OYmQ/EyVJ3MHYZquu992+It3wqZxXl X-Gm-Gg: ASbGncueSg9NflFg70MIHU7QedZmeI+a50trKpXv5DBa3FCPt6E4cUVKuOc/cwJsJDG w528cpdxZZPh3l0M8lXfwm55CR2B+uz8YEUoIZtKDNCNXoQANAxBS8X51BHClnW7poJ5ru7B/ce p851KNWWwnPHwJqgX80hK9de6d71EAa3+4baXSbZJ0WdNaqWXCd9O5GpnmH4MUZ+TXB/Dmvj8ep dlXkpDTD3S6P2Ha3vKgAqPJIghWgHA9eZBqvmK3ytNq2Bmx3tuwL8uR3m5KZ0Mnq2c3+x/0Asdt QIraINq4EUP6QU4u+c/koERTnBobWeuZGmnvjxB1rTBSr+kolbSbk2K13d/eLlaJxeFIgxw0U9L 7KXV0dBSQaNLrZQ+7VtNt7utyFk0Wcyhqw6fXqToH88WvaercMdoOtl0lTtA= X-Google-Smtp-Source: AGHT+IFxnWK1x+9KvMP+PbmzAvTkrGWlhYtcdtm8EXw47+H9FngwkBEW6Wbvc53qUZM+VZOp33M0dw== X-Received: by 2002:a05:6a20:9389:b0:234:3932:2958 with SMTP id adf61e73a8af0-2381245729dmr24494413637.20.1753002691445; Sun, 20 Jul 2025 02:11:31 -0700 (PDT) Received: from KERNELXING-MC1.tencent.com ([111.201.24.59]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-759cb76d53fsm3902585b3a.105.2025.07.20.02.11.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jul 2025 02:11:31 -0700 (PDT) From: Jason Xing To: anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, bjorn@kernel.org, magnus.karlsson@intel.com, maciej.fijalkowski@intel.com, jonathan.lemon@gmail.com, sdf@fomichev.me, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com Cc: bpf@vger.kernel.org, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, Jason Xing Date: Sun, 20 Jul 2025 17:11:18 +0800 Message-Id: <20250720091123.474-1-kerneljasonxing@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753002691; x=1753607491; darn=lists.osuosl.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=iWrXKbM+G34xoKVnK1eplahDGaVhKpTnihCDqzU7Q9c=; b=NAVIfwOQFqHnLGVcCavVuyIus98UjUDJoVL41j2kW9z/l+qq4emsNhRZQnbPyGpGOV 9uWflsS5udc+TH8kj39seWz2x+TM9Z6ci65tNb1ce5ke0ijt4hsjnDVsUbvyTKpPKsEE EZcSUmq42Yhc7x8yIWJZZSRJ2hQL18yQeDcvLJz2zabFytTH/V4t2RzDHjUUNhqwtVIU OmO54KrAw+RgUE0yB9qSENykRPo9M0NffHL52MSZvLC8kwAy4Wj+tzxMUBRMdVU2h+5D jwbeYCgU/GO1u4MRd1QUXqZbmaC+C50md9xpWpy/WVq3yCYEWy/7iOccRUxpr8OTQNzJ 4oQA== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=NAVIfwOQ Subject: [Intel-wired-lan] [PATCH net-next 0/5] ixgbe: xsk: a couple of changes for zerocopy 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" From: Jason Xing The series mostly follows the development of i40e/ice to improve the performance for zerocopy mode in the tx path. Jason Xing (5): ixgbe: xsk: remove budget from ixgbe_clean_xdp_tx_irq ixgbe: xsk: resolve the underflow of budget in ixgbe_xmit_zc ixgbe: xsk: use ixgbe_desc_unused as the budget in ixgbe_xmit_zc ixgbe: xsk: support batched xsk Tx interfaces to increase performance ixgbe: xsk: add TX multi-buffer support drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 6 +- .../ethernet/intel/ixgbe/ixgbe_txrx_common.h | 2 +- drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c | 121 ++++++++++++------ 3 files changed, 86 insertions(+), 43 deletions(-) -- 2.41.3