From: Alban Crequy Subject: Re: Possible to add netfilter hooks to IFB driver? Date: Tue, 7 Jan 2014 11:18:07 +0000 Message-ID: <20140107111807.38624f74@rainbow.cbg.collabora.co.uk> References: <522653F1.6090902@ecessa.com> <20140106135123.3c7e6645@nehalam.linuxnetplumber.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Stephen Hemminger , Brad Johnson , "netdev@vger.kernel.org" To: Andrew Collins Return-path: Received: from bhuna.collabora.co.uk ([93.93.135.160]:60587 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751276AbaAGLSL (ORCPT ); Tue, 7 Jan 2014 06:18:11 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Mon, 6 Jan 2014 15:51:37 -0700 Andrew Collins wrote: > On Mon, Jan 6, 2014 at 2:51 PM, Stephen Hemminger > wrote: > > > > The risk is creating the same races that made IMQ unacceptable. > > -- > > I believe openwrt nowadays uses a TC action which runs the packet > through prerouting then pulls in the mark off the ct entry into the > skb, so ingress+IFB can take action on it. Thanks for the info. I guess the implementation is this one: https://dev.openwrt.org/browser/trunk/target/linux/generic/patches-3.12/621-sched_act_connmark.patch https://dev.openwrt.org/browser/trunk/package/network/utils/iproute2/patches/210-add-act_connmark.patch https://dev.openwrt.org/browser/trunk/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh#L343 > Perhaps a cleaned up version of this would be suitable for upstream? I don't know but this seems a useful feature to me. Best regards, Alban