Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp397916pxb; Thu, 21 Apr 2022 01:59:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPWyFvpFs+YPA2ZDnG0eM+scOuptElJtucUxwdlZeD3B1VyWIdX4w20DRgefjfFMY3BIzY X-Received: by 2002:a65:400d:0:b0:39d:2213:ca72 with SMTP id f13-20020a65400d000000b0039d2213ca72mr22463736pgp.332.1650531578665; Thu, 21 Apr 2022 01:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650531578; cv=none; d=google.com; s=arc-20160816; b=pRyvlNogsS3jcy87tT5JYonuEjWx/Db/4g8lCpnzSkFBUjEtP3DYMtOmEtXlkh/EGT 7bPs8tioRR5rnc7Hg4ejT9ndudSow0vBIE8qV2gu0z+PZJhlh44gaHKOUjHOXuBdGmrH gcIydpAPOSMeV419FZq/lkn4ucUz/iP9rLnb0Qncd0fzVpuaiQV/UbN+RTDb54FsWuE/ xPMusjSJ/DaFmQAKkDDeBB7+cvkYnX4ikkccbEN/42jvrWXaifj+ISEO59ZuulWNTEnN cOkn8S0KTtVNanCjmy12xLMtoS/wlzB12+hUDyt+hXjGxpWPuiuJ68u++kK0IN2srZA5 w8ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=p5mkp6RgcSobuU7TrowdyzROdlgIwSdHC604GfrT0MY=; b=oTb76C62/7VAYYoGtyzEE9FSSDZM0J4uE+EzTAmltl27bITKpekJnoX5izYJfJ6V9h 2ZWDV3pF+RqTAR992ETdeNoPmKol1vWKcyTDJ/uzT48YepNUZLfw1tCMqoYPvTIBm1Xf rdFyVjT4FW3cBY6uEjzFu1h5Izfl2grykmrO8mdZzTkRNhcysPNZbJMGcUyEjlXe+UP2 wux4B9NEowH9qWk3wkFvqSpWhTGjH4qm+sSpL/6uyqHFh+xy7yy5qFLYlnK+CPkWHZHp QOq5nV/4DfG1mzEIoWlJpmQG+ETQ5EM0wIOcEzBcucnwnnsoaMmpGMQEvjR0B+c6EECE gL4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XqADFnvM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n11-20020a170902f60b00b001588973b195si1721747plg.436.2022.04.21.01.59.25; Thu, 21 Apr 2022 01:59:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XqADFnvM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386575AbiDUINN (ORCPT + 99 others); Thu, 21 Apr 2022 04:13:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386501AbiDUIMn (ORCPT ); Thu, 21 Apr 2022 04:12:43 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4A707E59 for ; Thu, 21 Apr 2022 01:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650528593; 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=p5mkp6RgcSobuU7TrowdyzROdlgIwSdHC604GfrT0MY=; b=XqADFnvMV1d4VAhOFkM/AyTvFwFbwu3ollVd7T0tqJyNbEeAm4oWpYTfMtusAfepEFbQ++ j7BHjk1T6OZYfdt8eGhYLcdIIqhOToGnJxeWakGRo14JmF8PR0PdNBrYijrsXt/CQ8YoAB kx76NfD1/ctLVpXezbAPhvuOAMl6wzY= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-621-e2gf34BiOLGJNpsfnZ8EqQ-1; Thu, 21 Apr 2022 04:09:52 -0400 X-MC-Unique: e2gf34BiOLGJNpsfnZ8EqQ-1 Received: by mail-qk1-f199.google.com with SMTP id k15-20020a05620a07ef00b0069eab7275d5so2864463qkk.5 for ; Thu, 21 Apr 2022 01:09:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=p5mkp6RgcSobuU7TrowdyzROdlgIwSdHC604GfrT0MY=; b=tCGRKEvyjxO44gehIexBxy2mUflCIplOcd5BJaQutHvkg1TlwkaM6zc9eHvP+u2P6/ bqjWd1jj+sp2copr5gLpEhlst9eIFtnmG2M986borhwnxHNJZD6iRufa46euDoGJT8ks Us5TuBChmz5kq9uAHWYeNVqsETPvRusVgFACyd01tDWiOZ7Oyb0350q/CuQdMngCphM4 znA2EIp7y/PBtrlvDSnC2GfIkgClAmP7YK/BZ6EMvi/SOmwxXPdViJ88fSFis3mz0bNj HPf0zrZRSVxsa86rnP9aNTsqS0we7mtnfsZuKlzURYQg4MGS0qgXzU1xEM7Zjve9U7CQ 39tQ== X-Gm-Message-State: AOAM531zYFWMBWa1H1AF9VaPrtijtbgsZUMARakyrS9KHrg1x281srdw g1rLWwLYvOSb59AxS1bTVRAZoMwIjuGw+mQEMA7S0PBnsTyJC/c/kx/bRTT9V/q/mPiPySXLbtx aq7cykaFOj5CEDHs6oL9lAF5l X-Received: by 2002:ac8:5d8e:0:b0:2f1:fbc6:ae89 with SMTP id d14-20020ac85d8e000000b002f1fbc6ae89mr13320685qtx.647.1650528591620; Thu, 21 Apr 2022 01:09:51 -0700 (PDT) X-Received: by 2002:ac8:5d8e:0:b0:2f1:fbc6:ae89 with SMTP id d14-20020ac85d8e000000b002f1fbc6ae89mr13320674qtx.647.1650528591406; Thu, 21 Apr 2022 01:09:51 -0700 (PDT) Received: from gerbillo.redhat.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id c131-20020a379a89000000b0069c903625absm2686220qke.102.2022.04.21.01.09.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 01:09:50 -0700 (PDT) Message-ID: Subject: Re: [PATCH] net/smc: sync err info when TCP connection is refused From: Paolo Abeni To: yacanliu@163.com, kgraul@linux.ibm.com, davem@davemloft.net, kuba@kernel.org Cc: linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, liuyacan Date: Thu, 21 Apr 2022 10:09:48 +0200 In-Reply-To: <20220417123307.1094747-1-yacanliu@163.com> References: <20220417123307.1094747-1-yacanliu@163.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2022-04-17 at 20:33 +0800, yacanliu@163.com wrote: > From: liuyacan > > In the current implementation, when TCP initiates a connection > to an unavailable [ip,port], ECONNREFUSED will be stored in the > TCP socket, but SMC will not. However, some apps (like curl) use > getsockopt(,,SO_ERROR,,) to get the error information, which makes > them miss the error message and behave strangely. > > Signed-off-by: liuyacan Could you please formally re-submit for -net (inclusing NET into the patch subj) with a suitable 'fixes' tag? You can retain the already collected reviewed/ack-by tags. Thanks! Paolo