[ovs-dev] Master code kernel modules dependency

2013-08-26 Thread P Balaji-B37839
Hi, Does the latest GIT Master has any dependency of other kernel modules like the listed below? # modinfo openvswitch.ko filename: openvswitch.ko version:1.12.90 license:GPL description:Open vSwitch switching datapath srcversion: B883906E388F7AE70C7125C depends:

Re: [ovs-dev] [openvswitch:master 9/10] actions.c:undefined reference to `crc32c'

2013-08-26 Thread Joe Stringer
This looks like the path of least resistance. We can always change it in the future if it's an issue. Cheers for handling this. On Tue, Aug 27, 2013 at 9:18 AM, Jesse Gross wrote: > I see what you mean about there being several implementations... > > The main thing that I was trying to get at w

Re: [ovs-dev] [race-fix 3/6] ofproto-dpif-xlate: Fix fin_timeout to make rules expirable.

2013-08-26 Thread Ethan Jackson
Acked-by: Ethan Jackson On Mon, Aug 26, 2013 at 5:10 PM, Ben Pfaff wrote: > In an Open vSwitch flow table that has a configured maximum number of > flows, flows that have an idle or hard timeout, or both, are expirable, > and flows with neither are permanent. The fin_timeout action can change

Re: [ovs-dev] [race-fix 2/6] classifier: New function cls_rule_move().

2013-08-26 Thread Ethan Jackson
> +/* Replaces 'dst' by 'src', destroying 'src'. The caller must eventually > free > + * 'dst' with miniflow_destroy(). */ > +void > +miniflow_move(struct miniflow *dst, struct miniflow *src) > +{ > +int n = miniflow_n_values(src); > +if (n <= MINI_N_INLINE) { > +dst->values = dst

Re: [ovs-dev] [race-fix 1/6] Fix typos in a couple of OpenFlow related comments.

2013-08-26 Thread Ethan Jackson
Acked-by: Ethan Jackson On Mon, Aug 26, 2013 at 5:10 PM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > include/openflow/openflow-1.0.h |2 +- > lib/ofp-util.c |2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/openflow/openflow-1.

[ovs-dev] [race-fix 2/6] classifier: New function cls_rule_move().

2013-08-26 Thread Ben Pfaff
This function will acquire its first user in an upcoming commit. Signed-off-by: Ben Pfaff --- lib/classifier.c | 12 +++- lib/classifier.h |3 ++- lib/flow.c | 23 +++ lib/flow.h |2 ++ lib/match.c |9 + lib/match.h |3

[ovs-dev] [race-fix 6/6] ofproto: Fully construct rules before putting them in the classifier.

2013-08-26 Thread Ben Pfaff
add_flow() in ofproto.c has a race: it adds a new flow to the flow table before calling ->rule_construct(). That means that (in ofproto-dpif) the new flow is visible to the forwarder threads before gets properly initialized. One solution would be to lock the flow table across the entire operation

[ovs-dev] [race-fix 1/6] Fix typos in a couple of OpenFlow related comments.

2013-08-26 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- include/openflow/openflow-1.0.h |2 +- lib/ofp-util.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/openflow/openflow-1.0.h b/include/openflow/openflow-1.0.h index f2b90db..ef0a3ce 100644 --- a/include/openflow/

[ovs-dev] [race-fix 4/6] ofp-util: Abstract flow_mod OFPFF_* flags.

2013-08-26 Thread Ben Pfaff
The OFPFF_* flags used in flow_mods are just confusing enough that it seems worthwhile to try to abstract them out. In particular: * OFPFF_EMERG was introduced in OF1.0, deleted in OF1.1, and then its bit was reused for a different purpose in OF1.2. * OFPFF_RESET_COUNTS was introdu

[ovs-dev] [race-fix 3/6] ofproto-dpif-xlate: Fix fin_timeout to make rules expirable.

2013-08-26 Thread Ben Pfaff
In an Open vSwitch flow table that has a configured maximum number of flows, flows that have an idle or hard timeout, or both, are expirable, and flows with neither are permanent. The fin_timeout action can change a flow that has no idle or hard timeout into one that has either one or both, which

[ovs-dev] [race-fix 0/6] Fix a multithreading race on flow table insertion

2013-08-26 Thread Ben Pfaff
There is a race in add_flow() in ofproto.c, in that the flow becomes visible in the flow table (to the forwarding threads) before it is initialaized. This tends to cause crashes under load when the flow table is changing. This series of commits fixes the problem. Ben Pfaff (6): Fix typos in a

[ovs-dev] [race-fix 5/6] ofproto: Make OFPFC_ADD internally modify a rule instead of swapping.

2013-08-26 Thread Ben Pfaff
add_flow() in ofproto.c has a race: it adds a new flow to the flow table before calling ->rule_construct(). That means that (in ofproto-dpif) the new flow is visible to the forwarder threads before gets properly initialized. One solution would be to lock the flow table across the entire operation

Re: [ovs-dev] [PATCH 1/2] coverage: Reimplement the "ovs-appctl coverage/show" command

2013-08-26 Thread Alex Wang
I found answer from here: http://stackoverflow.com/questions/337449/how-does-one-declare-an-array-of-constant-function-pointers-in-c so if i understand it correctly: extern int (*build_assert(void))[1]; declare an extern function pointer 'build_assert', pointing to a function that takes no input

Re: [ovs-dev] [PATCH 1/2] coverage: Reimplement the "ovs-appctl coverage/show" command

2013-08-26 Thread Alex Wang
Also, in viewing the util.h code, I saw, extern int (*build_assert(void))[1]; want to ask: what is the "(*build_assert(void))" ? Thanks, On Mon, Aug 26, 2013 at 1:24 PM, Alex Wang wrote: > Thanks Ben for the review, > > > > +static long long int coverage_run_time = LLONG_MIN; >> > + >> > +/*

Re: [ovs-dev] [openvswitch:master 9/10] actions.c:undefined reference to `crc32c'

