Message ID | 20231118010703.4154866-3-ihrachys@redhat.com |
---|---|
State | Changes Requested |
Delegated to: | Simon Horman |
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=bhkWyXIj; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SXFx646Mkz1ySF for <incoming@patchwork.ozlabs.org>; Sat, 18 Nov 2023 12:07:22 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 0F77A415DC; Sat, 18 Nov 2023 01:07:20 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 0F77A415DC Authentication-Results: smtp2.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=bhkWyXIj X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9s46iC6t9xve; Sat, 18 Nov 2023 01:07:19 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp2.osuosl.org (Postfix) with ESMTPS id BEE394157F; Sat, 18 Nov 2023 01:07:17 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org BEE394157F Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 4403EC0DD0; Sat, 18 Nov 2023 01:07:17 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 497C8C0DCE for <dev@openvswitch.org>; Sat, 18 Nov 2023 01:07:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 241B083C68 for <dev@openvswitch.org>; Sat, 18 Nov 2023 01:07:15 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 241B083C68 Authentication-Results: smtp1.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=bhkWyXIj X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Gm5iEAFnMSRL for <dev@openvswitch.org>; Sat, 18 Nov 2023 01:07:14 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp1.osuosl.org (Postfix) with ESMTPS id 632DA83C64 for <dev@openvswitch.org>; Sat, 18 Nov 2023 01:07:14 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 632DA83C64 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700269633; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F7Ljz/OX0E7i8Sl0hVEJdXXKeGaZC+gf8QOY6eXQdLI=; b=bhkWyXIjRye5Gh1vivqWeqP1viSPTZBzLRWNuzFy16Mhk6UhA1Au0QrYA+NMF/4apMrxex c7alf88BzRwTyaHge/ra31bE5LbbUXvd7qxoGLGDOUIcVf9Wdu4NGHcYLH9LIJTia1mK/Z PzNwrYzNhgQ4ADX1PKkBBDZYsHSIhsQ= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-54-W5BOCGmoPciJiVYtQ04Nxg-1; Fri, 17 Nov 2023 20:07:12 -0500 X-MC-Unique: W5BOCGmoPciJiVYtQ04Nxg-1 Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-41cb577d45aso27512801cf.3 for <dev@openvswitch.org>; Fri, 17 Nov 2023 17:07:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700269631; x=1700874431; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F7Ljz/OX0E7i8Sl0hVEJdXXKeGaZC+gf8QOY6eXQdLI=; b=lGUGHG+fqrOjOIYdBAvv22nnqAqoCGhBvU7kXXlhflcT5UMe1Q1oiMGrn+aU8mbAvD PQgVMmviMJxUCTRdLjk+mqeGXJqz9YklYfbch0Tizn8G4idM95SEwCSLwiC233siXm8u 3OS2iVFLaPX1nxWg21vo6Gr7VRno6uU5P+le6Sm7EfHjB4Uopm8cEyNWLRsds/ixvHCV +hATGZT5on70BMQYdJqhAXtjpG666cva0JJCVSk7hvNppZZcgXXpu8pTLrbo2D0S2nID dfR98AOLbKbdcyeatkmboBYjdoISImtg4Zi55PiFd/2kNuS/TGQlMFS2l5wkpd2dqUPL H4cA== X-Gm-Message-State: AOJu0YzFuGm33OXzEustrHttcpqlWkzfKroT8yNFnniDrwQZb6qxpCNe x1IMe0f+iQhTnwADGj6whV8xu+mNa5w34xhOwpSuSJq2ewQNeWsTAlNCrZmQknqrli5h2UkejYD hT7iBMeD9dH0L1eUGzNwZP9uibRAdlgQhMhvN3/wXrROdeS5MW4jLBhrXVAt9NDzffazkiVxO X-Received: by 2002:ac8:5dcf:0:b0:419:6391:6bef with SMTP id e15-20020ac85dcf000000b0041963916befmr1551325qtx.0.1700269630975; Fri, 17 Nov 2023 17:07:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IHrGe06yXuEClG6VEXuTwQdLjtNYDLubo0DEz0KwX9bNnDoc4bRtbpdrDZ8y7SL4QRbRN8oYg== X-Received: by 2002:ac8:5dcf:0:b0:419:6391:6bef with SMTP id e15-20020ac85dcf000000b0041963916befmr1551306qtx.0.1700269630680; Fri, 17 Nov 2023 17:07:10 -0800 (PST) Received: from fedora38.localdomain.com (cpe-172-73-180-250.carolina.res.rr.com. [172.73.180.250]) by smtp.gmail.com with ESMTPSA id b3-20020ac86783000000b004196a813639sm965694qtp.17.2023.11.17.17.07.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 17:07:08 -0800 (PST) From: Ihar Hrachyshka <ihrachys@redhat.com> To: dev@openvswitch.org Date: Sat, 18 Nov 2023 01:07:01 +0000 Message-ID: <20231118010703.4154866-3-ihrachys@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231118010703.4154866-1-ihrachys@redhat.com> References: <20231118010703.4154866-1-ihrachys@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH v2 2/4] Don't convert EAGAIN to EPROTO for unix sockets X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" <ovs-dev-bounces@openvswitch.org> |
Series |
Improve unixctl AF_UNIX backlog handling
|
expand
|
Context | Check | Description |
---|---|---|
ovsrobot/apply-robot | warning | apply and check: warning |
ovsrobot/github-robot-_Build_and_Test | success | github build: passed |
ovsrobot/intel-ovs-compilation | success | test: success |
diff --git a/lib/socket-util-unix.c b/lib/socket-util-unix.c index 59f63fcce..0053a61b1 100644 --- a/lib/socket-util-unix.c +++ b/lib/socket-util-unix.c @@ -376,9 +376,6 @@ make_unix_socket(int style, bool nonblock, return fd; error: - if (error == EAGAIN) { - error = EPROTO; - } if (bind_path) { fatal_signal_unlink_file_now(bind_path); }
Unix sockets also have listener backlog. Returning EAGAIN is valid to allow the caller handle the non-blocking temporary failure to connect() gracefully. Signed-off-by: Ihar Hrachyshka <ihrachys@redhat.com> --- lib/socket-util-unix.c | 3 --- 1 file changed, 3 deletions(-)