[ovs-dev] [PATCH net-next v9 8/9] net: openvswitch - set name assign type

2014-07-17 Thread Tom Gundersen
Signed-off-by: Tom Gundersen Cc: Pravin Shelar Cc: dev@openvswitch.org --- v9: set NET_NAME_USER directly in internal_dev_create as requested by Pravin Shelar net/openvswitch/vport-internal_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/openvswitch/vport-interna

Re: [ovs-dev] [PATCH v3] Extend OVS IPFIX exporter to export tunnel headers

2014-07-17 Thread Wenyu Zhang
Thanks for the review. I have removed the incorrect whitespaces. About XXX_get_out_tun_info(), I keep the caluclation of saddr, including route look up process, tp_src and tp_dst in ops for each vport, due to that the process are a little different for each vport. And I think that the potent

[ovs-dev] Call for paper: 2nd International Conference on Economics, Finance and Management Outlooks

2014-07-17 Thread Aneel Khan
Dear *Sir/Madam* The *Asian Economic and Social Society and Pak Publishing Group* are organizing a 2nd International Conference on Economics, Finance and Management Outlooks 20-21 December, 2014,* Pearl International Hotel, Kuala Lumpur, Malaysia.* Website: http://www.pakrdw.com/?ic=details&id

Re: [ovs-dev] [PATCH 0/3][RFC] Implement a chroot for ovsdb-server

2014-07-17 Thread Flavio Leitner
On Thu, Jul 17, 2014 at 08:35:04AM +0200, Eric Sesterhenn wrote: > On 07/16/2014 08:04 PM, Ben Pfaff wrote: > > On Wed, Jul 16, 2014 at 02:53:37PM -0300, Flavio Leitner wrote: > >> On Wed, Jul 16, 2014 at 09:56:20AM -0700, Ben Pfaff wrote: > >>> On Wed, Jul 16, 2014 at 10:39:17AM -0300, Flavio Leit

Re: [ovs-dev] [PATCH 1/4] lib/classifier: Unify struct classifier and cls_classifier.