2013-08-26 Thread Jesse Gross
I see what you mean about there being several implementations... The main thing that I was trying to get at was whether we should add some kind of dependency (through select/depends) or make the OVS SCTP functionality dependent on a config option. We have the latter for VXLAN and GRE support since

[ovs-dev] [PATCH 1/2 v2] ofproto-dpif.at: Remove push_vlan from an OF1.0 test.

2013-08-26 Thread Jarno Rajahalme
Remove push_vlan from an OF1.0 test, as it requires OF1.1+ support, but was silently discarded. A later patch will make this test to fail due to validation of usable OpenFlow protocol versions while parsing actions. It should be noted that existing controllers may depend on the silently discarded

Re: [ovs-dev] [PATCH 1/2] coverage: Reimplement the "ovs-appctl coverage/show" command

2013-08-26 Thread Alex Wang
Thanks Ben for the review, > +static long long int coverage_run_time = LLONG_MIN; > > + > > +/* Defines the moving average array index variables. */ > > +static unsigned int min_idx = 0; > > +static unsigned int hr_idx = 0; > > It looks to me that min_idx and hr_idx are used only in > coverage_ru

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif.at: Remove push_vlan from an OF1.0 test.

2013-08-26 Thread Ben Pfaff
On Mon, Aug 26, 2013 at 01:10:34PM -0700, Jarno Rajahalme wrote: > > On Aug 26, 2013, at 10:45 AM, Ben Pfaff wrote: > > > On Tue, Aug 20, 2013 at 06:41:44PM -0700, Jarno Rajahalme wrote: > >> Remove push_vlan from an OF1.0 test, as it requires OF1.1+ support, but was > >> silently discarded. > >

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif.at: Remove push_vlan from an OF1.0 test.

2013-08-26 Thread Jarno Rajahalme
On Aug 26, 2013, at 10:45 AM, Ben Pfaff wrote: > On Tue, Aug 20, 2013 at 06:41:44PM -0700, Jarno Rajahalme wrote: >> Remove push_vlan from an OF1.0 test, as it requires OF1.1+ support, but was >> silently discarded. >> >> Signed-off-by: Jarno Rajahalme > > I agree that we should not expect OF

Re: [ovs-dev] [clang-atomics 3/4] ovs-atomic: Add native Clang implementation.

2013-08-26 Thread Ben Pfaff
Thanks, I'll apply this soon. On Mon, Aug 26, 2013 at 12:58:41PM -0700, Jarno Rajahalme wrote: > This looks right, compiles and tests ok. > > Acked-by: Jarno Rajahalme > > > On Aug 20, 2013, at 11:10 AM, Ben Pfaff wrote: > > > With this implementation I get warnings with Clang on GNU/Linux w

Re: [ovs-dev] [clang-atomics 3/4] ovs-atomic: Add native Clang implementation.

2013-08-26 Thread Jarno Rajahalme
This looks right, compiles and tests ok. Acked-by: Jarno Rajahalme On Aug 20, 2013, at 11:10 AM, Ben Pfaff wrote: > With this implementation I get warnings with Clang on GNU/Linux when the > previous patch is not applied. This ought to make it easier to avoid > introducing new problems in th

Re: [ovs-dev] [PATCH] ovs-save: Do not depend on hardcoded set of $PATH for utilities.

2013-08-26 Thread Ben Pfaff
On Mon, Aug 26, 2013 at 12:45:33PM -0700, Gurucharan Shetty wrote: > On Mon, Aug 26, 2013 at 11:29 AM, Ben Pfaff wrote: > > > On Mon, Aug 26, 2013 at 10:48:30AM -0700, Gurucharan Shetty wrote: > > > Reported-by: Jian Qiu > > > Signed-off-by: Gurucharan Shetty > > > > Scripts of this kind don't

