From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by huchra.bufferbloat.net (Postfix) with ESMTP id 4DF972003DE for ; Thu, 6 Oct 2011 16:52:07 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 06 Oct 2011 16:52:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,351,1309762800"; d="scan'208";a="60730323" Received: from tassilo.jf.intel.com ([10.7.201.108]) by orsmga002.jf.intel.com with ESMTP; 06 Oct 2011 16:52:05 -0700 Received: by tassilo.jf.intel.com (Postfix, from userid 501) id 6D8C4241707; Thu, 6 Oct 2011 16:52:05 -0700 (PDT) From: Andi Kleen To: David =?utf-8?Q?T=C3=A4ht?= Subject: Re: Asserting ECN from userspace? References: <4E8BF6B2.6030101@gmail.com> Date: Thu, 06 Oct 2011 16:52:05 -0700 In-Reply-To: <4E8BF6B2.6030101@gmail.com> ("David =?utf-8?Q?T=C3=A4ht=22's?= message of "Tue, 04 Oct 2011 23:18:26 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Thu, 13 Oct 2011 08:36:25 -0700 Cc: netdev@vger.kernel.org, bloat-devel@lists.bufferbloat.net X-BeenThere: bloat-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Developers working on AQM, device drivers, and networking stacks" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2011 23:52:08 -0000 David T=C3=A4ht writes: > > And twiddling them, on a per stream basis, for a single packet, would > seem to require something more robust than setsockopt/getsockopt > (although that would work for udp streams) With netfilter nf_queue you can construct a rule that passes packets through user space and reinjects them. I would suggest to just use that to modify the ECN bits. I'm sure with reasonable google skills you can find some examples how to do this on the web. -Andi --=20 ak@linux.intel.com -- Speaking for myself only