From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15AB1606A322 for ; Thu, 3 Dec 2026 18:10:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=networkplumber-org.20260707.gappssmtp.com header.i=@networkplumber-org.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=OLOWE0g4 Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9557F402E7; Thu, 3 Dec 2026 19:10:36 +0100 (CET) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mails.dpdk.org (Postfix) with ESMTPS id 6B51F402E5 for ; Thu, 3 Dec 2026 19:10:35 +0100 (CET) Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-8ca6a12efd9so61645b3a.1 for ; Thu, 03 Dec 2026 10:10:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20260707.gappssmtp.com; s=20260707; t=1796321434; x=1796926234; darn=dpdk.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=jcHAE81YloQDiTXW/kocO4veTEb5eCWi8kv4N9EiK4A=; b=OLOWE0g4K9/nXG7i9fpXWQdEb7hkTqhtBDGtmRzPvPhAyOextjZnF+ouH+KddSoMA1 43nIegEtregy1u/zGrSyWLUfcoXIDbp8/HJDUXvRDuiK9qxQfKVRml0Blv3oRrq/3Fmm c776IAa6kMjI/KQXWha/jSlH77cLGCtIxA2N7lBhFp2jc18GXDETr2ZLCIUSrWKYBHy1 ryHpBnCUFGUfvXtdcgbbZV6KAwWc0iGHVU9uKYS4GOYGn31LphNkwXqkSixAHJynlGK1 ErKnhlVLWYAW7Ojpve97TIP3kW7Tyh8DuYsRXH5t8zQCoQoyrIaMggSXcKvjdcUUtJcA lXAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796321434; x=1796926234; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=jcHAE81YloQDiTXW/kocO4veTEb5eCWi8kv4N9EiK4A=; b=nTSIj670EcPG7bbxB8DtzYAx+amvFL9lqLf5l1HbJGXHszfVKtzYtB/IR0hRPvK4oR mxH4s50/CroInBmBCxonXbrVvM88Wk/9cMywFI/jUkueW2rb4DYtaZFX0p0KsZ/yO/3s bP0e+9/4n0mjyQBweUevaWBBWdLQl/ebZ7SEFf7adfs8Ec5yR0F6uJFhsyfwwpXTF2eB ec4526XMfp3sZ74bUOlO+8nc+Kr4IS1gbuEjfN5ZQ+VOgldeTTUn0OH88rHAiWz/iOlR uKBut7s5i8CWZpK5Qc+A+ovk5QCNm3OKub59fl6AorcUlxRzpUMembFjsZBhA4JmIxdC o8pg== X-Gm-Message-State: APuU4Z9Qr73trEq2c1/G56VhNcjzPDlytVDnmfYyr8pz1wNV5o3+1zP+ OSrhowph0CrpzFllRdGarV9LYDX8LY1QrdNI1NUPrNVwLSAK4t7OqnHbVIJNllgbruo= X-Gm-Gg: AZFdTZcexB+VRaiN1hmP63k70vmvRsKjSg/IRGOq89MnwNPVdLn+wSttRp4ClI7eEUK d2L+xdxgIqMClwr3tf6IZKRQRkchLC/fh0o00c2OCTpyZikVx4Y1wkAe0BfzzbE7cOy8WI1pMyH /J7ucpnw1NvhTiXp9RmxfyXNQPASN2bQMX9dqmArx9orha7pBSjN6vcoePH7y9Xj7hcW88+VspD EHkx77tn2MasOX4+RHSbky4fVWVDXiWLdlYZctJPYCxWziSnIzc/aNuDLgPa7u2CQENRssM7XWl 7nXFAC+m22y4dDLu+NNXC5iua4bZ9m2Jy2kTwnV7teA/BncmBBQNmz/BYWxJBouBNNDcbrCySUQ cQPim8XxfWgYLon187SIr/X6YUsSnY7Whfel0hMZUMPBgYGZ6SU54L9R96/PlpJrKbp1/Kp0r4t IAR/r+8afyPY+pWOjlS/w8M6r1fOvQdkWk/shLrJ0w0aBeVghyJHzaiDcSMRqJGxionJW2mWBCF ukHYByyIZVDlobGM60SR/UrsPtjBTkSbE/530QV8zYp19LowYpJi0SYD+1fvVeZTiKv5Ad9pXeK KX7Z9oB+FrWtws15jSt6cd91OA5kS7voGuqj2fx86rqtlKs/N2k3jrCvrLEGMF6+ml+s/g== X-Received: by 2002:aa7:9309:0:b0:89f:3c81:e733 with SMTP id d2e1a72fcca58-8c87c09e5e2mr38533590b3a.25.1796321433756; Thu, 03 Dec 2026 10:10:33 -0800 (PST) Received: from phoenix.local (204-195-112-43.wavecable.com. [204.195.112.43]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c873c1cfafsm24588727b3a.50.2026.12.03.10.10.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 10:10:33 -0800 (PST) Date: Thu, 3 Dec 2026 10:10:31 -0800 From: Stephen Hemminger To: Scott Mitchell Cc: dev@dpdk.org, thomas@monjalon.net, david.marchand@redhat.com, mb@smartsharesystems.com Subject: Re: [PATCH v4 2/3] net/af_packet: add io_uring Tx acceleration Message-ID: <20261203101031.009e68eb@phoenix.local> In-Reply-To: <20261203174302.1418-3-scott.k.mitch1@gmail.com> References: <20261202185420.17858-1-scott.k.mitch1@gmail.com> <20261203174302.1418-1-scott.k.mitch1@gmail.com> <20261203174302.1418-3-scott.k.mitch1@gmail.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Thu, 3 Dec 2026 09:43:01 -0800 Scott Mitchell wrote: > The sendto() Tx kick makes the kernel process queued frames > synchronously on the calling lcore. Optionally kick through an io_uring > SQPOLL ring instead, so a kernel thread does that work, as virtio > backends do. Each SQPOLL thread busy-polls for > tx_io_uring_sq_thread_idle after a kick, so under load it takes a CPU > of its own. > > New devargs: tx_io_uring_enabled, tx_io_uring_sq_size, > tx_io_uring_sq_thread_idle, tx_io_uring_q_cpu (SQPOLL thread CPUs) and > tx_io_uring_threads (SQPOLL threads shared by the queues). > > Requires DPDK built with liburing (RTE_HAS_LIBURING) and Linux 5.6 or > later. Probe fails if tx_io_uring_enabled is set and the io_uring can't > be set up, or if io_uring devargs can't be honored. A kick that finds > the submission queue full uses sendto(), so frames queued since the > last kick aren't left waiting for the next burst. Failed kicks are > counted as Tx errors. > > Signed-off-by: Scott Mitchell This is a question not a requirement. Can io_uring be hidden from the application? Many applications can't adjust eal command line so devargs should only be required for tuning. Could the driver just try io_uring if present and use it if available? There are some things like high security distros using seccomp that totally block io_uring since security modules can't scan rings easily. In that case I would think that calls to init the ring would fail, and driver could fall back to syscalls. Also can the user should not have to worry about more threads/queues/cpus than already in EAL. Since queues are Tx/Rx could rx_burst (and tx_burst) harvest completions there? Other drivers do it that way. Size of completion queue can easily be autosized base off the number of Tx descriptors. Bottom line: less configuration is best