Re: [ovs-dev] [PATCH v2] ovs-save: Do not depend on hardcoded set of $PATH for utilities.

2013-08-26 Thread Ben Pfaff
On Mon, Aug 26, 2013 at 12:17:19PM -0700, Gurucharan Shetty wrote: > Reported-by: Jian Qiu > Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH v2] ovs-save: Do not depend on hardcoded set of $PATH for utilities.

2013-08-26 Thread Gurucharan Shetty
Reported-by: Jian Qiu Signed-off-by: Gurucharan Shetty --- utilities/ovs-save | 27 ++- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/utilities/ovs-save b/utilities/ovs-save index b46f98d..73895f3 100755 --- a/utilities/ovs-save +++ b/utilities/ovs-save

Re: [ovs-dev] [PATCH] ovs-save: Do not depend on hardcoded set of $PATH for utilities.

2013-08-26 Thread Gurucharan Shetty
On Mon, Aug 26, 2013 at 11:29 AM, Ben Pfaff wrote: > On Mon, Aug 26, 2013 at 10:48:30AM -0700, Gurucharan Shetty wrote: > > Reported-by: Jian Qiu > > Signed-off-by: Gurucharan Shetty > > Scripts of this kind don't traditionally rely on "which". I am not > sure why--maybe it is only for histori

Re: [ovs-dev] [PATCH v2] datapath: Sync vxlan tunneling code with upstream ovs-vxlan.

2013-08-26 Thread Jesse Gross
On Mon, Aug 26, 2013 at 11:05 AM, Pravin B Shelar wrote: > Upstream vxlan implementation was changed according to few > comments. Following patch brings back those changes to out > of tree ovs module. > > Signed-off-by: Pravin B Shelar I think we could also kill off VXLAN_N_VID and VXLAN_VID_MA

Re: [ovs-dev] [PATCH] ovs-save: Do not depend on hardcoded set of $PATH for utilities.

2013-08-26 Thread Ben Pfaff
On Mon, Aug 26, 2013 at 10:48:30AM -0700, Gurucharan Shetty wrote: > Reported-by: Jian Qiu > Signed-off-by: Gurucharan Shetty Scripts of this kind don't traditionally rely on "which". I am not sure why--maybe it is only for historical reasons. I do see that POSIX does not specify "which"; mayb

Re: [ovs-dev] [PATCH 1/2] coverage: Reimplement the "ovs-appctl coverage/show" command

2013-08-26 Thread Ben Pfaff
On Wed, Aug 21, 2013 at 11:45:08AM -0700, Alex Wang wrote: > This commit changes the "ovs-appctl coverage/show" command to show the > per-second, per-minute and per-hour rates of function invocation. More > importantly, this makes using coverage counter an easy way to monitor > the execution of sp

Re: [ovs-dev] [patch] ovs-save: add /usr/local/bin to PATH

2013-08-26 Thread Gurucharan Shetty
On Mon, Aug 26, 2013 at 10:40 AM, Ben Pfaff wrote: > On Mon, Aug 26, 2013 at 06:41:32PM +0800, Jian Qiu wrote: > > If user installed openvswitch in /usr/local/bin, utilities/ovs-save > script > > would fail as missing_program routine did no check /usr/local/bin. > > I'm not sure why we're setting

[ovs-dev] [PATCH] ovs-save: Do not depend on hardcoded set of $PATH for utilities.

2013-08-26 Thread Gurucharan Shetty
Reported-by: Jian Qiu Signed-off-by: Gurucharan Shetty --- utilities/ovs-save | 27 ++- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/utilities/ovs-save b/utilities/ovs-save index b46f98d..dab6a1b 100755 --- a/utilities/ovs-save +++ b/utilities/ovs-save

[ovs-dev] [PATCH v2] datapath: Sync vxlan tunneling code with upstream ovs-vxlan.

2013-08-26 Thread Pravin B Shelar
Upstream vxlan implementation was changed according to few comments. Following patch brings back those changes to out of tree ovs module. Signed-off-by: Pravin B Shelar --- v1-v2: - remove vxlan-dev hash table and vs->refcnt. - update copyright. --- datapath/linux/compat/include/net/vxlan.h |

Re: [ovs-dev] [PATCH 2/2] lib: Keep track of usable protocols while parsing.

2013-08-26 Thread Ben Pfaff
On Tue, Aug 20, 2013 at 06:41:45PM -0700, Jarno Rajahalme wrote: > Keep track of usable protocols while parsing actions and matches, > rather than checking for them afterwards. This fixes silently discarded > meter and goto table instructions when not explicitly specifying the > protocol to use. >

