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=-4.0 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED 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 4EADAC282C3 for ; Thu, 24 Jan 2019 20:25:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0027B218B0 for ; Thu, 24 Jan 2019 20:25:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=networkplumber-org.20150623.gappssmtp.com header.i=@networkplumber-org.20150623.gappssmtp.com header.b="dEmn82CK" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727996AbfAXUZt (ORCPT ); Thu, 24 Jan 2019 15:25:49 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:36743 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726228AbfAXUZt (ORCPT ); Thu, 24 Jan 2019 15:25:49 -0500 Received: by mail-pg1-f194.google.com with SMTP id n2so3167129pgm.3 for ; Thu, 24 Jan 2019 12:25:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BDNsSxn3RKP3/a9Fydu1dx9AdeJi5zpBcB5lYPAu95s=; b=dEmn82CKA013eSFSC/mrfivug8y/sws8YmCqZDGasF2n9n+OydKmq5ORZCnL0+Ssq8 xx8oTPUwcdj/1p6EgD8Ip2Bge7ywyyIigBAIhGFleJ+JTc1uSMvL+TTcH9m5Eg2hlfPc AaQ3oDzSGXCO+3ffHJQwooronkxRgF8WI493JEEIxZoaF+7qw1bTtUfeCq8/iG8QgjAG CSEBZQxPJFN/oY4whaP+nD0tX1ryDRsc2fYr9Gt3nymmBIMvsRKD7bXafTzGTyliTvaP 1rfFoRomDbtCxxtIH/nFUVUG+WSME1yVLzoTV1UPV92PtCG61HcivXmuU9c7wetooqxd tXKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BDNsSxn3RKP3/a9Fydu1dx9AdeJi5zpBcB5lYPAu95s=; b=G9IS2eM7wW3sj30aVKbV2NX8mxE/jLb+s+6u5b+h02JbwbhWU4LHRIJVZagBGs5BIy 5WBuv9/mQTm8TOvYB1RCYKYGFcnM7kVWtw+ppp+dzvqCLIN/vBgsRMCvhMqgy8+2gqlp rIomF/GIi7ZzSZVJakwIiJfVgq74LE/Mslx6J5Y6S/GR6zbNUZ7BUu3ztkrCl4g6Y01B I6enV5fFTBzxTiuhQl/ZaTFiF+NZVq+eQAvbJNdhMPNqWqTu0LoZ796KCau8rVjp1Vmg vEfUoCAP6rkPaS2NVaIHMwW/7uQGSPUVRjbEvDY3EuAhKxhQ6dCKMscD38oURhtFdnYG ImTw== X-Gm-Message-State: AJcUukepQaLadeIxqw3sgs4Z97p17jcRYcLkKvYa6pvYXUeO7kVoMKD0 Ct0t4jdf8kiuyM8gE1x0AxQGwhXR0qdclw== X-Google-Smtp-Source: ALg8bN4NRvOPuX22ARRw/7OcfkJ7NSJknja9hVMItQ4CZtopNmNRWuemF9gN8D7v15tjd+hhw7jrEA== X-Received: by 2002:a63:f552:: with SMTP id e18mr7317904pgk.239.1548361548299; Thu, 24 Jan 2019 12:25:48 -0800 (PST) Received: from shemminger-XPS-13-9360 ([202.36.179.100]) by smtp.gmail.com with ESMTPSA id g11sm27464858pfo.139.2019.01.24.12.25.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Jan 2019 12:25:47 -0800 (PST) Date: Fri, 25 Jan 2019 09:25:35 +1300 From: Stephen Hemminger To: wenxu@ucloud.cn Cc: dsahern@gmail.com, netdev@vger.kernel.org Subject: Re: [PATCH iproute2-next] iproute: lwtunnel set ip tunnel flags Message-ID: <20190125092535.15b4cd92@shemminger-XPS-13-9360> In-Reply-To: <1548338627-28538-1-git-send-email-wenxu@ucloud.cn> References: <1548338627-28538-1-git-send-email-wenxu@ucloud.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, 24 Jan 2019 22:03:47 +0800 wenxu@ucloud.cn wrote: > From: wenxu > > ip l add dev tun type gretap external > ip r a 10.0.0.1 encap ip dst 192.168.152.171 id 1000 dev gretap > > For gretap example when the command set the id but don't set the > TUNNEL_KEY flags. There is no key field in the send packet > > User can set flags with key, csum, seq > ip r a 10.0.0.1 encap ip dst 192.168.152.171 id 1000 key csum dev gretap > > Signed-off-by: wenxu Applied to iproute2