Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2058189pxu; Tue, 24 Nov 2020 16:07:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJwT8gGnOdtZvyHio8QAepPRYiV/Q4UDxc+oFFLcm48v6P9Ep2d8wUZJLFHxG6vjNeafTlA9 X-Received: by 2002:a17:906:491a:: with SMTP id b26mr863739ejq.385.1606262875152; Tue, 24 Nov 2020 16:07:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606262875; cv=none; d=google.com; s=arc-20160816; b=DG582QcgGQEQr9SRFFQ8X6Jen4rFir6uOCV8anDP5IDaB1wbYuP+uvIVd4hZfqsn4U xVN2i9/pVRRSorN1e+u+CQA+fiB5jmEtfUWdhc4Ym6IxKCYADqT4JB2roYcx75bnEGqr eVFFHbYX26bCBn9H1pdmxi0a97ZZKU2BrboP6+wGllA/9ianT2M29EbFlG7g3ouC5UQG U9x+IyDMUiOpn2JY/mrMSD+rRJyFCSHsRmPSWlSyNDKIhq0Kj32eJVqIub9BkUGCoqE1 /U4zmOME25LCZ6/dugUDuKHZEZtjMwXk1TrAgMVJb89OPBPv/dqNaFXLzaHbFk2x41oJ F0HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=VP/rH0dn9CEnMq2MKxqeNQP6KQLYAGSZxnuXCad8auE=; b=zX4kF3fAVRcTM8OGZDV/bUo+XCFZMlymei80t/vHBoi53jNit51XKKrze1/qm6TuD+ 8g/PQMfW23hVoA38jfFCU7YIA3bopUNXsFSlPgviOmBeqo+eN5+uxJTbLQcJrd4/gjsv Edfpr3hXiecZD79RIFUL2qAkLxz1/qxxM5et5g2qIHlplUOfWd4+7wdoaL1NNz3N4bYf 0FqY7YhVUokmU8mODblBancIA1fumoaUbDCcXBEhC15rJjTIzPSZeTRUq4Bbr2Q18Cou dYSyqgUZqyjv22F3EEJUdRSs19kcK0YRHsdoI4cH4iEIDyFGauMjBHYxc+Ma0OgzcqIc I3NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DhhL9D0L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x5si256892ejj.579.2020.11.24.16.07.32; Tue, 24 Nov 2020 16:07:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DhhL9D0L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389159AbgKXXkU (ORCPT + 99 others); Tue, 24 Nov 2020 18:40:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:40730 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727049AbgKXXkT (ORCPT ); Tue, 24 Nov 2020 18:40:19 -0500 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 109AD2100A; Tue, 24 Nov 2020 23:40:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606261219; bh=giCpZGapcxWpM5p0nQyxtcjjwLKYdsIElIRJxgcHR+E=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DhhL9D0L0jN7zbYoTf50IX2cDaQ7oQVFRWvKMwgHtiX02VQYa4OawQAvdK8UYN9IN fWa73QsOHuMDFGcD3ROkq+U6TUq8WrXtMAjTDbvsMeuStzOYN9+bQ1s21nrqb9eOb9 iuelTHBrjusxomQUe/qyOrBnYXC4EH2TO1lQ8QZQ= Date: Tue, 24 Nov 2020 15:40:17 -0800 From: Jakub Kicinski To: Andrea Mayer Cc: "David S. Miller" , David Ahern , Alexey Kuznetsov , Hideaki YOSHIFUJI , Shuah Khan , Shrijeet Mukherjee , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Nathan Chancellor , Stefano Salsano , Paolo Lungaroni , Ahmed Abdelsalam Subject: Re: [net-next v3 5/8] seg6: add support for the SRv6 End.DT4 behavior Message-ID: <20201124154017.4b1a905c@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20201123182857.4640-6-andrea.mayer@uniroma2.it> References: <20201123182857.4640-1-andrea.mayer@uniroma2.it> <20201123182857.4640-6-andrea.mayer@uniroma2.it> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 23 Nov 2020 19:28:53 +0100 Andrea Mayer wrote: > +static int cmp_nla_vrftable(struct seg6_local_lwt *a, struct seg6_local_lwt *b) > +{ > + struct seg6_end_dt_info *info_a = seg6_possible_end_dt_info(a); > + struct seg6_end_dt_info *info_b = seg6_possible_end_dt_info(b); > + > + if (IS_ERR(info_a) || IS_ERR(info_b)) > + return 1; Isn't this impossible? I thought cmp() can only be called on fully created lwtunnels and if !CONFIG_NET_L3_MASTER_DEV the tunnel won't be created? > + if (info_a->vrf_table != info_b->vrf_table) > + return 1; > + > + return 0;