[ovs-dev] [PATCH] ofproto: Recycle least recently used ofport.

2013-08-26 Thread Gurucharan Shetty
If there is a lot of churn in creation and deletion of interfaces, we may end up recycling the ofport value of a recently deleted interface for a newly created interface. This may result in an old stale openflow rule applying on the newly created interface. With this commit, when a new port is add

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif.at: Remove push_vlan from an OF1.0 test.

2013-08-26 Thread Ben Pfaff
On Tue, Aug 20, 2013 at 06:41:44PM -0700, Jarno Rajahalme wrote: > Remove push_vlan from an OF1.0 test, as it requires OF1.1+ support, but was > silently discarded. > > Signed-off-by: Jarno Rajahalme I agree that we should not expect OF1.1+ features to work in OF1.0, but I think that this test r

Re: [ovs-dev] [patch] ovs-save: add /usr/local/bin to PATH

2013-08-26 Thread Ben Pfaff
On Mon, Aug 26, 2013 at 06:41:32PM +0800, Jian Qiu wrote: > If user installed openvswitch in /usr/local/bin, utilities/ovs-save script > would fail as missing_program routine did no check /usr/local/bin. I'm not sure why we're setting $PATH there at all. It might be better to simply remove it. __

[ovs-dev] NFS Professional Services - Repair Center

2013-08-26 Thread NFS Professional Services
Centro de Reparos NFS - Reparamos todas as marcas e modelos de equipamentos com tecnologias Wireless, VoIP, Network, Telecom, Cameras e Dispositivos de Seguranca. Atendemos a fabricantes, revendas, distribuidores, usuarios corporativos e usuarios finais. Equipamentos VoIP, ATAs, Gateways VoIP,

Re: [ovs-dev] [PATCH] datapath: Add support for Linux 3.11

2013-08-26 Thread Pravin Shelar
On Thu, Aug 22, 2013 at 3:04 AM, James Page wrote: > Disable GRE compat layer for >= 3.11 as datapath is in sync with > the kernel in 3.11 so use of compat no longer required. > This patch does not work since it is still using compat iptunnel_xmit(). We can not turn off iptunnel_xmit() compat code

Re: [ovs-dev] [PATCH] datapath: Sync vxlan tunneling code with upstream ovs-vxlan.

2013-08-26 Thread Pravin Shelar
On Fri, Aug 23, 2013 at 4:30 PM, Jesse Gross wrote: > On Tue, Aug 20, 2013 at 2:31 PM, Pravin B Shelar wrote: >> Upstream vxlan implementation was changed according to few >> comments. Following patch brings back those changes to out >> of tree ovs module. >> >> Signed-off-by: Pravin B Shelar >

Re: [ovs-dev] [PATCH] datapath: Add support for Linux 3.11

2013-08-26 Thread James Page
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 26/08/13 18:10, Pravin Shelar wrote: > On Thu, Aug 22, 2013 at 3:04 AM, James Page > wrote: >> Disable GRE compat layer for >= 3.11 as datapath is in sync with >> the kernel in 3.11 so use of compat no longer required. >> > This patch does not

Re: [ovs-dev] [ovs-discuss] OVS Support for RT Kernel

2013-08-26 Thread Jesse Gross
On Mon, Aug 26, 2013 at 2:03 AM, Viresh Kumar wrote: > On 24 August 2013 06:30, Jesse Gross wrote: >> Putting a big lock around the majority of the packet processing >> doesn't seem like a particularly good idea for performance and you >> would need to make sure that you get all the entry points.

Re: [ovs-dev] datapath: remove HAVE_MAC_RAW

2013-08-26 Thread Jesse Gross
On Sun, Aug 25, 2013 at 11:36 PM, Viresh Kumar wrote: > This was causing it to fail against latest RT kernels, with following errors: > > In file included from > /home/arm/work/kernel/linaro/lng/openvswitch/datapath/linux/compat/include/linux/if_vlan.h:6:0, > from

[ovs-dev] [patch] ovs-save: add /usr/local/bin to PATH

2013-08-26 Thread Jian Qiu
If user installed openvswitch in /usr/local/bin, utilities/ovs-save script would fail as missing_program routine did no check /usr/local/bin. diff --git a/utilities/ovs-save b/utilities/ovs-save index b46f98d..faaa076 100755 --- a/utilities/ovs-save +++ b/utilities/ovs-save @@ -33,7 +33,7 @@ This

Re: [ovs-dev] [ovs-discuss] OVS Support for RT Kernel

2013-08-26 Thread Viresh Kumar
On 24 August 2013 06:30, Jesse Gross wrote: > Putting a big lock around the majority of the packet processing > doesn't seem like a particularly good idea for performance and you > would need to make sure that you get all the entry points. You would > probably be better off serializing the parts t