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 DEAC54C7B for ; Tue, 23 May 2023 15:09:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C1BDC433D2; Tue, 23 May 2023 15:09:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684854552; bh=ByR3MfyEq4mpigKz6m9bitnXynTJ/qyPMBapRD2DW0s=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZpxXsgg+VGXbpih/fZY2l2+SXaUBHtjWrXkYy6LaZVks/kDpp8x0zAlrKqYceUXiZ agq4i+jtZFPEziMNy96Q6F7GoM2GvJqFvv8gf9GLgHCVKTNt+CdxW+p5FdV/MLOf7K 7zZ8vS81K5XLjBI07KnnnYVw4VX65BLKtG4dngQmtnIarJ6HaX0CixuZtRR06myIbv ugjcL6KK+gKUoSqVB4lqGZJSlYJg3EUiECBEceYQgsKTDSBuDQYoGKvf339ldcoWqC Y726PcUQMnPPpXL9ptwni3QUJirXRILmCK/2bSCNsdkckfM2unNzvY2YqL5KQT/oYx 3DpnsdPAxkOeg== Message-ID: Date: Tue, 23 May 2023 09:09:11 -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 1/3] ping: 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: From: David Ahern In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/22/23 8:37 AM, Guillaume Nault wrote: > Define a new helper to figure out the correct route scope to use on TX, > depending on socket configuration, ancillary data and send flags. > > Use this new helper 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. > > Signed-off-by: Guillaume Nault > --- > include/net/ip.h | 13 +++++++++++++ > net/ipv4/ping.c | 15 +++++---------- > 2 files changed, 18 insertions(+), 10 deletions(-) > Reviewed-by: David Ahern