Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp93943rdh; Wed, 25 Oct 2023 17:37:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHnYort1MdBNqtWl3FqtKTugP+qk5wzhlhlnSuOACAkjh5PEk6UEsFrLzRtqT5BfQmgm+t5 X-Received: by 2002:a25:8e0e:0:b0:d9a:5fce:1fc7 with SMTP id p14-20020a258e0e000000b00d9a5fce1fc7mr2399444ybl.15.1698280658231; Wed, 25 Oct 2023 17:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698280658; cv=none; d=google.com; s=arc-20160816; b=YTN6FekbF5psjKeb9nF2Btu47pxNcy7D7SkENAdVe1AQnX1NeJntUL2r2RZSYl01Uu MQPeMjHcw8XfE9BN/rhWDeR7X07MwoG3uSlOR6DTOPdmPWytTWh/e8eKcbLam89DUWr1 E1N6XSC339f6ZZaWe9vLD8k2T0aZrVBXeDKnSfYGYtfvs3KNw3HoUst9yomKcGsO1PVk 8O5dEinWBOIfac8u2GPzxg5w6Q3iOCcq6CNCtJuiZHHb9SyYeiZg/MEHT/MS8Qd6u14+ Aso3Zt3Qym4vgTzamB0MzdmHxg1utFb3u3n4+pgcWS3Jh8WaidoDe/ry5MwYfT/6rOkS Sm5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=8YIKtKe4CYz2N9r5NS+JegufVr3GT7NJ1fBNrl1aXus=; fh=JPGmFhOXspKRbw13gs/G5RmOu04SvRWwFG5OwskSSjw=; b=zTdtJzCFSH7WPcSnESPV57fdzwjXriMcbj5eDJJ1DQatfM7zsJ/mk785SsTb+ySOyE HotOw/otuV6et0lWbc+JONKSoPQ7tEWcsqj4mh5v0hJVGZBzpNItJkInpzh5yznNTkSr X5ylngt2xg6ucOv1er0IHX76a+RlNjRdywtJSRSaQKv5Jgl1Yl3tMsFlLj5JuxxBzyhJ zet7+BX6KJ8cIZheqRTcxfc5FXmHFHAaBA1lhh3wVh1esrOIgllAxa1QYSrsRwwT5ci1 acvoPR28uuLbdKHf9PsVFXmmlbCH5bV4RUtQwFL0H/VhM+skLUBzvMCdSeZZ5PDgQkEr BBkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pwG6S4oG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id x13-20020a25accd000000b00da066698618si4529158ybd.363.2023.10.25.17.37.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 17:37:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pwG6S4oG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 2E86081A43EB; Wed, 25 Oct 2023 17:37:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230227AbjJZAhf (ORCPT + 99 others); Wed, 25 Oct 2023 20:37:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbjJZAhe (ORCPT ); Wed, 25 Oct 2023 20:37:34 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21364128 for ; Wed, 25 Oct 2023 17:37:33 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5192AC433C8; Thu, 26 Oct 2023 00:37:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698280652; bh=kdPYHlyi8yRFA/DekNTf55CpBXQANDC30hXhpM718dY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=pwG6S4oGL1qdFoqWVMVDtlwCeDxC4Cyh28/7Zk5RV1ugKrUGPn1TIzt11W2JXapYN H2YY+qOL8e6h9INEK4PoRq01WDILSk7buM2BcQMxpUuLGg5lNT9O4UodufoRcohywV M6fQGssmjBjkoGRI1PZKk0hL6n6Gl6NQ7g3ve4Ms6CeCmqwj/2HJ26FR33CfLrVst9 9ATbzuitHmFrrgw/yWZE+PfZurGoGSOdC+yrktxFEaIiXQf140X8DHBF2xHMV/Xcv/ ViZfXQ9Any3fISkzuz8RGp5o1dI1BM6AUGzeuzB2v7vOrMRowE/qJoU71asf29lKuS AmaG6Mzd/Rpcg== Message-ID: <7ba2e62a-d662-4a7b-990e-ba650bd773e7@kernel.org> Date: Wed, 25 Oct 2023 18:37:31 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next] bareudp: use ports to lookup route Content-Language: en-US To: Beniamino Galvani , netdev@vger.kernel.org Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Guillaume Nault , linux-kernel@vger.kernel.org References: <20231025094441.417464-1-b.galvani@gmail.com> From: David Ahern In-Reply-To: <20231025094441.417464-1-b.galvani@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 25 Oct 2023 17:37:37 -0700 (PDT) On 10/25/23 3:44 AM, Beniamino Galvani wrote: > The source and destination ports should be taken into account when > determining the route destination; they can affect the result, for > example in case there are routing rules defined. > > Signed-off-by: Beniamino Galvani > --- > drivers/net/bareudp.c | 29 ++++++++++++++++------------- > 1 file changed, 16 insertions(+), 13 deletions(-) > Reviewed-by: David Ahern