Received: by 10.192.165.148 with SMTP id m20csp4973392imm; Tue, 24 Apr 2018 11:27:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+M7rSo17xJ7PucocTZEcM0co5ZXah8viBDrGFJzPuayARnT7bD7r8rEWxTxp7SVxXuUW0M X-Received: by 2002:a17:902:bd8e:: with SMTP id q14-v6mr26519453pls.322.1524594420653; Tue, 24 Apr 2018 11:27:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524594420; cv=none; d=google.com; s=arc-20160816; b=WwjeBzYS3t1Yn9+0lh+1n0EnY2TZrRuuZVS8UAqnnhcu+p5VJM800zuAU3VONnCmw7 tgjiDiDGsWBJtYSKK5+odUIDbo6W+fCMWyDu6ofnZ6H/H6sJRndwOdYojjAqKMhqLCg2 cv2xaaHYQrbETqAvfyFVOPByTL/URQmwgbqEBY8Wa5mZ8Wyl/7aKbNNR4N2QTRDdi/Kk kuw63mCIIsg6/ImDE7IQf07q6vXWLoTDJEiKx3MgSJAjAesfcDY7P2EYPQNk9gBgXBBZ PrCb4fTMIyW1g6AqcEY3f4pFhQEzX7rGs9kAZkkXKecu/klJyAjndh2yn9qOLdT0D3DM awBQ== 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:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=Bf36rvBJfTzwbdB97Ft8Ni8pGLkeOrLkJaHrRxx7/Tw=; b=ti5N/4IsWlrzqRxHwPmTr7yVnV4AqPFnNrGU/KkxrmNsQTvr5F7uLKFjZHdVNmlDJZ r5af0afmIUD6SflK0foKeecndLY6ZXBq7awtahDmIGKq1/ExQOZa8ntuXgEvV18zcyKa jkI8/zL75q8DJGaQbVgkYELFrxS2AykTn16N9fv3VOaOSvW9mBELfQ00yX+vpaQWceq2 S8J9N40nuMxUZl6SPeRRMxJIkJCGD7oT3Gu0ttdzDET+Pdixq7+P/dC5FOD0Gt33oonV FBmhQcok8ECAAk73O52+UmWYu0vlJjXdC+t/xVzRXUxqOJ1z0sW0vKOwd3XSt7MCl9aq B/Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jz7/3rlq; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bg3-v6si13630319plb.118.2018.04.24.11.26.46; Tue, 24 Apr 2018 11:27:00 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jz7/3rlq; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753040AbeDXSZF (ORCPT + 99 others); Tue, 24 Apr 2018 14:25:05 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33733 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750757AbeDXSZA (ORCPT ); Tue, 24 Apr 2018 14:25:00 -0400 Received: by mail-wm0-f65.google.com with SMTP id x12so1605420wmc.0; Tue, 24 Apr 2018 11:25:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Bf36rvBJfTzwbdB97Ft8Ni8pGLkeOrLkJaHrRxx7/Tw=; b=jz7/3rlqiGK0G8L6dgzllfZbw1tY/vlhNrm+v77Z9I2dUMv/82Xaoe1ZD2wJg77FuU dniHaeq+p0qRsLSyGnpUd/+XaTBXR4kfNfaRFoL+TJuSbWGHzcKSfC2wCxIEQd3nOu3v JfUjJ/geadL9GtrRfnLTkTRNEW2m2/RZaKI2lmSOnX/H4OD/Y4HtZ94Qf2OjimU0DCjG AWfpJZYDC3d+9bew6t1km3k3i7yzx492cuwFXh7wzryGnSAEZZbtEMQ+OmIvMkLpa0no 5BOSesroyIX9u2ccN2b1gqusZnmNWSG7G/RMzlmcqi9s30qT40KcOgM7C8kuZQoTqiH7 ZdlQ== 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=Bf36rvBJfTzwbdB97Ft8Ni8pGLkeOrLkJaHrRxx7/Tw=; b=TN3WPvP2wBaneWEmF3643MQ5T8RKKoku15KDGx+DqUmKBD16IyFhHe+xSac8kUyWaY OsKeT/OES/NkB6/umfTte6pmS1ef7H0KNGlOqUH+aE2K8Ln29QlUni7GcRZZ0mbZDTju qeNn2tsNEXEsFL1SiMkRreb3H3QVkfPMeThbUWMXPNJQyfZ2txYbYu6fyrEtcTQzuK88 RoKLIUdxIykCxRDDk6f9whEDbtHVozf6CpTgrjoIWTnPo+6xuKN5uYE7PT0CEIbLQx1i OqHoywbX2KcHWPP4dUbZaPiV7mGGUA6+qXjIJz62YHfKVK3k6vj2Pl1DOSdMAjOeR1xU M/9w== X-Gm-Message-State: ALQs6tAiXSHQ9crD3gnVrZbV48buNNsfjMI9p5i3RQdO+fLy/SgYGEOt bXgOzqgo3bG2q//taA/XUI8= X-Received: by 10.28.48.14 with SMTP id w14mr13769110wmw.21.1524594299349; Tue, 24 Apr 2018 11:24:59 -0700 (PDT) Received: from AHABDELS-M-M2VD (wifi-guest-target.gssi.infn.it. [192.135.27.147]) by smtp.gmail.com with ESMTPSA id 109-v6sm12318874wra.32.2018.04.24.11.24.58 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 11:24:58 -0700 (PDT) Date: Tue, 24 Apr 2018 20:24:57 +0200 From: Ahmed Abdelsalam To: Ahmed Abdelsalam Cc: davem@davemloft.net, dav.lebrun@gmail.com, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [net-next v2] ipv6: sr: Compute flowlabel for outer IPv6 header of seg6 encap mode Message-Id: <20180424202457.19cbc7ee781fe52aaeb56357@gmail.com> In-Reply-To: <1524592795-1467-1-git-send-email-amsalam20@gmail.com> References: <1524592795-1467-1-git-send-email-amsalam20@gmail.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.21; x86_64-apple-darwin10.8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 24 Apr 2018 19:59:55 +0200 Ahmed Abdelsalam wrote: > This patch has been tested for IPv6, IPv4, and L2 traffic. > > Signed-off-by: Ahmed Abdelsalam > --- > include/net/netns/ipv6.h | 1 + > net/ipv6/seg6_iptunnel.c | 24 ++++++++++++++++++++++-- > net/ipv6/sysctl_net_ipv6.c | 8 ++++++++ > 3 files changed, 31 insertions(+), 2 deletions(-) > > diff --git a/include/net/netns/ipv6.h b/include/net/netns/ipv6.h > index 97b3a54..c978a31 100644 > --- a/include/net/netns/ipv6.h > +++ b/include/net/netns/ipv6.h > @@ -43,6 +43,7 @@ struct netns_sysctl_ipv6 { > int max_hbh_opts_cnt; > int max_dst_opts_len; > int max_hbh_opts_len; > + int seg6_flowlabel; > }; > > struct netns_ipv6 { > diff --git a/net/ipv6/seg6_iptunnel.c b/net/ipv6/seg6_iptunnel.c > index 5fe1394..3d9cd86 100644 > --- a/net/ipv6/seg6_iptunnel.c > +++ b/net/ipv6/seg6_iptunnel.c > @@ -91,6 +91,24 @@ static void set_tun_src(struct net *net, struct net_device *dev, > rcu_read_unlock(); > } > > +/* Compute flowlabel for outer IPv6 header */ > +__be32 seg6_make_flowlabel(struct net *net, struct sk_buff *skb, > + struct ipv6hdr *inner_hdr) David, please take v3 of the patch. I re-defined seg6_make_flowlabel () as static to fix the kbuild test robot. -- Ahmed Abdelsalam