Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2649104lqz; Wed, 3 Apr 2024 04:50:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUHS6U/P97bBdFY90hLjdgY1oCLv1xrLP0jcKnopzdkAD4PbpKQNYno2mgc0/LE6R+Sjtq84gcFdQeIcohAWmt6b76nTeRCacY0VEhiHg== X-Google-Smtp-Source: AGHT+IHgdoI//agEHWKC5S9EyClBnPfHIjNEPhlmUsel8RNMfQfXtYp8m4qvUiRFpDsSNsu8KmTO X-Received: by 2002:a05:6402:190a:b0:56b:eb90:f3a2 with SMTP id e10-20020a056402190a00b0056beb90f3a2mr2038143edz.16.1712145059654; Wed, 03 Apr 2024 04:50:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712145059; cv=pass; d=google.com; s=arc-20160816; b=D+2qRzRkZBKcXyBRVouhrSxiXSZuneL9nZgxzMNGoayppuDi1lw3gWGgz/sf1GO9vL 4u0+6M++FK1lfdIMmxIh1SB/LElpQVEC+uSfSCecxTnvRgwj00iMjp+jmcD3hsEFAD65 7mMIy7e4m2e4H6XWWGZaMzgrznuRWvampC/9aX+/nBZnsZTfZtICqayhjDTJ8K71+3gR t6HKdL4Zl4fgUr6/+RWBQsT3xIAuTqmwH7qEphn9PwP+TvU7EN51gglTCj/Z9NGTxtlI K4L5T4DEtTnmMifBieF/yHHpUUox9Qeifyxl75DmyvknrhXO1JGHeHmhrFNwwYChnokh jEPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=f0EsZLszr4GEkfYPPMqQsCNoYiwlbaIZZo6tSjHZ6l4=; fh=mJqg5sBKJ7qI0H0X1FO85NrwP9uQjI6h7YDn5XJ7u6w=; b=LKCxcwSGvYSGTfwlT5rtWldu/f43tNoPN6MPKM6tbPUOzQzzQ6Q4Ngb09MBTobBsWQ u25sAaFt/0KdAKjz1nfQS3xZeMnY8vsLopzkpAlKdXMbkSNF+4eY+2JKNkWrRE68XfEC bimVVomCzILK69LOVcPEJVJefsnGine6wH/6e9Oy+EJ8ehLFz82D+SqE4hMah6fxAuD4 IqkU13BlkVIb8cM8Rk1nSDuX/urAuCXd4M+qZQ+6neR/N7uLj+w51t8N6aNX90BaHAfq k5leUYMqE+3VXWa1LsHXk9ClIc8s+GGhdhus5apfjsIOxWg6DlMhvAMH22viQgnpr1Mv yFzg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Zlgp1buZ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-129690-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129690-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t21-20020a50ab55000000b0056bcecba4a6si1149951edc.552.2024.04.03.04.50.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 04:50:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129690-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Zlgp1buZ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-129690-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129690-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 587311F215DA for ; Wed, 3 Apr 2024 11:50:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C701E143C42; Wed, 3 Apr 2024 11:50:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Zlgp1buZ" Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6A60617583; Wed, 3 Apr 2024 11:50:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712145049; cv=none; b=L/PSK7/+m+LzIfmblUmnp2fjfAQrl8KSnJFbrOUnYsnRHNEc9UCUw+K9eP+wVBKb0+Il5LslkMz3sFm521Y0F8aCqPX/Eijl80BJrfEs6nkuf3/Ner//yqbVRUebF7FI04iDGXFGqVjSE1hryieWmc3RwG7c0qbDW8ZoA8wqHXc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712145049; c=relaxed/simple; bh=VoHb9zztW8CmcerqewWCsyC+d/Zbw+VvDoHAWVhf7y8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kW7ebR/fm87tWL5tSzcuiWtetbPApIFpTCq6KxCbKBlg5dy/7V8C8WbbcJM2ry5nFlwrLL25DVnvuTBHiL08JnfxjL4k+IOU80Tzzqq/d+M8f+V4umyGDU4uTCzCGnLpTBSSSfTMgZiQ9cbNs7Jg3LhKVGgp16A+Dxbp7a5IrqE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Zlgp1buZ; arc=none smtp.client-ip=209.85.208.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f195.google.com with SMTP id 38308e7fff4ca-2d6a1af9c07so73330821fa.3; Wed, 03 Apr 2024 04:50:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712145045; x=1712749845; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=f0EsZLszr4GEkfYPPMqQsCNoYiwlbaIZZo6tSjHZ6l4=; b=Zlgp1buZuVy9WKiH+xB4pagHF0jaL6PZEY6Y0SICLqNeSMrfskNGiS8kRygSrRbbmr pV30uOVFpuOaNSkAdHk3SDazhWKWvf+6MHyEBL49mZFALDbgsrlynl9STB0bcj9CzlnD h/UT4PsWBsd1UI9nNQRAIZwWw/eK9pqeaF45IEnI0lFOzvj2BqWf8oc4D93fvTQ8/fpN bp34JvYDj4kwJ0VzXbE3xIc0/pIYaJQEaTzU/ve5m8qWGx6QIyy/WJqWtyEzvVscIvhw AkBo5nRr/FAlzHsb/x2jL8c6EoNU4h6hfXKH36YnnA2ce65Fo/X9XsokaRtl2gSkCfGI anDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712145045; x=1712749845; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=f0EsZLszr4GEkfYPPMqQsCNoYiwlbaIZZo6tSjHZ6l4=; b=p1ptA1NIbTC5Nmx+BKVEgcDdMbCKp1BOow/l3O9XsumeSPjXT5bUssCsR9ojEnIlO+ oU6zha6i0buqmGwxwVQ5ZfyJvyXDMjfF/E7yaqUn/ZiJQfSiE1y9fzWeaSRcuXUFTdXe dPQInk7CkUFZqkBE+HP0czL6qMpPJ8c2aZmtoC9TzBzcuufkVSrzzMGNsoter0CfBPz9 6mM3VOme6kzVWOrWKVpaTrx6Uj2BXMio3PtV1nMuqZ54XbLIgdi48yDf6x5N9ednoJVP CdBgtSAOhu8qyl67MTjhP+sh99YaQ18JeBsy5c7a0v7zcynqQV8mQDs7n+U2QLuoxXEE DkVg== X-Forwarded-Encrypted: i=1; AJvYcCVO8+4Dw9yCkvId8R4UV7uRtQlAflCJVm8dz+s1M6IhOOwjI6NLT5BuaTn5yT4jhKk2mn/QDKQ8PGyhGj+3COpDWRfIL8ByziMmOz+N X-Gm-Message-State: AOJu0YzaFOb0YBh0Nvx4wcsJY82zYAnTzNZUO3nrlSQev739ZPybNUf7 edKAXLNwjhGRVEjm4mnEbfvt3BGxFSz2SoH1MatUHAqoEB5tIZs3xgVEkwODoYE= X-Received: by 2002:a2e:908f:0:b0:2d8:3b49:f831 with SMTP id l15-20020a2e908f000000b002d83b49f831mr1294154ljg.2.1712145038258; Wed, 03 Apr 2024 04:50:38 -0700 (PDT) Received: from localhost ([217.212.240.69]) by smtp.gmail.com with ESMTPSA id i5-20020a05600c354500b00414924f307csm21383579wmq.26.2024.04.03.04.50.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Apr 2024 04:50:37 -0700 (PDT) Message-ID: <3e8f39e2-ef6d-485d-9a39-a36b04266a62@gmail.com> Date: Wed, 3 Apr 2024 13:50:21 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH net-next 0/4] net: route: improve route hinting Content-Language: en-US To: David Ahern , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, willemb@google.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240307171202.232684-1-leone4fernando@gmail.com> <9ce73c04-ee8f-4aa5-ab15-c31dbe409401@kernel.org> <4bf87e9a-71a4-4586-a112-43f8ce20eb46@gmail.com> <2893a096-c07d-4ba3-85a8-db18616810f3@kernel.org> From: Leone Fernando In-Reply-To: <2893a096-c07d-4ba3-85a8-db18616810f3@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi David, > > For the rest of it, Jakub's response was a good summary: it is hard to > know if there is a benefit to real workloads. Cache's consume resources > (memory and cpu) and will be wrong some percentage of the time > increasing overhead. > I understand what you are saying here. Do you have an idea for extra tests or measurements to make sure the patch also improves in real workloads? > Also, it is targeted at a very narrow use case -- IPv4 only, no custom > FIB rules and no multipath. Implementation for IPv6 is almost identical. I decided to start with IPv4 and I plan to submit IPv6 support in a future patch. This patch basically improves the hinting mechanism that Paolo introduced and it handles the same cases. Adding support for FIB rules and multipath is a bit more complicated but also possible. I am willing to keep working on this patch to meet the remaining cases including IPv6. Thanks, Leone