Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp532878rwb; Sat, 14 Jan 2023 04:32:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXs454TRVKcSESUctcuWOJ0rFzpDS2bK9wBQe4AxeM5F+0JwIyDJwV7buFrqFXLcxifuatB7 X-Received: by 2002:a05:6a20:3c8f:b0:ad:97cc:e948 with SMTP id b15-20020a056a203c8f00b000ad97cce948mr126594657pzj.45.1673699523776; Sat, 14 Jan 2023 04:32:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673699523; cv=none; d=google.com; s=arc-20160816; b=nNZjX3YJ26zTthDGKqKIcGcFMek3G824F21mT5fxkakdJC6VpUqgYlVimu5zSP68IP 19aTIR320tFHrl1TPFAZSc/+Ny5XkCyMM8FzDcul+/Qjd6CMeFCo5oVU5tnFsGEzkfNT 1sIkHWZERBuUA0FSyfXi67hPjQ87n7JbrJpxoifuv/HkH2sILYO8wMe/QQu1NegUWCog D5PYtEVcr51GO0QWFH95QFvoYKWu0idrkOO8HlfznOoiDzIm75L+q7s7klemjRvSAyPi V2c2ojSI7Ap8m2rV2WAf7q1Y7hT9wh920V7wuz81/282cY1Qt6zoOPeZIg8H0+uS2vDf bvbg== 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=q9YuksUftZM7Mr4U6pqPjOciGDwe5IYDlYl6UJ9PPnk=; b=KePi9Z0b6Ks/3iBAlHpniWlZ8mDaiZW7UrzS+cI7MnZZ+7hJegor0y/UMtj+/KWCk2 gD5vLL9YLkLgGcNnuYobSVdcybO36Ewnkg0AUwB+Sw6SiIMM18fXIsmRvFppU/jiuUq4 s8lQVSUeVl0XG3RCCzyn57OOv6P1CEDJMXrnsSRp8WRg9bXYmeUM2F+diRconnr9ObdV DoG8lfcR71Fl3U0mau1++mGlELWK3MRL6Qt+f4kzpK6q/XL35ZC8omdWZH0cDIU0ID6g wdn/LTRqx/GrIxF9sgriBVuhvSLL8ll32fzZhXqKLS8/pWtxXZvh5SHGaKVylGF3BkTN lcyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@diag.uniroma1.it header.s=google header.b=synd+Igg; 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=diag.uniroma1.it Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u6-20020a170902b28600b001946e6c4fc2si4921653plr.97.2023.01.14.04.31.57; Sat, 14 Jan 2023 04:32:03 -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=@diag.uniroma1.it header.s=google header.b=synd+Igg; 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=diag.uniroma1.it Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229682AbjANMSE (ORCPT + 51 others); Sat, 14 Jan 2023 07:18:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229723AbjANMSC (ORCPT ); Sat, 14 Jan 2023 07:18:02 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 750946591 for ; Sat, 14 Jan 2023 04:18:00 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id mp20so11411214ejc.7 for ; Sat, 14 Jan 2023 04:18:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=diag.uniroma1.it; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=q9YuksUftZM7Mr4U6pqPjOciGDwe5IYDlYl6UJ9PPnk=; b=synd+Iggo1DQo5udzPz0uQKpvVSlRqvBUZi2YQV/McwbYALis2UlgTDQDUR6izBCC2 l1bZPDxHIVWe9BlDJugSUyRI2tB8w+sHRdISa8ozgnxqwNFMCIzMgif57A4S+wEYoIRn sBDlRAINr7z8unXoQgqiE3xTPECg3H1Zt6zBE= 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=q9YuksUftZM7Mr4U6pqPjOciGDwe5IYDlYl6UJ9PPnk=; b=jQjWFSHtHlgKd4PHaHcmzrGrb8bfD3uhyPwZis54z3WLyY+yPhbOhlzudUi8Z0UuBI EMY2M+bxirk6BZzpaYDwkwrm1f3SkgPWQOQM29pX+ihw8ExbzR4reP6VhUIFwzabgzM5 UC79Iuhis1ghyXw7GMBAdADWKq/FFYf72ZyhJLMFcymQHiezxzfgsm411xzdVhmCjago WDrJW/eU3AxbjwQuWkdnb63WTBI8gT3fuL6ecABzS1G78xi7o371ifiyWLO0MvecUUFs kZDeTzW7ljL9hgVoKZ/2VU+btNCYHmTE8eVdGI19D5hD0HRro/mDvIYVRGmkyVmwlTXK MxiA== X-Gm-Message-State: AFqh2kpAHJm4mafFITulwHheuWwCr+5uTGJMGR/C+sxOo+F7E1XWgRn0 wEo2Fksg2dhVTM0EVIN8VEWGY9ChI3ReUr1vRqfRrA== X-Received: by 2002:a17:906:3186:b0:84c:4d1:5e9a with SMTP id 6-20020a170906318600b0084c04d15e9amr4237385ejy.297.1673698678984; Sat, 14 Jan 2023 04:17:58 -0800 (PST) MIME-Version: 1.0 References: <20230112-inet_hash_connect_bind_head-v2-1-5ec926ddd985@diag.uniroma1.it> In-Reply-To: From: Pietro Borrello Date: Sat, 14 Jan 2023 13:17:48 +0100 Message-ID: Subject: Re: [PATCH v2] inet: fix fast path in __inet_hash_connect() To: Eric Dumazet , Kuniyuki Iwashima Cc: "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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 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? Best regards, Pietro