Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1144370ybc; Tue, 19 Nov 2019 15:24:14 -0800 (PST) X-Google-Smtp-Source: APXvYqwsvx6/cE8Bx81CFhaNO6KRF+4tnc/zDP40QDwQULSpiD+gwbk+r7jLfnSsWcYMU8Z1J730 X-Received: by 2002:a17:906:1da1:: with SMTP id u1mr394347ejh.275.1574205854016; Tue, 19 Nov 2019 15:24:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574205854; cv=none; d=google.com; s=arc-20160816; b=IZ5qW64K+7o5l5R4ryYl5E7vVxNUo1VSDiwLDrcFOoh2T5PwhuGYAu9coOFp63a6XM PHOFDs/nuCgo6sXxFwEKOBFt5LfJP8d9EFm7CIvNP6Em3X0Ta8FRRDf9Uz+PwVm38kb+ jwWZOJokefKERC26/c2b6LxAuYNDEHX9DPgoj+QwEE1BfyUJdKZJhTpMSip2Y13a0DDW Enj0wzqGrjv4HNTtt1wV8J07dOA2ifD6CbPm8wDhga4D+CbgylYBE9r6kJUo4WZFdd2V ms3x7Ms48TIG48RBg/0/e+DLu+Kz/d9KP3iDQZLCN1WElH20VBvBBImU4g/rqbeyNSjD 7z5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=MlmbuD7DvYWKOR8z2IoelwaPwsE4tACGhONVy1wAVhk=; b=bchW//4H9F+DRCwvPbzVsWgbC5UW9pahbjyeuwt5tm2+KtlA0+d4T/ce4dMRK2xnMS kKDX0sjZMeH2d5zJZJTCfJsqeHeDjO/6Fp2AVa8IQLFJfuCfzcUzIGIR8iXxLcRKhvBG Q1jjaMpOV1EA3u6gajzIpAprgvBaem8A1JUIxpAUHcgR+mAKmS9Xc00EMy2VlCtWmHNO cLc+Vq9NVY0iPJEqLOg1Dom2ZQ3TC6snJKwB3twKOQ9XT7m502QHJToiBmREogX7iZb/ fxWxOprSgccgKQuwrue4OSn1bjD5Ng919WnDtBxlhE70VJ5e7jGGwCwMyGss56UfX/xp npzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k24si16889844edk.367.2019.11.19.15.23.49; Tue, 19 Nov 2019 15:24:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727571AbfKSXWl (ORCPT + 99 others); Tue, 19 Nov 2019 18:22:41 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:46472 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727532AbfKSXWi (ORCPT ); Tue, 19 Nov 2019 18:22:38 -0500 Received: from localhost (unknown [IPv6:2601:601:9f00:1e2::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 6E74B1428DA53; Tue, 19 Nov 2019 15:22:38 -0800 (PST) Date: Tue, 19 Nov 2019 15:22:38 -0800 (PST) Message-Id: <20191119.152238.234909279065487800.davem@davemloft.net> To: andrea.mayer@uniroma2.it Cc: kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, dav.lebrun@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [net-next] seg6: allow local packet processing for SRv6 End.DT6 behavior From: David Miller In-Reply-To: <20191118182026.2634-1-andrea.mayer@uniroma2.it> References: <20191118182026.2634-1-andrea.mayer@uniroma2.it> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 19 Nov 2019 15:22:38 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrea Mayer Date: Mon, 18 Nov 2019 19:20:26 +0100 > End.DT6 behavior makes use of seg6_lookup_nexthop() function which drops > all packets that are destined to be locally processed. However, DT* should > be able to delivery decapsulated packets that are destined to local > addresses. Function seg6_lookup_nexthop() is also used by DX6, so in order > to maintain compatibility I created another routing helper function which > is called seg6_lookup_any_nexthop(). This function is able to take into > account both packets that have to be processed locally and the ones that > are destined to be forwarded directly to another machine. Hence, > seg6_lookup_any_nexthop() is used in DT6 rather than seg6_lookup_nexthop() > to allow local delivery. > > Signed-off-by: Andrea Mayer Please address Sergei's feedback and resubmit, thank you.