Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D07D1F939 for ; Tue, 23 May 2023 15:13:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B85AC433D2; Tue, 23 May 2023 15:13:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684854815; bh=c2ZZismw085K/86omhVayi5O5C8nuCR7l8WRnWRu3Ug=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=HjXNNiJ82Da3DVQjdYugyQGcQ7TIf4amMYWy55TTnybYlxnxt0W8aoy7lLNlVXhRl IX1ECKXBxBXfPghMohTiwi8kokYZS4XxuGWolkrjlSYnebLjQjbYFnCuyV04CaGC6w Awhfj9XqAhNjVqPQguhFRiTK/GwOItMRtSI7+vNOnClRR0k4KgANsz+ctq/qNkIfKT jsPkj1zqG0P1f9h43gBm0+VQhVXC5xJZ+TC4GVqJC3y7lc+gnjg+0hhsByNyPDe0N4 R1PhxvBnvvlAmtZO5EyXZgwZQLVxyI/rEvr+OMAPqvxH7JLjpQKWO4FkJa6LUOEiKE e/oi0jQRtI1iw== Message-ID: <4927162d-1766-c495-4be2-873fa280218f@kernel.org> Date: Tue, 23 May 2023 09:13:35 -0600 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH net-next 2/3] raw: Stop using RTO_ONLINK. Content-Language: en-US To: Guillaume Nault , David Miller , Jakub Kicinski , Paolo Abeni , Eric Dumazet Cc: netdev@vger.kernel.org, Willem de Bruijn References: <6ca7a70859803ff272cc965409856de354fa4e6c.1684764727.git.gnault@redhat.com> From: David Ahern In-Reply-To: <6ca7a70859803ff272cc965409856de354fa4e6c.1684764727.git.gnault@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/22/23 8:38 AM, Guillaume Nault wrote: > Use ip_sendmsg_scope() to properly initialise the scope in > flowi4_init_output(), instead of overriding tos with the RTO_ONLINK > flag. The objective is to eventually remove RTO_ONLINK, which will > allow converting .flowi4_tos to dscp_t. > > The MSG_DONTROUTE and SOCK_LOCALROUTE cases were already handled by > raw_sendmsg() (SOCK_LOCALROUTE was handled by the RT_CONN_FLAGS*() > macros called by get_rtconn_flags()). However, opt.is_strictroute > wasn't taken into account. Therefore, a side effect of this patch is to > now honour opt.is_strictroute, and thus align raw_sendmsg() with > ping_v4_sendmsg() and udp_sendmsg(). > > Since raw_sendmsg() was the only user of get_rtconn_flags(), we can now > remove this function. > > Signed-off-by: Guillaume Nault > --- > include/net/ip.h | 5 ----- > net/ipv4/raw.c | 10 ++++------ > 2 files changed, 4 insertions(+), 11 deletions(-) > Reviewed-by: David Ahern