From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C25C6C4361B for ; Wed, 9 Dec 2020 02:30:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7980B23A75 for ; Wed, 9 Dec 2020 02:30:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726590AbgLICaB (ORCPT ); Tue, 8 Dec 2020 21:30:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726534AbgLICaB (ORCPT ); Tue, 8 Dec 2020 21:30:01 -0500 Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E4D5C0613CF for ; Tue, 8 Dec 2020 18:29:15 -0800 (PST) Received: by mail-ot1-x344.google.com with SMTP id y24so808752otk.3 for ; Tue, 08 Dec 2020 18:29:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=SaXHYVSm9UVp8Vi/nCkZF7dzMcfDByxL6Z7rUQMVELU=; b=IojtK68qJw0evh9rmIgcF+zpJC8yaHDL5pY2LRiIbhw+honGNt5VOVyCl7NXvnmmdb LOfdSNXHGLExHYoNFupFuVgn94/ZkWKOyadT0EkBWE0+n6iMRKOfmz4PZlwIWPTO1yXq IbReyIs8RfluNIvV9PHI9WYHsYfSiBjp95ELlGoipgxV5sVnOTKhVM6nZGIkaSGTLRAe gJbkZeqSTrqlaVk2FGy7IVUWSnJC6EnWjgG+Lk/QrYi/5MqduhdnI+8sOKF7P0Fu7GWh B0GxqMDBJ0xtxqjVWreNUf2VrhOdhcjmGWtfGdka+E6rQlk7NcZ6tdbtRvPVnftRUU5N S/yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=SaXHYVSm9UVp8Vi/nCkZF7dzMcfDByxL6Z7rUQMVELU=; b=UwPotOrXFBpof1g4CwVJECBIQV5HNnVoIo602wgMGG5W2P1vJcZ+n3R9YtZ4nOmIhz FwGoJAvoY033lpzhv2sO/x3PbyaqW/1kwlCZ2w0LHMjMqn/2iRfuN5/ntCPGzUT7mv9j IFZhUgN6lQxKZpFgEI/MY+rRpa0L3Jb5ynTR+qbAa8gAPGBFA11Na2E6KlebdserajMj 7PpYZO9o6znnUIE3g4lo92nBr8vRNFDNBuMDaOw32qUXVfKtB6E0YQmkcfb8yh3gKWJG 4/i4weIsAEt7WxlcBelgxqMIJQr0oVLsl9KvM6ceVa/BTSDypOWFxR7S6Gj68OXHop0j L+Vw== X-Gm-Message-State: AOAM530QMYGH2W9ZfrRT8pbMRz3ip40HNYUn23Z6OGf+qMzfc99GoFEI EwMq5AJaxOFOFs2U75GffW7JN9lJ1dU= X-Google-Smtp-Source: ABdhPJz92/VCQ9NifdDzAyveQr3/Zy475fCImuE3ncTVlH2HUEUfuC2mep8F+Hp+d83JBT8MlXluyA== X-Received: by 2002:a05:6830:1aec:: with SMTP id c12mr33637otd.337.1607480954656; Tue, 08 Dec 2020 18:29:14 -0800 (PST) Received: from Davids-MacBook-Pro.local ([8.48.134.51]) by smtp.googlemail.com with ESMTPSA id g188sm52440oia.19.2020.12.08.18.29.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Dec 2020 18:29:13 -0800 (PST) Subject: Re: [iproute2-next v2] seg6: add support for vrftable attribute in SRv6 End.DT4/DT6 behaviors To: Paolo Lungaroni , David Ahern , netdev@vger.kernel.org Cc: Jakub Kicinski , Andrea Mayer References: <20201202131551.19628-1-paolo.lungaroni@cnit.it> From: David Ahern Message-ID: Date: Tue, 8 Dec 2020 19:29:10 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <20201202131551.19628-1-paolo.lungaroni@cnit.it> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 12/2/20 6:15 AM, Paolo Lungaroni wrote: > We introduce the "vrftable" attribute for supporting the SRv6 End.DT4 and > End.DT6 behaviors in iproute2. > The "vrftable" attribute indicates the routing table associated with > the VRF device used by SRv6 End.DT4/DT6 for routing IPv4/IPv6 packets. > > The SRv6 End.DT4/DT6 is used to implement IPv4/IPv6 L3 VPNs based on Segment > Routing over IPv6 networks in multi-tenants environments. > It decapsulates the received packets and it performs the IPv4/IPv6 routing > lookup in the routing table of the tenant. > > The SRv6 End.DT4/DT6 leverages a VRF device in order to force the routing > lookup into the associated routing table using the "vrftable" attribute. > > Some examples: > $ ip -6 route add 2001:db8::1 encap seg6local action End.DT4 vrftable 100 dev eth0 > $ ip -6 route add 2001:db8::2 encap seg6local action End.DT6 vrftable 200 dev eth0 > > Standard Output: > $ ip -6 route show 2001:db8::1 > 2001:db8::1 encap seg6local action End.DT4 vrftable 100 dev eth0 metric 1024 pref medium > > JSON Output: > $ ip -6 -j -p route show 2001:db8::2 > [ { > "dst": "2001:db8::2", > "encap": "seg6local", > "action": "End.DT6", > "vrftable": 200, > "dev": "eth0", > "metric": 1024, > "flags": [ ], > "pref": "medium" > } ] > > v2: > - no changes made: resubmit after pulling out this patch from the kernel > patchset. > > v1: > - mixing this patch with the kernel patchset confused patckwork. > > Signed-off-by: Paolo Lungaroni > Signed-off-by: Andrea Mayer > --- > include/uapi/linux/seg6_local.h | 1 + > ip/iproute_lwtunnel.c | 19 ++++++++++++++++--- > 2 files changed, 17 insertions(+), 3 deletions(-) > applied to iproute2-next. Thanks,