From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: Open vSwitch Design Date: Fri, 25 Nov 2011 01:25:17 -0500 (EST) Message-ID: <20111125.012517.2221372383643417980.davem@davemloft.net> References: <1322173833.1944.5.camel@mojatatu> <20111124212021.2ae2fb7f@s6510.linuxnetplumber.net> <1322201883.2872.19.camel@edumazet-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: dev-yBygre7rU0TnMu66kgdUjQ@public.gmane.org, chrisw-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, hadi-fAAogVwAN2Kw5LPnMra/2Q@public.gmane.org, jhs-jkUAjuhPggJWk0Htik3J/w@public.gmane.org, john.r.fastabend-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org, herbert-F6s6mLieUQo7FNHlEwC/lvQIK84fMopw@public.gmane.org, shemminger-ZtmgI6mnKB3QT0dZR+AlfA@public.gmane.org To: eric.dumazet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Return-path: In-Reply-To: <1322201883.2872.19.camel@edumazet-laptop> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces-yBygre7rU0TnMu66kgdUjQ@public.gmane.org Errors-To: dev-bounces-yBygre7rU0TnMu66kgdUjQ@public.gmane.org List-Id: netdev.vger.kernel.org From: Eric Dumazet Date: Fri, 25 Nov 2011 07:18:03 +0100 > Le jeudi 24 novembre 2011 =E0 21:20 -0800, Stephen Hemminger a =E9crit : > = >> The problem is that there are two flow classifiers, one in OpenVswitch >> in the kernel, and the other in the user space flow manager. I think the >> issue is that the two have different code. > = > We have kind of same duplication in kernel already :) > = > __skb_get_rxhash() and net/sched/cls_flow.c contain roughly the same > logic... > = > Maybe its time to factorize the thing, eventually use it in a third > component (Open vSwitch...) Yes.