Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757734AbZF2NtK (ORCPT ); Mon, 29 Jun 2009 09:49:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752593AbZF2Ns4 (ORCPT ); Mon, 29 Jun 2009 09:48:56 -0400 Received: from stinky.trash.net ([213.144.137.162]:37481 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751486AbZF2Nsz (ORCPT ); Mon, 29 Jun 2009 09:48:55 -0400 Message-ID: <4A48C643.5030709@trash.net> Date: Mon, 29 Jun 2009 15:48:51 +0200 From: Patrick McHardy User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: Andreas Jaggi CC: netdev@vger.kernel.org, kuznet@ms2.inr.ac.ru, davem@davemloft.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] gre: copy ToS/DiffServ bits to outer IP header References: <4A48BC82.6040801@open.ch> In-Reply-To: <4A48BC82.6040801@open.ch> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1662 Lines: 38 Andreas Jaggi wrote: > When tunneling IP traffic with GRE this patch makes it possible to > export the ToS/DiffServ information to the outer IP header. > This is particularly useful in a scenario with ESP/AH where the inner IP > header is encrypted but the packet priority/DiffServ information > should still be respected by the transporting routers (for example in an > MPLS backbone network). > > The feature is disabled by default and can be enabled on a per-interface > basis (/proc/sys/net/ipv4/conf/ethX/gre_copy_tos). > > Also does this bring Linux back in the game, as JunOS/IOS provide this > for quite some time: > http://www.cisco.com/en/US/docs/ios/11_3/feature/guide/greqos.html > http://www.juniper.net/techpubs/software/junos/junos94/swconfig-services/configuring-a-gre-tunnel-to-copy-tos-bits-to-the-outer-ip-header.html > > > Signed-off-by: Andreas Jaggi > > diff -urN vanilla-linux-2.6.29.4/include/linux/sysctl.h > gre-copy-tos/include/linux/sysctl.h > --- vanilla-linux-2.6.29.4/include/linux/sysctl.h 2009-05-19 > 01:52:34.000000000 +0200 > +++ gre-copy-tos/include/linux/sysctl.h 2009-06-29 14:23:07.000000000 > +0200 > @@ -490,6 +490,7 @@ > NET_IPV4_CONF_ARP_IGNORE=19, > NET_IPV4_CONF_PROMOTE_SECONDARIES=20, > NET_IPV4_CONF_ARP_ACCEPT=21, > + NET_IPV4_CONF_GRE_COPY_TOS=22, Please add this to the rtnl_link interface instead of using sysctls. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/