2014-07-17 Thread Jarno Rajahalme
On Jul 15, 2014, at 10:18 PM, YAMAMOTO Takashi wrote: >> /* A flow classifier. */ >> struct classifier { >> -struct cls_classifier *cls; >> +struct ovs_mutex mutex; >> +int n_rules OVS_GUARDED;/* Total number of rules. */ >> +uint8_t n_flow_segments; >> +uint8_t flow_

Re: [ovs-dev] [PATCH 3/4] lib/classifier: Return all matching prefix lengths from trie lookup.

2014-07-17 Thread Jarno Rajahalme
On Jul 15, 2014, at 2:24 PM, Ben Pfaff wrote: > On Fri, Jul 11, 2014 at 04:55:56AM -0700, Jarno Rajahalme wrote: >> Previously we only returned the last matching prefix length >> encountered during a trie lookup, and skipped subtables that had >> prefixes longer than that. This patch changes th

Re: [ovs-dev] [PATCH 2/4] lib/classifier: Change a variable name.

2014-07-17 Thread Jarno Rajahalme
On Jul 15, 2014, at 1:55 PM, Ben Pfaff wrote: > On Fri, Jul 11, 2014 at 04:55:55AM -0700, Jarno Rajahalme wrote: >> This stylistic change makes the following patch a bit simpler. >> >> Signed-off-by: Jarno Rajahalme > > It's hard for me to see the difference between m_bits and n_bits in > som

Re: [ovs-dev] [PATCH 4/5] smap: New function smap_add_nocopy().

2014-07-17 Thread Gurucharan Shetty
On Wed, Jul 16, 2014 at 3:05 PM, Ben Pfaff wrote: > An upcoming commit will add a caller that needs to format both the key and > the value. That isn't cleanly possible with the current interface. > > Signed-off-by: Ben Pfaff Acked-by: Gurucharan Shetty > --- > lib/smap.c | 11 ++- >

Re: [ovs-dev] [PATCH 0/3][RFC] Implement a chroot for ovsdb-server

2014-07-17 Thread Ben Pfaff
On Thu, Jul 17, 2014 at 08:35:04AM +0200, Eric Sesterhenn wrote: > On 07/16/2014 08:04 PM, Ben Pfaff wrote: > > A thought I've had about hardening ovs-vswitchd is to adopt an > > OpenSSH-like privilege separation model, where a simple, separate > > process with high privilege doles out restricted a

Re: [ovs-dev] [PATCH 5/5] ofproto: Report controller rate limiting statistics in database.

2014-07-17 Thread Gurucharan Shetty
On Wed, Jul 16, 2014 at 3:05 PM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff I did not test it, but looks correct. Acked-by: Gurucharan Shetty > --- > NEWS |1 + > ofproto/connmgr.c| 26 +++- > ofproto/pinsched.c | 17 +--- > ofproto/pinsched.h | 11

Re: [ovs-dev] [PATCHv3] datapath: Cache netlink flow key, mask on flow_put.

2014-07-17 Thread Ben Pfaff
On Thu, Jul 17, 2014 at 11:04:55AM +1200, Joe Stringer wrote: > On 17 July 2014 04:48, Ben Pfaff wrote: > > > On Wed, Jul 16, 2014 at 02:50:12PM +1200, Joe Stringer wrote: > > > Converting the flow key and mask back into netlink format during flow > > > dump is fairly expensive. By caching the us

Re: [ovs-dev] [PATCH v3] Extend OVS IPFIX exporter to export tunnel headers

2014-07-17 Thread Pravin Shelar
On Thu, Jul 17, 2014 at 3:05 AM, Wenyu Zhang wrote: > Thanks for the review. > > I have removed the incorrect whitespaces. > > About XXX_get_out_tun_info(), I keep the caluclation of saddr, including > route look up process, tp_src and tp_dst in ops for each vport, due to that > the process are

Re: [ovs-dev] [PATCH 1/5] vswitch.xml: Fix typo in documentation.

2014-07-17 Thread Ben Pfaff
On Wed, Jul 16, 2014 at 03:30:55PM -0700, Gurucharan Shetty wrote: > On Wed, Jul 16, 2014 at 3:05 PM, Ben Pfaff wrote: > > Signed-off-by: Ben Pfaff > Acked-by: Gurucharan Shetty Thanks, I applied this to master. ___ dev mailing list dev@openvswitch.or

Re: [ovs-dev] [PATCH 2/5] pinsched: Report queued packet count correctly.

2014-07-17 Thread Ben Pfaff
On Wed, Jul 16, 2014 at 03:57:27PM -0700, Gurucharan Shetty wrote: > On Wed, Jul 16, 2014 at 3:05 PM, Ben Pfaff wrote: > > 'n_txq' was initialized to 0 and never modified, so pinsched_count_txqlen() > > always returned 0. Instead, return the correct number. > > > > This only affected the results

Re: [ovs-dev] [PATCH 3/5] Simplify ofproto_controller_info by using a struct smap in place of array.

2014-07-17 Thread Ben Pfaff
On Wed, Jul 16, 2014 at 04:26:04PM -0700, Gurucharan Shetty wrote: > On Wed, Jul 16, 2014 at 3:05 PM, Ben Pfaff wrote: > > The only client for ofproto_controller_info was transforming the array of > > pairs into an smap anyway. It's easy for the code that fills in the array > > to generate it as

Re: [ovs-dev] [PATCH 5/5] ofproto: Report controller rate limiting statistics in database.

2014-07-17 Thread Ben Pfaff
On Thu, Jul 17, 2014 at 10:08:16AM -0700, Gurucharan Shetty wrote: > On Wed, Jul 16, 2014 at 3:05 PM, Ben Pfaff wrote: > > Signed-off-by: Ben Pfaff > I did not test it, but looks correct. > Acked-by: Gurucharan Shetty Thank you for the reviews. I applied the remaining patches to master. __

Re: [ovs-dev] [PATCH 2/4] lib/classifier: Change a variable name.

2014-07-17 Thread Ben Pfaff
On Thu, Jul 17, 2014 at 07:15:17AM -0700, Jarno Rajahalme wrote: > > On Jul 15, 2014, at 1:55 PM, Ben Pfaff wrote: > > > On Fri, Jul 11, 2014 at 04:55:55AM -0700, Jarno Rajahalme wrote: > >> This stylistic change makes the following patch a bit simpler. > >> > >> Signed-off-by: Jarno Rajahalme

Re: [ovs-dev] [PATCH 1/4] lib/classifier: Unify struct classifier and cls_classifier.

2014-07-17 Thread Ben Pfaff
On Thu, Jul 17, 2014 at 07:09:15AM -0700, Jarno Rajahalme wrote: > > On Jul 15, 2014, at 10:18 PM, YAMAMOTO Takashi wrote: > > >> /* A flow classifier. */ > >> struct classifier { > >> -struct cls_classifier *cls; > >> +struct ovs_mutex mutex; > >> +int n_rules OVS_GUARDED;/*

Re: [ovs-dev] [PATCH 3/4] lib/classifier: Return all matching prefix lengths from trie lookup.

2014-07-17 Thread Ben Pfaff
On Thu, Jul 17, 2014 at 07:13:38AM -0700, Jarno Rajahalme wrote: > > On Jul 15, 2014, at 2:24 PM, Ben Pfaff wrote: > > > On Fri, Jul 11, 2014 at 04:55:56AM -0700, Jarno Rajahalme wrote: > >> Previously we only returned the last matching prefix length > >> encountered during a trie lookup, and sk

Re: [ovs-dev] [PATCH] netdev-dpdk: Refactor dpdk_class_init()

2014-07-17 Thread Pravin Shelar
On Wed, Jul 16, 2014 at 5:10 PM, Daniele Di Proietto wrote: > The following changes were made: > > - Since we have two dpdk classes, we should split the initial operations > needed > by both classes from the initialization needed by each class. > - The dpdk_ring class does not need an initializ

Re: [ovs-dev] [PATCH net-next v9 8/9] net: openvswitch - set name assign type

2014-07-17 Thread Pravin Shelar
On Thu, Jul 17, 2014 at 1:06 AM, Tom Gundersen wrote: > Signed-off-by: Tom Gundersen > Cc: Pravin Shelar > Cc: dev@openvswitch.org Looks good. Acked-by: Pravin B Shelar > --- > > v9: set NET_NAME_USER directly in internal_dev_create as requested by Pravin > Shelar > > net/openvswitch/vport-

Re: [ovs-dev] [PATCH] netdev-dpdk: Refactor dpdk_class_init()

2014-07-17 Thread Daniele Di Proietto
Thanks, Daniele On Jul 17, 2014, at 11:20 AM, Pravin Shelar wrote: > On Wed, Jul 16, 2014 at 5:10 PM, Daniele Di Proietto > wrote: >> The following changes were made: >> >> - Since we have two dpdk classes, we should split the initial operations >> needed >> by both classes from the initial

Re: [ovs-dev] [PATCH] netdev-dpdk: Fix race condition with DPDK mempools in non pmd threads

2014-07-17 Thread Pravin Shelar
On Mon, Jul 14, 2014 at 1:55 PM, Daniele Di Proietto wrote: > DPDK mempools rely on rte_lcore_id() to implement a thread-local cache. > Our non pmd threads had rte_lcore_id() == 0. This allowed concurrent access to > the "thread-local" cache, causing crashes. > > This commit resolves the issue wit

[ovs-dev] [PATCH 1/5] Add defines, enums and headers for MSVC

2014-07-17 Thread Alin Serdean
Add defines needed to compile netlink-socket.c and netlink.c. Add wrappers for the functions sendmsg and recvmsg. They can also be added to another file instead of defining them inlined. Add a wrapper and the functionality behind it for syconf. Add the newly created files to the noinst_HEADERS i

[ovs-dev] [PATCH 2/5] Add NETLINK defines and remove padding for MSVC

2014-07-17 Thread Alin Serdean
For our kernel extension we do not take into consideration the padding thus remove it. Add MAX_LINKS define needed for nl_pool. Add NETLINK_ROUTE needed to compile rtnetlink-link. Signed-off-by: Alin Gabriel Serdean --- lib/netlink-protocol.h | 14 ++ lib/netlink.c | 4 ++

[ovs-dev] [PATCH 3/5] Bypass HAVE_NETLINK for MSVC

2014-07-17 Thread Alin Serdean
Bypass the error compilation when compiling under MSVC. Signed-off-by: Alin Gabriel Serdean --- lib/netlink-socket.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/netlink-socket.h b/lib/netlink-socket.h index d53db4e..2b9ec52 100644 --- a/lib/netlink-socket.h +++ b/lib/netlink-socket

[ovs-dev] [PATCH 4/5] Changes needed to netlink-socket for MSVC

2014-07-17 Thread Alin Serdean
Add the structure sockaddr_nl to netlink-socket.c when compiling under MSVC. Add two functions set_sock_pid_in_kernel and portid_next. This will allow the channel identification for the kernel extension to send back messages. Replace send with WriteFile equivalent and ignore nl_sock_drain for the

[ovs-dev] [PATCH 5/5] Add more files to the openvswitch library on MSVC

2014-07-17 Thread Alin Serdean
Add netlink related files to the windows build. Signed-off-by: Alin Gabriel Serdean --- lib/automake.mk | 13 + 1 file changed, 13 insertions(+) diff --git a/lib/automake.mk b/lib/automake.mk index 0997df5..deaf0fc 100644 --- a/lib/automake.mk +++ b/lib/automake.mk @@ -319,6 +319,1

Re: [ovs-dev] [PATCH 03/14] Ignore epoll specific functions in case of MSVC

2014-07-17 Thread Alin Serdean
The substitute for epoll would be I/O Completion Ports http://msdn.microsoft.com/en-us/library/windows/desktop/aa365198%28v=vs.85%29.aspx . I will be back later on with a patch with this matter. I have taken your review in account and sent out a new series of patches which would go more increm

Re: [ovs-dev] [PATCH 0/3][RFC] Implement a chroot for ovsdb-server

2014-07-17 Thread Justin Pettit
On Thu, Jul 17, 2014 at 6:57 PM, Ben Pfaff wrote: > > It probably wouldn't be too hard to do this in OVS, because we used to > do something very similar for non-security reasons. It would be a > matter of resurrecting the "worker" library and adjusting it to better > suit as a security feature (

Re: [ovs-dev] [PATCH] netdev-dpdk: Fix race condition with DPDK mempools in non pmd threads

2014-07-17 Thread Daniele Di Proietto
Sure, I’ll post v2 in a minute. Thanks On Jul 17, 2014, at 11:30 AM, Pravin Shelar wrote: > On Mon, Jul 14, 2014 at 1:55 PM, Daniele Di Proietto > wrote: >> DPDK mempools rely on rte_lcore_id() to implement a thread-local cache. >> Our non pmd threads had rte_lcore_id() == 0. This allowed conc

[ovs-dev] [PATCH v2] netdev-dpdk: Fix race condition with DPDK mempools in non pmd threads

2014-07-17 Thread Daniele Di Proietto
DPDK mempools rely on rte_lcore_id() to implement a thread-local cache. Our non pmd threads had rte_lcore_id() == 0. This allowed concurrent access to the "thread-local" cache, causing crashes. This commit resolves the issue with the following changes: - Every non pmd thread has the same lcore_id

[ovs-dev] Unable to create bridge

2014-07-17 Thread Suresh Krishnan
Hi all, I have ported openvswitch to a mips based device and I am trying to create a new bridge. When I create a new bridge using the following command everything seems to be working OK, except that the bridge interface does not show up under ifconfig. ovs-vsctl add-br ovs-br0 "ovs-vsctl s

[ovs-dev] [PATCH] datapath: do not add Geneve attributes if vport does not exist

2014-07-17 Thread Ansis Atteka
This patch fixes following kernel crash that could happen, if geneve vport was not added yet, but revalidator thread attempted to dump flows. To reproduce: 1. switch tunnel type between geneve and gre; and 2. run ping. BUG: unable to handle kernel NULL pointer dereference at 0048 IP: [

Re: [ovs-dev] [PATCHv3] datapath: Cache netlink flow key, mask on flow_put.

2014-07-17 Thread Joe Stringer
On 18 July 2014 05:19, Ben Pfaff wrote: > > > From datapath/README: > > > > - If the kernel's flow key includes more fields than the userspace > > version of the flow key, for example if the kernel decoded IPv6 > > headers but userspace stopped at the Ethernet type (because it > >

Re: [ovs-dev] [PATCH] datapath: do not add Geneve attributes if vport does not exist

2014-07-17 Thread Jesse Gross
On Thu, Jul 17, 2014 at 3:46 PM, Ansis Atteka wrote: > diff --git a/datapath/flow_netlink.c b/datapath/flow_netlink.c > index 5f975a1..a4108c0 100644 > --- a/datapath/flow_netlink.c > +++ b/datapath/flow_netlink.c > @@ -1034,7 +1034,7 @@ int ovs_nla_put_flow(struct datapath *dp, const struct > sw

Re: [ovs-dev] [PATCHv3] datapath: Cache netlink flow key, mask on flow_put.

2014-07-17 Thread Joe Stringer
On 18 July 2014 10:53, Joe Stringer wrote: > Basically I'd be much more comfortable with the kernel generating its >> own flow key the first time it dumps a flow, then caching that. How >> much overhead does that have versus caching the userspace-provided >> flow key? >> > > By the same metric,

Re: [ovs-dev] Руководству Непременно знать\хранить в офисе

2014-07-17 Thread Абонид
bgColor="turquoise" width="94%" bgColor="deeppink" bgColor="turquoise" - Важная­ инфа пo гл aвным темам бизнеcкoнcалтинг­a ΡФ: Милицeйcκме\налοговыe ­­претe­­­нзииопeчатываниe, oбыcκ, изъятиe, арес­т имущecтва, οcмoтp, досмoт­­p - реĸοмeн­­дa­ции п­­­ротивοдeйствия, дeят­ельнoe рас

Re: [ovs-dev] [PATCH 0/3][RFC] Implement a chroot for ovsdb-server

2014-07-17 Thread Ben Pfaff
On Thu, Jul 17, 2014 at 11:38:38PM +0200, Justin Pettit wrote: > On Thu, Jul 17, 2014 at 6:57 PM, Ben Pfaff wrote: > > > > > It probably wouldn't be too hard to do this in OVS, because we used to > > do something very similar for non-security reasons. It would be a > > matter of resurrecting the

Re: [ovs-dev] [PATCH] dpif: add ovs-appctl dpif/dpctl to talk to dpif-netdev

2014-07-17 Thread Daniele Di Proietto
Thanks Ben the review, and sorry for the delay. I’m about to drop a v2 with your suggestions. On Jun 23, 2014, at 2:24 PM, Ben Pfaff wrote: > On Fri, Jun 13, 2014 at 02:58:32PM -0700, Daniele Di Proietto wrote: >> This commit intruduces a new appctl command: dpif/dpctl > > s/intruduces/introduc

[ovs-dev] We Have A Package For You

2014-07-17 Thread FedEx Express Service
See Attached File ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH] ovsdb: Don't add ovsdb-server.c to libovsdb.

2014-07-17 Thread Gurucharan Shetty
Without this change, with shared libraries, VLOG constructor for ovsdb-server would get called twice corrupting the 'vlog_modules' list causing an infinite loop. Signed-off-by: Gurucharan Shetty Reported-by: Gur Stavi --- AUTHORS |1 + ovsdb/automake.mk |1 - 2 files changed,

Re: [ovs-dev] [PATCH v3] Extend OVS IPFIX exporter to export tunnel headers

2014-07-17 Thread Wenyu Zhang
-Original Message- From: Pravin Shelar [mailto:pshe...@nicira.com] Sent: Friday, July 18, 2014 1:20 AM To: Wenyu Zhang Cc: Romain Lenglet; Ben Pfaff; Jesse Gross; dev@openvswitch.org Subject: Re: [PATCH v3] Extend OVS IPFIX exporter to export tunnel headers On Thu, Jul 17, 2014 at 3:05

Re: [ovs-dev] [PATCH v3] Extend OVS IPFIX exporter to export tunnel headers

2014-07-17 Thread Pravin Shelar
On Thu, Jul 17, 2014 at 8:20 PM, Wenyu Zhang wrote: > > > -Original Message- > From: Pravin Shelar [mailto:pshe...@nicira.com] > Sent: Friday, July 18, 2014 1:20 AM > To: Wenyu Zhang > Cc: Romain Lenglet; Ben Pfaff; Jesse Gross; dev@openvswitch.org > Subject: Re: [PATCH v3] Extend OVS IPFI