From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server-vie001.gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_DBL_BLOCKED_OPENDNS, URIBL_ZEN_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=new2025; t=1753760849; bh=Jfh9pHddoO2AhMza4RdCgjlGg+U+EYn1E3REce1ynLY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding:Message-ID:Date:From: Reply-To:Subject:To:Cc:In-Reply-To:References:Resent-Date: Resent-From:Resent-To:Resent-Cc:User-Agent:Content-Type: Content-Transfer-Encoding; b=EymK7vZb7GMLm+SSvX509VsYyhw6gbIc3B4wuo9z933+JMJLUbS9TqgvfSvVBJ0jf ockkXuQ4sd2VUt1EJycNaSlIv6SUxg0LhgJMVNzXC+MK/DEO8TdZZE8tso+bHKticz 9t2UbCoSbXNBoM8KqxXuhDEnBarg2BMWeXb8liTEHyE0HhRMXmUmYLF+HLSPhwDX6a ncpbYayrMCGHaQ0yoTAFJjuYUQ04Ay9X6ajVOk3LRFV9lWDjrcvAmI8TAB6xLDACy6 w3BwYFr9rhsQfVa4io5xJj0y32rQUiaf1WTENKBbwAB3FhBMuSLs/Vqm6QNwE2aBvR 8TxP+r+oMy/0A== Received: from zero (unknown [182.253.228.104]) by server-vie001.gnuweeb.org (Postfix) with ESMTPSA id E65423126EC9; Tue, 29 Jul 2025 03:47:28 +0000 (UTC) From: Ahmad Gani To: ammarfaizi2@gnuweeb.org Cc: gwml@vger.gnuweeb.org, reyuki@gnuweeb.org Subject: [PATCH gwproxy v2 0/3] Minor changes and fixes Date: Tue, 29 Jul 2025 10:47:16 +0700 Message-ID: <20250729034719.190563-1-reyuki@gnuweeb.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: On Tue, 29 Jul 2025 09:53:41 +0700, Ammar Faizi wrote: >> io_uring: Add liburing to the code base > > This one feels too big. Let's not bring liburing tests and liburing > manpages. As discussed in the voice chat, let's use git submodule instead. This is v2 revision of patches that contain the following changes: - add liburing to the code base - add macro guard - fix undeclared GWP_CONN_FLAG_IS_CANCEL macro My Linux distro didn't have a static version of the liburing library. Let's just embed the liburing source code directly into the code base. VS Code's C/C++ linter was complaining about an undefined struct member. Adding a macro guard resolved the warning, although I later discovered that configuring the defines array in c_cpp_properties.json also fixes the issue, but it's still nice to have macro guard as a safe fallback. And I noticed that declaration of GWP_CONN_FLAG_IS_CANCEL is missing, and have now declared it. ## Changelog v1 -> v2: - Using git submodule instead of pulling the code base directly. Signed-off-by: Ahmad Gani --- Ahmad Gani (3): io_uring: Add liburing to the code base io_uring: Add macro guard io_uring: Rename GWP_CONN_FLAG_IS_SHUTDOWN to GWP_CONN_FLAG_IS_CANCEL .gitmodules | 4 ++++ Makefile | 10 ++++++++-- src/gwproxy/ev/io_uring.c | 13 +++++++++---- src/gwproxy/gwproxy.h | 2 +- src/liburing | 1 + 5 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 .gitmodules create mode 160000 src/liburing base-commit: 06fa2ea2ba4acee27d03b7f467012b403df1f48c -- Ahmad Gani