Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp559394rwb; Sat, 14 Jan 2023 04:59:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXsLuRl9YiqDF4esMb90332xod1gBS5DfRON0paPHUo33xUUznGCOHdx606Wda1ObOMmo1Kd X-Received: by 2002:a05:6a00:706:b0:580:d409:396c with SMTP id 6-20020a056a00070600b00580d409396cmr76589226pfl.6.1673701182973; Sat, 14 Jan 2023 04:59:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673701182; cv=none; d=google.com; s=arc-20160816; b=cCNPsgAQhm4P5U8AT19762n+E/vxGktT/1xmjlWGpdYdEWJEVqBRcGiBZkzCBd9P9g KbCr+WoKyW8Be4h+h1jdQKL9R1+oNBku4bf3wqUKuW1r6DZ8vhHH0ob+UKee3fLl/gLK VZMznA9nhhFq8gpMoiXMu4/UDd8hMAOMk8h7gf5QM0GXq5XaLkJ3vgyGD38CpzKyTj4Z UY8T7rWx8eoVYxsxmYrPu8ooC1uzrIdNxZcJIQyMb96JdD8GYQ4q9C8TOYAO9jDGpiDY HMh+4ITHgRmR/w0QpzIkj/T3D3GdSy+g/QCypm+NtHPJxaAu8jODdrG6FTjIqchfK7T0 z5Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=1XRB9Z8Nuy71yiH8EPDjVXeUBRtoHs+NvP31YvwCoe8=; b=i4RQodjloAm3lg6o5iwYZvBr7z55AQ9qE160L/ilKyXXgXQFtEPNd61CFbt+OFbr2v DBfeHt6K0hj4Khx4Gy2XEsrI5zx5HJ4ujVBVGJboR3R6eqp/gp+n4yTCf7hgmta1jpkc tKDwEdyAxMrBvITLbqvPpINhGaQq9IIWodOCHDOT6FuaByPBpreH5VqhcBiGn16wDLa4 uQi7UulGONEssYcPG8HDNxL9LMw/hAEblTDC/M5DBhibmDP3gt+Ov40KukNOW5mPd/Ft 74rl8X3UQqeIwVpoKkh7Udwwh4CO4Jw40lSeHxhq/c4LvPaKei0aBfa2cjAHp8veinen CbEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=rVYa2xWK; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u70-20020a627949000000b00588c119c016si16653964pfc.135.2023.01.14.04.59.37; Sat, 14 Jan 2023 04:59:42 -0800 (PST) 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=@google.com header.s=20210112 header.b=rVYa2xWK; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229955AbjANMVw (ORCPT + 51 others); Sat, 14 Jan 2023 07:21:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229852AbjANMVt (ORCPT ); Sat, 14 Jan 2023 07:21:49 -0500 Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6B5B7A86 for ; Sat, 14 Jan 2023 04:21:48 -0800 (PST) Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-4e4a6af2d99so579237b3.4 for ; Sat, 14 Jan 2023 04:21:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=1XRB9Z8Nuy71yiH8EPDjVXeUBRtoHs+NvP31YvwCoe8=; b=rVYa2xWKYMSKdIlDPT4CH9fgwT3e3nv/iSO1D3Gp2bbhoVgxm/GV8aOZvZDeZW5tLA whvdK5uSGxpa4Ui3U2wqXOSntAlD257c4hPdQk/r3oXW2a/PRycAoYPEkcJL+kKyZDmQ 4iJMWkfIUuRLX9NGd3IiY0A44Qd2V60Wsu70ym3tiH3ouy92Q9/dHSoUuli8ie08w1sr hgeznc+rYnWlRJsJ66Rs50hiHySjWkOqHYACxzBob34VhdcH4UQWsCa7jKTAzFxOdLat iddW9DhgkRd5rJKqhCqpE+sCuoW1yZxfbZuc/h2eBLkB6X53oXSsXAoGgc0EqMPp0d4n jzwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1XRB9Z8Nuy71yiH8EPDjVXeUBRtoHs+NvP31YvwCoe8=; b=zeeGHRbYW0zFvx+OkNwDt86Sx5aooqV2Q8AcpaMpRbx9BcwFDkSIXSKabS4uaQbA8J bU4ofXKSTnxLVnLlGEjdE+OudFY8N4MfxIk+X3s4S5CD56zCYO7zbgErpOR7RS6jyWyb dXCXmrlUNfjr4LCNdbx+DyZmwgs2LxxiW83lm3b9AE51xXSSzJqedxhiWLrYM2+8AMSj 01I9cP9ppl1NkdDgmKwCBjRW/y4UWlFhQXCBSdJI41ZH/pKAiyJGqsndmX2ryMqb4ThI b0KEQuNPhIy7NjxAFiL+104aNOeEa3fRIWzttqTWpLIl5sDBPClJlgpSDKA4TarzAQk0 eX0A== X-Gm-Message-State: AFqh2krVUzQglXRxGXRLNKKmkYuyhSsP/ftIzzGWudy3f+9w8356JAFp Xov/XVbr2vixYZ1vzlIXD4LPni0ZI85Q9HmsR5zHVg== X-Received: by 2002:a81:6d85:0:b0:3f2:e8b7:a6ec with SMTP id i127-20020a816d85000000b003f2e8b7a6ecmr3222938ywc.332.1673698907680; Sat, 14 Jan 2023 04:21:47 -0800 (PST) MIME-Version: 1.0 References: <20230112-inet_hash_connect_bind_head-v2-1-5ec926ddd985@diag.uniroma1.it> In-Reply-To: From: Eric Dumazet Date: Sat, 14 Jan 2023 13:21:36 +0100 Message-ID: Subject: Re: [PATCH v2] inet: fix fast path in __inet_hash_connect() To: Pietro Borrello Cc: Kuniyuki Iwashima , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Hideaki YOSHIFUJI , David Ahern , Cristiano Giuffrida , "Bos, H.J." , Jakob Koschel , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Sat, Jan 14, 2023 at 1:18 PM Pietro Borrello wrote: > > On Fri, 13 Jan 2023 at 13:16, Eric Dumazet wrote: > > 1) Given this path was never really used, we have no coverage. > > > > 2) Given that we do not check inet_ehash_nolisten() return code here. > > It seems there are a bunch of call sites where inet_ehash_nolisten() return > code is not checked, thus I didn't think of it to be a problem. > > > > > I would recommend _not_ adding the Fixes: tag, and target net-next tree > > > > In fact, I would remove this dead code, and reduce complexity. > > > > This makes a lot of sense. I can post a v3 patch completely removing > the fast path. > > However, this patch's v1 was already reviewed by > Kuniyuki Iwashima , v2 is a nit, if posting a v3 > I think I should remove the Reviewed-by: since it would completely > change the patch, but what is the preferred fix? > Yes, remove it, and Kuniyuki will review it again, thanks.